- Explain why linear PI controllers suffer from phase lag and steady-state tracking errors in three-phase stationary AC frames.
- Formulate the mathematical foundation of the Clarke transform, mapping three-phase quantities into the two-axis stationary orthogonal frame (\alpha-\beta).
- Derive the Park transform, rotating the stationary frame into the synchronous reference frame (d-q) locked to the rotor flux vector.
- Analyze how the Park transform converts high-frequency AC sinusoidal currents into decoupled, time-invariant DC quantities.
- Evaluate the execution sequence of forward and inverse transforms inside real-time automotive powertrain microcontrollers (MCU/DSP).
MOTOR-16 — Clarke and Park Transforms
FACT — AC traction motors operate on three-phase sinusoidal currents that continuously oscillate at high frequencies. However, standard linear Proportional-Integral (PI) controllers intrinsically struggle to track time-varying sinusoidal references, inevitably introducing steady-state amplitude error and phase lag. Clarke and Park transformations solve this dilemma by mapping three-phase AC quantities into an orthogonal rotating coordinate frame where sinusoidal waves collapse into pure time-invariant DC quantities.
In this lesson, we break down the coordinate transformations that form the mathematical engine of modern electric vehicle Field-Oriented Control (FOC):
- The Control Dilemma: Tracking AC Quantities with PI Regulators
- The Clarke Transform: Three-Phase to Stationary Orthogonal ()
- The Park Transform: Transitioning to the Synchronous Frame ()
- Physical Interpretation: Direct () vs. Quadrature () Axes
- Inverse Transformations: Returning to the Physical Phase Domain
- Real-Time Execution Pipeline in Inverter Microcontrollers
1. The AC Tracking Challenge
Consider an electric vehicle cruising at with an 8-pole () traction motor rotating at . The electrical fundamental frequency of the stator currents is:
The phase currents reverse polarity 667 times per second.
A standard PI controller transfer function:
provides infinite gain only at DC (), guaranteeing zero steady-state error for constant setpoints. However, when presented with a sinusoidal signal at , the integrator gain drops inversely with frequency (). The controller lags behind the actual physical waveform, causing phase distortion and degraded torque production.
The Solution: Attach the observer coordinate frame directly to the rotating rotor flux vector! Just as two passengers sitting inside a high-speed train appear stationary relative to each other, three-phase AC currents appear as completely static DC currents when observed from a coordinate frame rotating synchronously with the rotor field.
2. Clarke Transformation ()
Formulated by Edith Clarke in the 1930s, this transform maps three spatially distributed phase axes separated by () onto a two-axis stationary orthogonal Cartesian frame ().
In a balanced three-phase system with an isolated neutral point, Kirchhoff’s Current Law dictates:
Because the three phase variables are constrained by this relationship, the system possesses only two degrees of freedom. The third phase variable contains no independent information.
Clarke Reference Frame:
beta
^
| Phase b
| /
| /
| /
| / 120°
+---+----------------> alpha (Aligned with Phase a)
/ \
/ \ 120°
/ \
/ \
Phase c
Amplitude-Invariant Clarke Matrix:
To ensure that peak sinusoidal phase current equals the resultant vector magnitude in the plane, the amplitude-invariant Clarke transform is formulated as:
Substituting simplifies real-time microcontroller calculation, requiring only two current sensors:
The axis is fixed to the magnetic axis of Phase A, while the axis leads by electrical. Both axes remain stationary relative to the stator.
3. Park Transformation ()
Published by Robert H. Park in 1929, this transformation projects the stationary orthogonal variables into a synchronous rotating reference frame () locked to the rotor’s permanent magnet flux vector.
Executing this rotation requires precise, instantaneous knowledge of the rotor electrical angle (), supplied by an automotive resolver or absolute encoder:
Park Transformation Frame Alignment:
q-axis (Quadrature / Torque)
^
| beta
| /
| /
| / d-axis (Direct / Flux)
| / ^
| / /
| / / theta_e (Rotor Electrical Angle)
+----+-------------> alpha
Park Transformation Matrix:
Applying a planar rotation matrix by angle yields:
In algebraic scalar form:
4. Physical Meaning of Variables
In steady-state operation at constant speed and torque, and are completely time-invariant DC quantities!
- Direct Axis Current (): Aligned parallel to the rotor magnetic flux axis. Controls magnetization of the machine:
- : Natural permanent magnet flux is unperturbed (standard SPMSM base speed mode).
- : Injected counter-flux weakens net air-gap flux (Field Weakening), enabling high-speed operation above base speed.
- Quadrature Axis Current (): Positioned electrical ahead of the direct axis. Directly controls the electromagnetic torque output.
ANALOGY — The Park transform decouples the complex, coupled AC machine into two independent SISO (Single-Input Single-Output) channels, behaving exactly like a separately excited DC machine with independent field () and armature () control.
5. Inverse Transformations (Inverse Park & Inverse Clarke)
After the PI controllers process errors in the DC domain to generate required voltage demands (), these commands must be mapped back to the physical three-phase stator windings.
Inverse Park Transform ():
Inverse Clarke Transform ():
6. Real-Time Execution Pipeline in Inverter Microcontrollers
In automotive traction inverters (e.g. Infineon AURIX TC3xx or TI C2000), this mathematical loop runs continuously at the PWM carrier rate (, loop time ):
[ Phase Currents: ia, ib ] ----> (Clarke) ----> [ i_alpha, i_beta ]
|
[ Resolver: theta_e ] ------------------------> (Park)
|
v
I_d_ref ----(+)---> [ PI Controller ] ---> V_d* [ i_d, i_q ]
^ | |
|---------------------------------------------+ |
|
I_q_ref ----(+)---> [ PI Controller ] ---> V_q* |
^ |
|---------------------------------------------------+
|
v
[ V_d*, V_q*, theta_e ]
|
v
(Inverse Park)
|
v
[ V_alpha*, V_beta* ]
|
v
(SVPWM Modulator)
|
v
[ 6x Gate Drive PWMs ]
7. Summary
- Tracking high-frequency three-phase AC currents directly with linear PI controllers is impossible due to inevitable phase lag.
- The Clarke transform projects three-phase currents into a two-axis stationary orthogonal frame ().
- The Park transform uses instantaneous rotor electrical angle () to rotate the frame into the synchronous coordinates.
- In the frame, AC waveforms collapse into constant DC values, allowing decoupled control of magnetic flux () and torque ().
- Inverse Park and Inverse Clarke transforms convert controller outputs back into physical stator voltages for Space Vector PWM modulation.
Next Lesson
- MOTOR-17 — Field-Oriented Control (FOC): Closed-loop current regulation, cross-coupling decoupling networks, and tuning high-bandwidth 10 kHz traction current loops.
Technical Diagrams
Quiz
What does the Clarke transform convert?
Clarke converts three-phase abc into two-phase stationary αβ.
What does the Park transform convert?
Park converts the stationary αβ into the rotor-rotating dq.
What does the q-axis component (Iq) control?
Iq is the torque component; torque is controlled with Iq.
What is the d-axis component (Id) related to?
Id is aligned with the rotor flux/magnet axis and relates to flux production.
What is the main benefit of the transforms?
In the rotating frame, sinusoidal quantities become constant; torque/flux are controlled separately.
What is the correct order in the FOC chain?
FOC: measured current → Clarke → Park → Id/Iq control → inverse Park → SVPWM.