Abstract

In this paper, we deal with the development of a HIL (Hardware-in-the-Loop) simulator for BLDC motor driving using a microcontroller. We propose a modified BLDC model for the simulation of a BLDC motor using a microcontroller. The proposed HIL simulator is developed using various peripherals of STM32F407 (ARM cortex-M4 based microcontroller). The proposed HIL simulator consists of three parts. First, the part simulating the inverter analyzes the input PWM signals to calculate the corresponding input voltage. This part detects wrong PWM signals or shoot-throughs of the half-bridge. Second, the BLDC motor part is implemented by solving the modified model equations in real time. Finally, the third part generates the output of the BLDC motor. The HIL simulator generates the Back Electromotive Force (BEMF) waveform and signals of a rotary encoder and a hall sensor. Sensor signals are generated using a timer interrupt. The BEMF waveform is implemented using DAC. Moreover, a generation method using PWM and RC filter is presented. Through experiments, we illustrate that the developed HIL simulator accurately simulates the BLDC motor. Furthermore, we confirm that the BLDC motor drive algorithm designed with the developed HIL simulator can be successfully applied to real BLDC motor driving systems.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call