Field-oriented control
An interactive reference for FOC — from the coordinate transforms through to the interrupt handler. Every idea comes with an equation you can follow, a figure you can drag, and code that runs.
The whole loop
FOC is not a list of topics, it is one loop whose parts only make sense in terms of each other. Every block here is a page — follow whichever one you need.
Contents
- 01
Foundations
Three-phase systems, space vectors, per-unit, and what a reference frame actually is.
- 02
Reference frames
Clarke, Park, and the angle everything depends on.
- 03
The machine
PMSM models, dq voltage equations, torque production, saliency and field weakening.
- 04
The inverter
Three-phase bridge, deadtime, sinusoidal vs space-vector modulation, overmodulation.
- 05
Sensing
Shunt topologies, sampling instants, ADC timing, gain and offset error.
- 06
Control loops
PI design from machine parameters, cross-coupling, anti-windup, bandwidth.
- 07
Rotor position
Encoders, halls, and sensorless: back-EMF observers, sliding mode, HFI.
- 08
Implementation
Fixed point, timer and ADC synchronisation, ISR budgets, bring-up order.