The invention discloses a brushless
direct current motor electronic speed
governor based on STM32, and the speed
governor comprises an STM32 micro controller, a power
driving circuit, a three-phase
inverter circuit, a
voltage and current monitoring circuit, a communication module circuit, a
counter electromotive force detection circuit, an indicator circuit and the like; the STM32 micro controller drives the three-phase
inverter circuit through the power
driving circuit through an H-PWM-L-ON method, carries out connection and three-phase and six-
state control on a motor, and synchronously detects a
counter electromotive force zero-crossing
signal among high-level intervals of
pulse width modulation (PWM); the
voltage of a three-phase end is converted through an analog-digital (AD) injection
group method in the STM32 micro controller; the
counter electromotive force zero-crossing
signal is acquired by comparing corresponding end
voltage and central point voltage in
software; the AD injection group conversion is triggered by a TIM1_CC4 event; the power voltage, current and temperature detection is converted through a continuous circulating scanning method of an AD rule group and sent to the corresponding random-access memories (RAMs) through a
direct memory access (DMA) channel; and compared with an the electronic speed
governor which adopts a single-
chip microcomputer, the brushless
direct current motor electronic speed governor based on STM32 has the characteristics of higher anti-interference capability, small hardware space, higher performance and a plurality of communication methods.