Open-Loop Control to Sensorless FOC of PMSM on Teensy Hardware
R2026bThis example shows a step-by-step workflow for implementing sensorless control of a permanent magnet synchronous motor (PMSM) on Teensy® hardware. The workflow progresses from basic open-loop motor operation to sensorless field-oriented control (FOC). It introduces current sensing and rotor position estimation, which are essential building blocks for closed-loop motor control.
The implementation of a sensorless FOC of a PMSM includes these steps:
Run PMSM Motor in Open Loop on Teensy Hardware — Generate three-phase PWM signals and control motor speed using open-loop voltage-frequency (V/F) control.
Measure Phase Currents of PMSM Motor in Open Loop Teensy Hardware — Measure motor phase currents through ADC channels, reconstruct the third phase current, and monitor current feedback while the motor runs in open-loop control.
Estimate Angle and Speed of PMSM Motor in Open Loop on Teensy Hardware — Use an Extended electromotive force (EMF) Observer to estimate rotor position and speed from measured currents and voltages.
Sensorless Field-Oriented Control of PMSM Motor Using Teensy Hardware — Use the estimated rotor position and measured currents to transition from open-loop startup to closed-loop sensorless FOC. The controller starts in open-loop current-to-frequency (I-F) mode and transitions to closed-loop FOC once reliable rotor position estimates are available.
See Also
Open-Loop and Closed-Loop Motor Control Techniques (Motor Control Blockset) | Open-Loop Control and ADC Offset Calibration (Motor Control Blockset) | Sensorless Field-Oriented Control of PMSM Using I-F Control-Based Startup (Motor Control Blockset) | Sensorless Field-Oriented Control of PMSM (Motor Control Blockset)