IMPLEMENTASI PENGENDALI PI BERBASIS STM32 PADA HARDWARE IN THE LOOP MOTOR INDUKSI
Keywords:
Induction Motor, Proportional-Integral Controller, Hardware-in-the-Loop, V/f-SPWM, STM32F446REAbstract
This study implements a Proportional-Integral (PI) controller on an STM32F446RE for a hardware-in-the-loop (HIL) induction motor speed control system using V/f based sinusoidal pulse-width modulation (SPWM). The motor and inverter are modeled in MATLAB/Simulink, while the PI controller communicates with the plant through UART at a 50 ms sampling period. System performance is evaluated through communication latency, startup response, reference variations, and load disturbances. A 1000 packet communication test achieves an average round-trip latency of 4.714 ms and a maximum of 13.052 ms without packet loss. At a 1000 rpm reference, the system achieves a rise time of 0.9895 s, settling time of 3.5152 s, overshoot of 1.97%, and steady-state error of 0.34 rpm. The controller successfully tracks reference changes from 800 to 900 and 700 rpm and maintains the motor speed around 1000 rpm under load changes from 0 to 5 and 10 Nm. These results demonstrate the feasibility of implementing the PI controller on STM32 within a V/f-SPWM HIL system.
References
Alathamneh, Mohammad, Haneen Ghanayem, R M Nelms, and Ibrahim M Allafi. 2025. “Open-Circuit Fault Mitigation for Inverter-Driven Induction Motor Based on Closed-Loop Volt-per-Hertz.” Energies 18(7). https://www.mdpi.com/1996-1073/18/7/1596.
Borthakur, Rishavi, and Dr Kandali. 2025. “Design and Simulation of a Three-Phase Induction Motor for Speed Control Using Constant V/f Technique with Sinusoidal PWM-Based Inverter.” International Journal of Innovative Technology and Exploring Engineering 14: 12–20.
Cosso, Simone et al. 2023. “Stability Issues in V/f Controlled Medium Voltage Induction Motor Drives Considering Magnetizing Inductance Variation.” IEEE Transactions on Energy Conversion 38(4): 2909–18.
Dan, Hanbing et al. 2024. “Implementation and Stability Analysis of an Improved V/f Induction Motor Control Scheme Based on Constant Rotor Flux.” IEEE Transactions on Energy Conversion 39(3): 1840–50.
Fatemimoghadam, Armita, Lakshmi Varaha Iyer, and Narayan C Kar. 2024. “Real-Time Validation of Enhanced Permanent Magnet Synchronous Motor Drive Using Dense-Neural-Network-Based Control.” IEEE Access 12: 73323–39.
Khadar, Saad, Almoataz Y Abdelaziz, Zakaria M Salem Elbarbary, and Mahmoud A Mossa. 2023. “An Improved Sensorless Nonlinear Control Based on SC-MRAS Estimator of Open-End Winding Five-Phase Induction Motor Fed by Dual NPC Inverter: Hardware-in-the-Loop Implementation.” Machines 11(4). https://www.mdpi.com/2075-1702/11/4/469.
Krim, Saber, and Mohamed Faouzi Mimouni. 2023. “Design of Improved Direct Torque Control Based on a Five Level Torque Controller and a New Sugeno-Takagi Fuzzy Super-Twisting Controller Applied to an Induction Machine.” Engineering Applications of Artificial Intelligence 126: 106900. https://www.sciencedirect.com/science/article/pii/S0952197623010849.
Mohammadi, Fazel, and Rasoul Bok. 2024. “Real-Time Controller-Hardware-in-the-Loop Testing of DC Motor-Drive Systems.” Advances in Electrical and Electronic Engineering 22(1): 54–61.
Son, Dong-Hyeok, and Sung-An Kim. 2024. “Simplified V/f Control Algorithm for Reduction of Current Fluctuations in Variable-Speed Operation of Induction Motors.” Energies 17(7). https://www.mdpi.com/1996-1073/17/7/1699.
Uralde, Jokin et al. 2023. “Model Predictive Control Design and Hardware in the Loop Validation for an Electric Vehicle Powertrain Based on Induction Motors.” Electronics 12(21). https://www.mdpi.com/2079-9292/12/21/4516.
