Embedded Implementation and Characterization of a Model Predictive Control in Velocity Form for Synchronous Motor Currents
Abstract
1. Introduction
2. Theoretical Framework
2.1. Dynamical Model
2.2. Velocity-Form MPC
2.3. Quadratic Programming Formulation for MPC
3. Test Equipment
3.1. Microcontroller and Power Stage
3.2. Communication and Measurements
3.3. Electric Motor
3.4. Mechanical Load
4. Control
4.1. Cost Functions
4.2. Settings for Real-Time Operation
5. Results
5.1. Mission Profile
5.2. Transient Characterization
5.3. Execution Time Measurement
5.4. Steady-State Characterization
5.5. Load Disturbance Analysis
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| BEMF | Back Electro-Motive Force |
| C1 | Controller 1 |
| C2 | Controller 2 |
| C3 | Controller 3 |
| CCS-MPC | Continuous Control Set Model Predictive Control |
| DC | Direct Current |
| DWT | Data Watch and Trace |
| FCS-MPC | Finite Control Set Model Predictive Control |
| FFT | Fast Fourier Transform |
| FOC | Field-Oriented Control |
| ISR | Interrupt Service Routine |
| LQ | Linear Quadratic |
| LQG | Linear Quadratic Gaussian |
| MPC | Model Predictive Control |
| NEMA | National Electrical Manufacturers Association |
| OSQP | Operator Splitting Quadratic Programming |
| PI | Proportional Integral |
| PMSM | Permanent Magnet Synchronous Motor |
| PWM | Pulse Width Modulation |
| QP | Quadratic Programming |
| qpOASES | Quadratic Programming Online Active Set Strategy |
| RCP | Rapid Control Prototyping |
| SPM | Surface-mounted Permanent Magnet |
| STFT | Short Time Fourier Transform |
| SVM | Space Vector Modulation |
| USB | Universal Serial Bus |
| USART | Universal Synchronous-Asynchronous Receiver-Transmitter |
References
- Busarello, T.D.C.; Bubshait, A.; Varaprasad, O.V.S.R.; Alsaleem, A.; Simões, M.G. A Comprehensive Methodology of Field-Oriented Control Design with Parameter Variation Analysis for Interior Permanent Magnet Synchronous Machine Drives. IEEE Access 2025, 13, 89524–89541. [Google Scholar] [CrossRef] [Scilit]
- Tuyen, T.T.; Yang, J.; Liao, L.; Thao, N.G.M. Recent Advances in Sliding Mode Control Techniques for Permanent Magnet Synchronous Motor Drives. Electronics 2025, 14, 3933. [Google Scholar] [CrossRef] [Scilit]
- Hou, Q.; Ding, S.; Yu, X.; Mei, K. A Super-Twisting-Like Fractional Controller for SPMSM Drive System. IEEE Trans. Ind. Electron. 2022, 69, 9376–9384. [Google Scholar] [CrossRef] [Scilit]
- Martins, L.; Cardeira, C.; Oliveira, P. Linear Quadratic Regulator for Trajectory Tracking of a Quadrotor. IFAC-PapersOnLine 2019, 52, 176–181. [Google Scholar] [CrossRef] [Scilit]
- Patarroyo-Patarroyo-Montenegro, J.F.; Andrade, F.; Guerrero, J.M.; Vasquez, J.C. A Linear Quadratic Regulator with Optimal Reference Tracking for Three-Phase Inverter-Based Islanded Microgrids. IEEE Trans. Power Electron. 2020, 36, 7112–7122. [Google Scholar] [CrossRef] [Scilit]
- Wang, H.; Zhu, M.; Hong, W.; Wang, C.; Tao, G.; Wang, Y. Optimizing Signal Timing Control for Large Urban Traffic Networks Using an Adaptive Linear Quadratic Regulator Control Strategy. IEEE Trans. Intell. Transp. Syst. 2020, 23, 333–343. [Google Scholar] [CrossRef] [Scilit]
- Shi, T.; Yan, Y.; Zhou, Z.; Xiao, M.; Xia, C. Linear Quadratic Regulator Control for PMSM Drive Systems Using Nonlinear Disturbance Observer. IEEE Trans. Power Electron. 2019, 35, 5093–5101. [Google Scholar] [CrossRef] [Scilit]
- Liu, H.; Hu, F.; Su, J.; Wei, X.; Qin, R. Comparisons on Kalman-Filter-Based Dynamic State Estimation Algorithms of Power Systems. IEEE Access 2020, 8, 51035–51043. [Google Scholar] [CrossRef] [Scilit]
- Li, N.; Chen, H.; Li, M.; Yu, S.; Huang, Y. Model Predictive Control: Past, Present, and Future. Control Theory Technol. 2026, 24, 173–193. [Google Scholar] [CrossRef] [Scilit]
- Rodriguez, J.; Garcia, C.; Mora, A.; Flores-Bahamonde, F.; Acuna, P.; Novak, M.; Zhang, Y.; Tarisciotti, L.; Davari, S.A.; Zhang, Z.; et al. Latest Advances of Model Predictive Control in Electrical Drives—Part I: Basic Concepts and Advanced Strategies. IEEE Trans. Power Electron. 2022, 37, 3927–3942. [Google Scholar] [CrossRef] [Scilit]
- Rodriguez, J.; Garcia, C.; Mora, A.; Davari, S.A.; Rodas, J.; Valencia, D.F.; Elmorshedy, M.; Wang, F.; Zuo, K.; Tarisciotti, L.; et al. Latest Advances of Model Predictive Control in Electrical Drives—Part II: Applications and Benchmarking with Classical Control Methods. IEEE Trans. Power Electron. 2022, 37, 5047–5061. [Google Scholar] [CrossRef] [Scilit]
- Yu, Z.; Long, J. Review on Advanced Model Predictive Control Technologies for High-Power Converters and Industrial Drives. Electronics 2024, 13, 4969. [Google Scholar] [CrossRef] [Scilit]
- Aguirre, M.; Kouro, S.; Rojas, C.A.; Rodriguez, J.; Leon, J.I. Switching Frequency Regulation for FCS-MPC Based on a Period Control Approach. IEEE Trans. Ind. Electron. 2018, 65, 5764–5773. [Google Scholar] [CrossRef] [Scilit]
- Li, T.; Sun, X.; Lei, G.; Guo, Y.; Yang, Z.; Zhu, J. Finite-Control-Set Model Predictive Control of Permanent Magnet Synchronous Motor Drive Systems—An Overview. IEEE/CAA J. Autom. Sin. 2022, 9, 2087–2105. [Google Scholar] [CrossRef] [Scilit]
- Gemma, F.; Tresca, G.; Riccio, J.; Mohammadzadeh, B.; Volpini, A.; Zanchetta, P. Computationally Efficient MPC with Embedded Adaptive Battery Balancing for CHB Inverters. IEEE Trans. Ind. Appl. 2026, 1–10. [Google Scholar] [CrossRef] [Scilit]
- Gemma, F.; Riccio, J.; Rovere, L.; Tresca, G.; Volpini, A.; Zanchetta, P. Model-Predictive Control of Open-End Winding Synchronous Reluctance Motor Drives. IEEE Trans. Ind. Appl. 2026, 1–10. [Google Scholar] [CrossRef] [Scilit]
- Santos, J.C.; Gouttefarde, M.; Chemori, A. A Nonlinear Model Predictive Control for the Position Tracking of Cable-Driven Parallel Robots. IEEE Trans. Robot. 2022, 38, 2597–2616. [Google Scholar] [CrossRef] [Scilit]
- Zhang, H.; Prempain, E. A Non-Linear Offset-Free Model Predictive Control Design Approach. Actuators 2024, 13, 322. [Google Scholar] [CrossRef] [Scilit]
- Favato, A.; Carlet, P.G.; Toso, F.; Torchio, R.; Bolognani, S. Integral Model Predictive Current Control for Synchronous Motor Drives. IEEE Trans. Power Electron. 2021, 36, 13293–13303. [Google Scholar] [CrossRef] [Scilit]
- Schimperna, I.; Rubino, A.; Magni, L. Velocity Form MPC for Current Control in Synchronous Reluctance Motors. IEEE Trans. Control Syst. Technol. 2025, 33, 2463–2469. [Google Scholar] [CrossRef] [Scilit]
- Stellato, B.; Banjac, G.; Goulart, P.; Bemporad, A.; Boyd, S. OSQP: An Operator Splitting Solver for Quadratic Programs. Math. Program. Comput. 2020, 12, 637–672. [Google Scholar] [CrossRef] [Scilit]
- Ferreau, H.J.; Kirches, C.; Potschka, A.; Bock, H.G.; Diehl, M. QpOASES: A Parametric Active-Set Algorithm for Quadratic Programming. Math. Program. Comput. 2014, 6, 327–363. [Google Scholar] [CrossRef] [Scilit]
- Toso, F.; Carlet, P.G.; Favato, A.; Bolognani, S. On-line Continuous Control Set MPC for PMSM Drives Current Loops at High Sampling Rate Using qpOASES. In Proceedings of the 2019 IEEE Energy Conversion Congress and Exposition (ECCE), Baltimore, MD, USA, 29 September–3 October 2019; pp. 6615–6620. [Google Scholar] [CrossRef] [Scilit]
- Cimini, G.; Bernardini, D.; Levijoki, S.; Bemporad, A. Embedded Model Predictive Control with Certified Real-Time Optimization for Synchronous Motors. IEEE Trans. Control Syst. Technol. 2020, 29, 893–900. [Google Scholar] [CrossRef] [Scilit]
- De Boni, G.; Mantione, L.; Minervini, M.; Frosini, L. Look-Up Table Based Reduced Order Model of Synchronous Motors for Digital Twin Applications. 2025 IEEE Workshop on Electrical Machines Design, Control and Diagnosis (WEMDCD), Valletta, Malta, 9–10 April 2025; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
- Ahuar, R.L.; Figueroa, D.; Agüero, J.C.; Silva, C.A. Experimental Validation of Offset-Free Model-Based Predictive Control in Voltage Source Inverters for Grid Connected and Microgrids Applications. Appl. Sci. 2025, 15, 1567. [Google Scholar] [CrossRef] [Scilit]
- Jerez, J.L.; Kerrigan, E.C.; Constantinides, G.A. A sparse and condensed QP formulation for predictive control of LTI systems. Automatica 2012, 48, 999–1002. [Google Scholar] [CrossRef] [Scilit]
- Barros, A.; Peretti, E.; Fabroni, D.; Carrera, D.; Fragneto, P.; Boracchi, G. Adaptive Extended Kalman Filtering for Battery State of Charge Estimation on STM32. IEEE Embed. Syst. Lett. 2025, 17, 160–163. [Google Scholar] [CrossRef] [Scilit]
- Liao, X.; Chen, S.; Long, Y.; Zhao, S. Neural Dynamics Model for Temperature Estimation of Permanent Magnet Synchronous Motor. IEEE Trans. Veh. Technol. 2025, 74, 11993–12003. [Google Scholar] [CrossRef] [Scilit]
- Czerwinski, D.; Gęca, J.; Kolano, K. Machine Learning for Sensorless Temperature Estimation of a BLDC Motor. Sensors 2021, 21, 4655. [Google Scholar] [CrossRef] [Scilit]
- Antony, R.P.; Komarasamy, P.R.G.; Ibrahim, M.A.; Alanazi, A.; Rajamanickam, N. Performance Enhancement of Wireless BLDC Motor Using Adaptive Reinforcement Learning for Sustainable Pumping Applications. Sustainability 2025, 17, 10881. [Google Scholar] [CrossRef] [Scilit]
- Kroičs, K.; Būmanis, A. BLDC Motor Speed Control with Digital Adaptive PID-Fuzzy Controller and Reduced Harmonic Content. Energies 2024, 17, 1311. [Google Scholar] [CrossRef] [Scilit]
- Zhang, P.; Shi, Z.; Yu, B.; Qi, H. Research on the Control Method of a Brushless DC Motor Based on Second-Order Active Disturbance Rejection Control. Machines 2024, 12, 244. [Google Scholar] [CrossRef] [Scilit]
- De Boni, G.; Fernandez-Cavero, V.; Frosini, L.; Duque-Perez, O.; Morinigo-Sotelo, D. Fault Harmonics Current Detection in Closed-Loop Controlled Induction Motors. In Proceedings of the 2023 IEEE 14th International Symposium on Diagnostics for Electrical Machines, Power Electronics and Drives (SDEMPED), Chania, Greece, 22–25 August 2023; pp. 443–449. [Google Scholar] [CrossRef] [Scilit]
- Mantione, L.; Garcia-Calva, T.; Fernandez-Cavero, V.; Frosini, L.; Moriñigo-Sotelo, D. Broken Rotor Bar Detection in Closed Loop Inverter Fed Induction Motors Through Time-Frequency Techniques. IEEE Trans. Ind. Appl. 2025, 61, 209–217. [Google Scholar] [CrossRef] [Scilit]
- Bonet-Jara, J.; Fernandez-Cavero, V.; Vedreno-Santos, F.; Morinigo-Sotelo, D.; Pons-Llinares, J. Very Accurate Time-Frequency Representation of Induction Motors Harmonics for Fault Diagnosis Under Load Variations. IEEE Trans. Ind. Appl. 2024, 60, 3903–3911. [Google Scholar] [CrossRef] [Scilit]









