[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-117545-en":3,"doc-seo-117545-105":30,"detail-sidebar-cat-0-en-105":92},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},117545,2336464648746,"Skyler","https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c",8,"Research & Report","Machine Learning-Based Position Detection Using Hall-Effect Sensor Arrays on Resource-Constrained Microcontroller","This paper presents an electromagnetic levitation system that stabilizes a magnetic body using an array of electromagnets guided by a Hall-effect sensor array and TinyML-based position detection. The approach replaces optical tracking with finite-element optimized electromagnets and a microcontroller-optimized neural network that predicts the levitated object’s position from sensor data with 0.0263–0.0381 mm mean absolute error. Quantized and full-precision supervised multi-output regression models are trained on spatially sampled data and comprehensively benchmarked. Results show stable 850–1000 Hz control frequencies matching optical systems while removing cost and complexity, enabling real-time on-board position detection and current calculation and validating sub-30 µm accuracy on standard microcontrollers.","Article  \nMachine Learning-Based Position Detection Using Hall-Effect Sensor Arrays on Resource-Constrained Microcontroller  \nZalán Németh 1, Chan Hwang See 1, *, Keng Goh 1, Arfan Ghani 2, Simeon Keates 3 and Raed A. Abd-Alhameed 4,5  \nAcademic Editor: Daniel Ramos  \nReceived: 10 September 2025  \nRevised: 3 October 2025  \nAccepted: 16 October 2025  \nPublished: 18 October 2025  \nCitation: Németh, Z.; See, C.H.; Goh, K.; Ghani, A.; Keates, S.; A. AbdAlhameed, R. Machine LearningBased Position Detection Using Hall-Effect Sensor Arrays on ResourceConstrained Microcontroller. Sensors 2025, 25, 6444. [https://doi.org/](https://doi.org/)[ ](https://doi.org/)[10.3390/s25206444](10.3390/s25206444)  \nCopyright: © 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/](https://creativecommons.org/)[ ](https://creativecommons.org/)[licenses/by/4.0/](licenses/by/4.0/)) .  \n1 School of Computing, Engineering and the Built Environment, Edinburgh Napier University, Edinburgh EH10 5DT, UK; [zal.nemeth@gmail.com](zal.nemeth@gmail.com) (Z.N.); [k.goh@napier.ac.uk](k.goh@napier.ac.uk) (K.G.)  \n2 Department of Computer Science and Engineering, American University of Ras al Khaimah, Ras al Khaimah 72603, United Arab Emirates; [arfan.ghani@aurak.ac.ae](arfan.ghani@aurak.ac.ae)  \n3 Centre for Future Technologies, University of Chichester, Chichester PO19 6PE, UK; [s.keates@chi.ac.uk](s.keates@chi.ac.uk)  \n4 Faculty of Engineering and Digital Technologies, University of Bradford, Bradford BD7 1DP, UK; [r.a.a.abd@bradford.ac.uk](r.a.a.abd@bradford.ac.uk)  \n5 Department of Information and Communication Engineering, Al-Farqadein University College, Basrah 651004, Iraq  \n* Correspondence: [c.see@napier.ac.uk](c.see@napier.ac.uk)  \nAbstract  \nThis paper presents an electromagnetic levitation system that stabilizes a magnetic body using an array of electromagnets controlled by a Hall-effect sensor array and TinyMLbased position detection. Departing from conventional optical tracking methods, the proposed design combines finite-element-optimized electromagnets with a microcontrolleroptimized 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 5 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 30 µ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, 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.  \nKeywords: machine learning; Hall-effect sensor array; electromagnetic levitation system; microcontroller; TinyML  \n1. Introduction  \nMagnetic levitation (Maglev) technology has garnered widespread recognition for its transformative capabilities in high-precision positioning systems, with applications ranging from industrial automation and transportation to semiconductor manufacturing [1] . The core advantages of Maglev systems include the elimination of mechanical wear, friction, backlash, and vibration, which are prevalent in traditiona","cbCaipmEaD85W7kr","https://ap.wps.com/l/cbCaipmEaD85W7kr","pdf",2825429,1,16,"English","en",105,"# Introduction\n## Magnetic levitation advantages and challenges\n## Applications of Maglev in different domains\n## Physical principles and need for dynamic feedback","[{\"question\":\"What positioning method does the paper propose instead of optical tracking?\",\"answer\":\"It proposes Hall-effect sensor arrays with TinyML-based position detection using an on-board microcontroller-optimized neural network.\"},{\"question\":\"How accurate is the proposed position detection system?\",\"answer\":\"The system achieves a mean absolute error in the range of 0.0263–0.0381 mm and demonstrates sub-30 µm accuracy with standard microcontrollers.\"},{\"question\":\"What control performance is reported for the levitation system?\",\"answer\":\"Benchmarking demonstrates stable operation at 850–1000 Hz control frequencies while maintaining performance comparable to optical systems.\"}]","Machine Learning-Based Position Detection Using Hall-Effect Sensor Arrays on Resource-Constrained Microcontroller | PDF",1785676895,40,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":87,"head_meta":89,"extra_data":91,"updated_unix":28},"machine-learning-based-position-detection-using-hall-effect-sensor-arrays-on-resource-constrained-microcontroller","",{"@graph":36,"@context":86},[37,54,69],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/research-report/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/machine-learning-based-position-detection-using-hall-effect-sensor-arrays-on-resource-constrained-microcontroller/117545/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":23,"description":14,"dateModified":62,"datePublished":63,"encodingFormat":61,"isAccessibleForFree":64,"interactionStatistic":65},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-08-06","2026-08-02",true,{"@type":66,"interactionType":67,"userInteractionCount":20},"InteractionCounter",{"@type":68},"ViewAction",{"@type":70,"mainEntity":71},"FAQPage",[72,78,82],{"name":73,"@type":74,"acceptedAnswer":75},"What positioning method does the paper propose instead of optical tracking?","Question",{"text":76,"@type":77},"It proposes Hall-effect sensor arrays with TinyML-based position detection using an on-board microcontroller-optimized neural network.","Answer",{"name":79,"@type":74,"acceptedAnswer":80},"How accurate is the proposed position detection system?",{"text":81,"@type":77},"The system achieves a mean absolute error in the range of 0.0263–0.0381 mm and demonstrates sub-30 µm accuracy with standard microcontrollers.",{"name":83,"@type":74,"acceptedAnswer":84},"What control performance is reported for the levitation system?",{"text":85,"@type":77},"Benchmarking demonstrates stable operation at 850–1000 Hz control frequencies while maintaining performance comparable to optical systems.","https://schema.org",{"og:url":52,"og:type":88,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":90,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":93},[94,98,102,106,111,116,120,123,128,131,135],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":95,"show_sort_weight":96,"slug":97},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":99,"show_sort_weight":100,"slug":101},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":103,"show_sort_weight":104,"slug":105},"Exam",70,"exam",{"id":107,"doc_module":4,"doc_module_name":46,"category_name":108,"show_sort_weight":109,"slug":110},5,"Comic",60,"comic",{"id":112,"doc_module":4,"doc_module_name":46,"category_name":113,"show_sort_weight":114,"slug":115},6,"Technology",50,"technology",{"id":117,"doc_module":4,"doc_module_name":46,"category_name":118,"show_sort_weight":29,"slug":119},7,"Healthcare","healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":121,"slug":122},30,"research-report",{"id":124,"doc_module":4,"doc_module_name":46,"category_name":125,"show_sort_weight":126,"slug":127},9,"Religion & Spirituality",20,"religion-spirituality",{"id":126,"doc_module":4,"doc_module_name":46,"category_name":129,"show_sort_weight":126,"slug":130},"World Cup","world-cup",{"id":132,"doc_module":4,"doc_module_name":46,"category_name":133,"show_sort_weight":132,"slug":134},10,"Lifestyle","lifestyle",{"id":136,"doc_module":4,"doc_module_name":46,"category_name":137,"show_sort_weight":107,"slug":138},19,"General","general"]