Publication

Machine learning-based position detection using hall-effect sensor arrays on resource-constrained microcontroller

Németh, Z.
See, C.H.
Goh, K.
Ghani, A.
Keates, S.
Publication Date
2025-10-01
End of Embargo
Supervisor
Rights
© 2025 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 (https://creativecommons.org/licenses/by/4.0/).
Peer-Reviewed
Yes
Open Access status
openAccess
Accepted for publication
2025-10-16
Institution
Department
Awarded
Embargo end date
Additional title
Abstract
This paper presents an electromagnetic levitation system that stabilizes a magnetic body using an array of electromagnets controlled by a Hall-effect sensor array and TinyML-based position detection. Departing from conventional optical tracking methods, the proposed design combines finite-element-optimized electromagnets with a microcontroller-optimized neural network that processes sensor data to predict the levitated object's position with 0.0263–0.0381 mm mean absolute error. The system employs both quantized and full-precision implementations of a supervised multi-output regression model trained on spatially sampled data (40×40×15 mm volume at 1 mm intervals). Comprehensive benchmarking demonstrates stable operation at 850–1000 Hz control frequencies, matching optical systems' performance while eliminating their cost and complexity. The integrated solution performs real-time position detection and current calculation entirely on-board, requiring no external tracking devices or high-performance computing. By achieving sub-40 μm accuracy with standard microcontrollers and minimal hardware, this work validates machine learning as a viable alternative to optical position detection in magnetic levitation systems, significantly reducing implementation barriers for research and industrial applications. The complete system design, including electromagnetic array characterization, neural network architecture selection, and real-time implementation challenges, is presented alongside performance comparisons with conventional approaches.
Version
Published version
Citation
Németh Z, See CH, Goh K et al (2025) Machine learning-based position detection using hall-effect sensor arrays on resource-constrained microcontroller. Sensors. 25(20): 6444.
Link to publisher’s version
Link to published version
Link to Version of Record
Type
Article
Qualification name
Notes