| Element | Model | Parameter | Value | Symbol |
|---|---|---|---|---|
| Microcontroller | STM32G431RB | Architecture | Arm Cortex-M4 | – |
| Clock frequency | 170 MHz | |||
| Current sampling rate | 153 MHz | |||
| Communication rate | 3 kHz | |||
| Current control ISR rate | 3 kHz | |||
| Power stage | IHM16M1 | Current sensing | Shunt resistors | – |
| Max. DC input voltage | 45 V | – | ||
| Maximum current | 2 A | – | ||
| Maximum continuous power | 40 W | – | ||
| Switching frequency | 15 kHz | |||
| Power supply | PS281 | Maximum voltage | 30 V | – |
| Maximum current | 5 A | – |
| Name | Symbol | Value |
|---|---|---|
| Pole pairs | p | 4 |
| Line–line resistance | 0.8 | |
| Nominal voltage | 24 V | |
| No-load speed | 6000 rpm | |
| Nominal torque | 125 mNm | |
| Nominal speed | 4000 rpm | |
| Peak torque | 380 mNm | |
| Torque constant | 35.5 mNm/A | |
| Voltage constant | 2.71 V/krpm | |
| Rotor inertia | I | 48 g·cm2 |
| Weight | m | 0.45 kg |
| Height | H | 42 mm |
| Width | W | 42 mm |
| Depth | D | 60.3 mm |
| Label | Q | R | cond(H) * |
|---|---|---|---|
| C1 | diag(0.1 , 0.1 , , ) ** | diag(100, ) | 12.1 |
| C2 | diag(0.1 , 0.1 ,, ) | diag(, ) | 39.7 |
| C3 | diag(0.1 , 0.1 ,, ) | diag(, ) | 3.5 |
| Label | ISR Mean [s] | ISR Worst [s] | QP Mean [s] | QP Worst [s] |
|---|---|---|---|---|
| C1 | 249 | 296 | 234 | 286 |
| C2 | 255 | 297 | 240 | 286 |
| C3 | 250 | 295 | 234 | 286 |
| Label | [mV] | [mA] | [mA] |
|---|---|---|---|
| C1 | 93 | 116 | 29 |
| C2 | 194 | 159 | 35 |
| C3 | 52 | 90 | 26 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
De Boni, G.; Mantione, L.; Frosini, L. Embedded Implementation and Characterization of a Model Predictive Control in Velocity Form for Synchronous Motor Currents. Electronics 2026, 15, 2561. https://doi.org/10.3390/electronics15122561
De Boni G, Mantione L, Frosini L. Embedded Implementation and Characterization of a Model Predictive Control in Velocity Form for Synchronous Motor Currents. Electronics. 2026; 15(12):2561. https://doi.org/10.3390/electronics15122561
Chicago/Turabian StyleDe Boni, Gabriele, Lorenzo Mantione, and Lucia Frosini. 2026. "Embedded Implementation and Characterization of a Model Predictive Control in Velocity Form for Synchronous Motor Currents" Electronics 15, no. 12: 2561. https://doi.org/10.3390/electronics15122561
APA StyleDe Boni, G., Mantione, L., & Frosini, L. (2026). Embedded Implementation and Characterization of a Model Predictive Control in Velocity Form for Synchronous Motor Currents. Electronics, 15(12), 2561. https://doi.org/10.3390/electronics15122561

