Enhancing Field-Oriented Control of Electric Drives with Tiny Neural Network Optimized for Micro-controllers
Martin Joel Mouk Elele, Danilo Pau, Shixin Zhuang, Tullio Facchinetti
TL;DR
This work tackles the challenge of enhancing Field-Oriented Control for PMSMs on resource-constrained micro-controllers by integrating a tiny neural network, TinyFC, into the speed control loop. Through a two-branch, 1,400-parameter architecture optimized via Bayesian hyperparameter search, PCA-based pruning, and 8-bit quantization, the authors demonstrate significant reductions in overshoot and improved speed tracking compared to PI-based FOC in simulated test cases. Key contributions include a high-fidelity Simulink-based testbed, a dataset-ground-truth framework using adjusted PI predictions, and a practical deployment evaluation on an STM32G4 MCU showing favorable memory and timing characteristics. The findings indicate that TinyNN augmentation can enhance real-time motor control in edge devices, while also highlighting the need for physics-informed loss criteria and further work to replace PI with a fully data-driven control approach for PMSMs.
Abstract
The deployment of neural networks on resource-constrained micro-controllers has gained momentum, driving many advancements in Tiny Neural Networks. This paper introduces a tiny feed-forward neural network, TinyFC, integrated into the Field-Oriented Control (FOC) of Permanent Magnet Synchronous Motors (PMSMs). Proportional-Integral (PI) controllers are widely used in FOC for their simplicity, although their limitations in handling nonlinear dynamics hinder precision. To address this issue, a lightweight 1,400 parameters TinyFC was devised to enhance the FOC performance while fitting into the computational and memory constraints of a micro-controller. Advanced optimization techniques, including pruning, hyperparameter tuning, and quantization to 8-bit integers, were applied to reduce the model's footprint while preserving the network effectiveness. Simulation results show the proposed approach significantly reduced overshoot by up to 87.5%, with the pruned model achieving complete overshoot elimination, highlighting the potential of tiny neural networks in real-time motor control applications.
