The STSW-PTOOL1V1 firmware provides low voltage three-phase brushless DC motor control with the STEVAL-PTOOL1V1 reference design board based on the advanced STSPIN32F0B BLDC controller with STM32 MCU.
The package includes a sample implementation to drive a BLDC motor with Hall sensors position feedback. It is preconfigured for a trapezoidal driving technique and speed loop with constant PWM duty cycle, known as voltage mode. External potentiometer support allows run-time variation of the target speed.
This software is based on the STM32CubeHAL hardware abstraction layer for the STM32 microcontroller. Motor parameters, speed loop controller parameters and Hall sensors decoding table values are easily accessed and edited in the user configuration file.
The package can be easily downloaded onto the STSPIN32F0B controller via SWD connection.