aactuator
CALCULATE / INSPECT / COMPARE

From a command to real currents.

Change a setting and recalculate the existing C++ model. Trace FOC through the six-switch bridge, explore heating, or build a motor-shaft torque–RPM map.

Synthetic SIL, not a calibrated motor. These isolated experiments do not control the live joint. Switching replay is inspection of a completed calculation.

Loading C++ WebAssembly…

Experiment settings

120 ms switched current loop, 20 kHz PWM. An ideal dynamometer imposes speed; this is not free acceleration.

One signal chain, one selected instant

The loop produces three phase voltages using six switches. 3PWM/6PWM describe driver inputs, not three versus six motor phases.

01 · Current command—Id* = 0; Iq* in A
02 · Clarke / Park—Offset-corrected ADC; sample-angle aligned
03 · PI + feed-forward—Voltage-limited Vd / Vq [V]
04 · Inverse Park—Vα / Vβ [V]
05 · SVPWM—A / B / C duty, centered common mode
06 · Six-switch bridge—DC bus; logical gates shown below
07 · PMSM—True ia / ib / ic [A]
08 · Sensor → feedback—Analog ia → held raw ADC ia [A]
DC+ bus
AHAAL
BHBBL
CHCCL
DC− bus · OFF switch does not imply zero diode current
No calculated samples yet.

Command, true current and observed current

20 kHz control samples. True current and the held, delayed sensor observation are not simultaneous measurements.

Inside one switching period

Bridge samples are constitutive evaluations at substep midpoints (or implicit diode endpoints), not nanosecond current measurements. Gate bits are ON/OFF logic, not Vgs waveforms.

Where smoothing happens: winding inductance shapes physical current. The sensor has an analog low-pass filter; this implementation then adds capture noise and ADC quantization. A DAC may set a comparator threshold; it does not smooth the motor power current. Lower analog bandwidth does not remove noise added after that filter.