Simulation of the engine control algorithm for the STM32 microcontroller using the model-based design method
Abstract
Simulation of the engine control algorithm for the STM32 microcontroller using the model-based design method
Incoming article date: 14.02.2020This article describes the stages of modeling the state control algorithm for a synchronous motor with permanent magnets using the model-based design method. The algorithm is based on the principle of field oriented I-Hz control, the constructions of which is formed as a state machine for the correct planning of tasks. The model input and output signals for the STM32 microcontroller are further classified. The control model itself is created in the Matlab/Simulink package, the subsystems of which are also described. The last step is to model and visualize the input/output signals of the system at different initial values of the inverter speed and current. By observing acceptable values of the inverter speed and current in the steady state mode, the correct operation of the control logic is ensured, which can be generated as a C code and integrated into the microcontroller.
Keywords: Model-based design, Matlab/Simulink, STM32, synchronous motor with permanent magnets, field-oriented control