GlossaryField-oriented control
Field-oriented control
Field-oriented control, or FOC, is a method for driving brushless and permanent-magnet motors that controls the current in each winding so the magnetic field stays at the best angle to the rotor. It gives smooth, efficient torque at all speeds, including standstill, which simpler drive methods struggle with.
How it works
A three-phase motor's torque depends on the angle between the stator's magnetic field and the rotor's magnets. Torque is greatest when that angle is 90 degrees. FOC keeps it there.
The controller measures phase currents and the rotor angle, from an encoder, a Hall sensor or an estimate. It then applies two transforms. The Clarke transform turns three phase currents into two values on fixed axes. The Park transform rotates those into the rotor's frame, giving two steady values: the q-axis current, which makes torque, and the d-axis current, which only magnetizes and is usually held at zero.
Two current controllers adjust voltage to hold the q current at the torque target and the d current at zero. Inverse transforms turn the result back into three phase voltages, and the motor driver produces them with pulse-width modulation. The cycle repeats many thousands of times a second.
Sensorless FOC estimates rotor angle from measured currents and voltages instead of a sensor. It works well at speed but has trouble near standstill, where the signals are weak.
Field-oriented control vs six-step commutation
Six-step, or trapezoidal, commutation energizes two windings at a time and switches to the next pair at fixed rotor positions. It is simple and cheap but produces torque ripple, noise and lower efficiency. FOC drives all three phases with smooth sinusoidal currents, giving quiet, precise torque, at the cost of more computation and current sensing.
Why it matters
Robot joints need smooth torque at low speed and holding torque at zero speed. Drones need efficient, responsive motor control for stable flight and longer endurance. FOC delivers both, and controlling torque directly makes force control and compliant robot motion practical.
How to get it right
- Measure phase currents accurately and in sync with the PWM cycle.
- Calibrate the encoder offset to the rotor's electrical angle.
- Tune current controllers from the motor's resistance and inductance.
- Limit current to protect the motor, driver and battery.
- Run the control math on a processor fast enough for the PWM rate.
Field-oriented control in robotics and drone hardware
FOC sets hardware needs throughout the motor controller: current-sense resistors or sensors on each phase, an encoder or Hall sensors, a microcontroller with fast analog-to-digital converters and timers, and a clean gate drive. Open-source drone and robot motor controllers commonly use FOC, and robot actuators rely on it for torque control.