FOC Reference Field-oriented control, from the equations to the ISR

Formula sheet

Everything the site derives, in one place, with this site's conventions applied: amplitude-invariant scaling, per-phase parameters, d along the rotor flux.

The worked numbers beside them are computed from src/core when this page is built, so they are the same values the figures use rather than a copy that can drift.

Download the printable sheet PDF, two pages, 217 KB — typeset from this same source, so it carries the same numbers.

Frames

Clarke, amplitude-invariant

The 2/3 keeps the peak. With a floating neutral the third current is redundant.

Park

A rotation, so it preserves magnitude and the dot product — and therefore power.

Power

The 3/2 is the amplitude-invariant convention, not a fudge.

The machine

dq voltage equations

The cross terms are what decoupling cancels; the term is the back-EMF.

Torque

Magnet term plus reluctance term. On this machine , so negative adds torque. Torque constant 0.051 N·m/A at .

saliency = 1.57

Characteristic current

Decides the whole field-weakening envelope. A machine whose rated current reaches it can be weakened indefinitely.

70.8 A on the reference machine

Back-EMF constant

Line-to-line RMS per 1000 rpm — the form a datasheet quotes. Three conversions stand between it and .

The inverter

Linear voltage limit

The inscribed circle of the hexagon. SPWM reaches only — 15.5% less.

27.7 V against 24 V at 48 V

SVPWM dwell times

γ is the angle within the sector. The switching order is decided by the switch words, not by which vector is trailing.

Deadtime voltage error

Sign follows the current, so it is a square wave at the electrical frequency — 6× ripple in dq.

Bridge loss

Square-law loss takes the RMS; linear loss takes the mean of the absolute sine, 0.6366. A lower moves the crossover down.

Control

Current-loop gains

Pole-zero cancellation leaves a pure integrator, so the closed loop is first order at .

= 1.319, = 2199 for 1 kHz on the d axis

Anti-windup tracking gain

Back-calculation. Too low and the integrator still runs away, just slower.

Phase margin from delay

The whole stability story of a well-tuned current loop. A timing property, not a gain property.

75 µs of delay gives 63° at 1 kHz

Angle prediction

Removes a speed-dependent rotation entirely. Does nothing for phase margin.

Cascade separation

10× costs nothing, 5× starts to cost, under 3× doubles overshoot.

Sensing

Low-side measurement window

Closes as duty approaches 1. The phase with the largest duty fails first.

Converter resolution

In dq the RMS is of the per-phase figure, and the peak bound is of a code — not a half.

Encoder speed step

Independent of speed, so it grows as a fraction of the measurement as the machine slows.

Link capacitor current

Exact, not approximate — mean and ripple are orthogonal. Peaks near half modulation depth.

See also notation and what goes wrong.