Implementation of Brushless DC motor speed control on STM32F407 Cortex M4

  IJETT-book-cover  International Journal of Engineering Trends and Technology (IJETT)          
© 2017 by IJETT Journal
Volume-53 Number-3
Year of Publication : 2017
Authors : Mr. Kanaiya G Bhatt, Mr. Yogesh Parmar
DOI :  10.14445/22315381/IJETT-V53P221


Mr. Kanaiya G Bhatt, Mr. Yogesh Parmar "Implementation of Brushless DC motor speed control on STM32F407 Cortex M4", International Journal of Engineering Trends and Technology (IJETT), V53(3),118-123 November 2017. ISSN:2231-5381. published by seventh sense research group

Brushless Direct Current (BLDC) motors, also known as permanent magnet motors find wide applications in many industries due to their higher performance, reliability and ease of control. A new generation of microcontrollers and advanced electronics has overcome the challenge of implementing required control factions, making BLDC motor more practical for a wide range of uses. In this project, BLDC motor circuitry is designed, and develops using 120- degree control with a sensor. In the present project, 3- phase BLDC motor control solution using STM32F407 Cortex M4 as the motor controller, Hall sensors are used to detect the rotor position and close the commutation loop. The main objective of this project is controlling speed of BLDC motor and displays its speed. The speed control of the BLDC motors is very essential. This proposed system provides a very precise and effective speed control system. The user can increase or decrease the speed as per the requirement and the motor will run at that exact speed. Topics discussed include interrupt handling for pulse width modulation (PWM) generation and sensor processing with performance measurement for STM32F407 Cortex M4 microcontroller usage. Implementation of a speed profile (speed Vs. time). The project is divided into three stages: input, processing and output stage. The input stage consists of entering the required speed through switches. The processing stage provides RPM reference of the motor, by feedback of Hall signal interrupt to the microcontroller in the circuit. The microcontroller develops PWM pulses which are varied with switches to regulate the DC power to the motor such that the desired speed is achieved. The output stage uses a MOSFET being driven by the microcontroller output. A STM32F407 Cortex M4 microcontroller is used with a set of switches to increase or decrease the speed of the BLDC motor. This speed is sensed by the hall sensors and is given to microcontroller which in turn displays it on a LCD display. The above operation is carried out by using PI algorithm and a MOSFET for driving the BLDC motor. This work is aimed at get precise output for speed control using STM32F407 Cortex M4 microcontroller with lower system cost.

[1] “3-Phase BLDC Motor Control with Hall Sensors Using the MC56F8013” Targeting User Guide (http:// 56F8013BLDCUG, Rev. 1, 11/2005.
[2] “Speed Control of Brushless DC Motors-Block Commutation with Hall Sensors” User’s Guide,(
[3] “Motor control and Drive” us/technology/motorcontrol/motor-types/bldc.html.

STM32F407 Cortex M4; Brushless DC motor speed control in open and closed loop.