Automatic control system of brushless DC motor based on STM32 microcontroller
In order to solve the problem that the brushless DC motor is prone to abnormal current and speed imbalance when the load changes suddenly,and the motor cannot be automatically adjusted and controlled,an automatic control system of brushless DC motor based on STM32 single chip microcomputer is designed.The system uses a three-resistor current sampling circuit to collect the motor running current signal,which is compared and analyzed by a single chip microcomputer STM32.If the current is greater than the threshold of the metal-oxide semiconductor field effect transistor,the output of the pulse width modulation signal is automatically interrupted.Hall rotor position detection circuit is used to collect motor rotor position data and calculate rotor position and speed data.After comparing with the expected speed,if the motor speed is in a non-ideal state,fuzzy adaptive fractional PID controller is used to automatically adjust the speed of brushless DC motor.The experimental results show that the designed system performs well under the condition of sudden load change,and the phase current keeps sine wave state without sudden change.And that motor speed can be quickly and automatically adjust to match the expected speed,and the motor torque fluctuation is also control within a reasonable range.
microcontroller STM32brushless DC motorautomation controlfuzzy adaptive fractional order controllerspeed regulationcurrent detection