6-step algorithm library, suitable for STM32 series microcontrollers, can control three-phase permanent magnet synchronous motor or brushless DC motor, realize rotor position reconstruction, read motor sensor signals, decode sensor signals, and write motor control algorithms
The UM3042 manual details the software library implementing the 6-step (trapezoidal) algorithm for controlling 3-phase permanent magnet synchronous motors (PMSM) or brushless direct current motors (BLDC). Designed for use with STM32 microcontrollers, the library is part of the X-CUBE-MCSDK and X-CUBE-MCSDK-FUL SDKs and is written in C language. It provides core motor control algorithms, sensor reading/decoding, and sensorless rotor position reconstruction algorithms.
It implements the 6-step algorithm to control 3-phase PMSM or BLDC motors.