Example application for X-NUCLEO-IHM07M1 board connected to a 3-phase brushless motor with Hall sensors.
Dependencies: BLDCmotorDriver RateLimiter mbed
Fork of HelloWorld_IHM07M1 by
You are viewing an older revision! See the latest version
Homepage
Getting started with X-NUCLEO-IHM07M1¶
This example demonstrates how to use the X-NUCLEO-IHM07M1 component with one of the STM32 Nucleo-64 platforms and a three-phase brushless DC (BLDC) motor with Hall sensors.
HW prerequisites¶
- X-NUCLEO-IHM07M1
- STM32 Nucleo-64 board
- external DC power supply
- low voltage three-phase BLDC motor with Hall sensors
Configure the jumpers of your X-NUCLEO-IHM07M1 board as shown in the picture below:
This example is based on the BLDCmotorDriver motor control library by the TVZ Mechatronics Team, University of Applied Sciences Zagreb, Professional Study in Mechatronics. The BLDCmotorDriver library is a simple implementation of the six-step algorithm and needs Hall sensors to estimate the correct timing for commutation. If you want to use sensor-less BLDC motors with X-NUCLEO-IHM07M1, you must use a different software package like X-CUBE-SPN7, based on STM32Cube.
The HelloWorld_IHM07M1 application has been tested with the Nanotec DF45M024053-A2 motor, a 24V three-phase brushless motor with Hall sensors: DF45M024053-A2. If you use a different motor, please be advised that you may need to tweak the configuration parameters for the BLDCmotorDriver library.
This application implements a temperature check to prevent overheating.
If you use the same motor, please connect the brown, grey and yellow phases to the OUT1, OUT2 and OUT3 connectors of the X-NUCLEO-IHM07M1 board respectively. Then connect the blue, green, white, red and black wires for Hall sensors to the A, B, Z, 5V, GND connectors of the X-NUCLEO-IHM07M1 board respectively. If your motor is different, you must pay attention to connect the motor phases and Hall sensors pin in the correct order otherwise it won't spin.
In the picture below you can see an example setup with the Nanotec DF45M024053-A2 motor and a 24V power supply: