What is FOC (field-oriented control) and when do you need it? Principle and examples
FOC turns three-phase currents into two DC components so torque and flux can be controlled separately. Explains the transforms, the torque equation and when FOC is worth the cost.
Updated 2026-11-28
The short answer
Field-oriented control (FOC), also called vector control, is a way to drive a permanent-magnet or induction motor so that the stator current is always at the right angle to the rotor flux. The three-phase currents are transformed into two DC quantities: one for flux and one for torque. Each is regulated separately, giving smooth torque at any speed, good efficiency and fast response. You need it when torque smoothness, low noise or dynamic performance matters more than the cost of extra sensing and processing.
How it works, step by step
- Measure two phase currents (the third is ia + ib + ic = 0).
- Clarke transform: convert the three currents into a stationary two-axis frame, iα and iβ.
- Park transform: rotate that frame by the rotor angle θ, giving id and iq, which are DC in steady state.
- PI controllers: set id to 0 for a surface-magnet motor, and set iq from the speed loop or torque command.
- Inverse Park and space-vector PWM apply the voltages to the inverter.
The torque equation and a worked example
For a surface-magnet synchronous motor with id = 0 and the amplitude-invariant transform, torque is T ≈ 1.5 × p × ψf × iq. Here p is the number of pole pairs, ψf is the permanent-magnet flux linkage in webers, and iq is the torque-producing current in amperes. The result is in N·m.
- Example: p = 4, ψf = 0.01 Wb, iq = 10 A gives T = 1.5 × 4 × 0.01 × 10 = 0.6 N·m.
- Doubling iq doubles torque, but the current loop must hold iq at the commanded value.
What FOC needs
- Rotor angle: an encoder, resolver or Hall-based estimate. A sensorless observer works only above a minimum speed; at standstill you need a sensor or an injection method.
- Current sensing with enough bandwidth, typically with a current loop running at 10 to 20 kHz.
- A microcontroller or DSP fast enough for the loop and PWM, plus accurate motor parameters: resistance, inductance and flux.
Tuning order
Tune the loops from the inside out: current first, then speed, then position. The speed and position loops are built on top of the current loop, so a poorly tuned current loop makes every outer loop unstable. The current-loop bandwidth should sit well above the speed loop, commonly by a factor of about ten.
- Current loop bandwidth depends on winding inductance and PWM frequency; it is typically from a few hundred hertz to a few kilohertz.
- Step the current command and watch the response: a slight overshoot is normal, sustained ringing is not.
When you need FOC, and when you do not
- Needed: robot joints and servos, smooth low-speed torque, low noise and vibration, EV and traction drives, high-efficiency drives with varying load.
- Often not needed: simple fans, basic pumps, tools and appliances where six-step or simple speed control is enough.
Common mistakes
- Wrong rotor angle offset or sign, so the motor produces torque in the wrong direction or fights itself.
- Wrong motor parameters in PI tuning, so the current loop oscillates.
- A current loop that is too slow compared with the speed loop.
- Ignoring dead time in the inverter, which distorts the current at low speed.
Sourcing a motor or production equipment from China? We can find and contact the right factories for you in Chinese. Ask on WhatsApp →