Design and Development of Motion Control for a Metal Waste Cleaning-24 Robot Using ESP32 and PID Control
Received: 20 October 2025 | Revised: 20 November 2025 | Accepted: 29 November 2025 | Online: 18 December 2025
Corresponding author: Andi Amijoyo Mochtar
Abstract
This study presents the first low-cost ESP32-based metal waste removal robot specifically designed for small to medium-sized industries. The Metal Waste Cleaning-24 robot is developed using an ESP32 microcontroller with Proportional–Integral–Derivative (PID) control tuned using the Ziegler–Nichols method and validated through Routh–Hurwitz stability analysis. The system integrates an ultrasonic sensor, a drive motor, and a servo motor powered by a 12 V battery with a sampling time of 10 ms. A mathematical model of a DC motor with a transfer function of is implemented for precise motion control. Structural analysis using ANSYS simulation with aluminum alloy 319.0 shows that the maximum von Mises stress is well below the material's tensile strength limit, with 97% correlation (r=0.9847) between simulation and experimental validation. This robot is capable of processing metal waste with a weight of 50-500 g and a density of 2.0-8.0 g/cm³, achieving a peak efficiency of 167 g/min. In contrast to commercial systems valued at USD 2.75 billion, our solution costs USD 25-50, bridging a crucial research gap by providing quantitative PID controller performance data for metal waste manipulators in a real industrial environment that were previously unavailable in the literature.
Keywords:
metal waste cleaning robot, PID control, ESP32, ANSYSDownloads
References
M.-W. Li, S.-M. Chang, and Y.-P. Liao, "Design and Implementation of a Cleaning Robot with Dual-Arms," in 2024 10th International Conference on Applied System Innovation, Kyoto, Japan, 2024, pp. 15–17. DOI: https://doi.org/10.1109/ICASI60819.2024.10547771
A. Joon and W. Kowalczyk, "Design of Autonomous Mobile Robot for Cleaning in the Environment with Obstacles," Applied Sciences, vol. 11, no. 17, Sept. 2021, Art. no. 8076. DOI: https://doi.org/10.3390/app11178076
S. M. Saidi, R. Mellah, A. Fekik, and A. T. Azar, "Real-Time Fuzzy-PID for Mobile Robot Control and Vision-Based Obstacle Avoidance," International Journal of Service Science, Management, Engineering, and Technology, vol. 13, no. 1, pp. 1–32, Jan. 2022. DOI: https://doi.org/10.4018/IJSSMET.304818
X. Yu, Y. Fan, S. Xu, and L. Ou, "A self-adaptive SAC-PID control approach based on reinforcement learning for mobile robots," International Journal of Robust and Nonlinear Control, vol. 32, no. 18, pp. 9625–9643, Dec. 2022. DOI: https://doi.org/10.1002/rnc.5662
M. R. Razali, A. A. Mohd Faudzi, A. U. Shamsudin, and S. Mohamaddan, "A hybrid controller method with genetic algorithm optimization to measure position and angular for mobile robot motion control," Frontiers in Robotics and AI, vol. 9, Jan. 2023, Art. no. 1087371. DOI: https://doi.org/10.3389/frobt.2022.1087371
Z. Li, "Review of PID control design and tuning methods," Journal of Physics: Conference Series, vol. 2649, no. 1, Nov. 2023, Art. no. 012009. DOI: https://doi.org/10.1088/1742-6596/2649/1/012009
K. Zhu, "Optimization of Path Planning for Domestic Sweeping Robots Using Fuzzy PID Control," Highlights in Science, Engineering and Technology, vol. 111, pp. 590–596, Aug. 2024. DOI: https://doi.org/10.54097/22bk2502
M. A. U. F.A.B, "Rancang Bangun Robot Penghindar Halangan Dengan Metode PID," Jurnal Teknik Mesin, Industri, Elektro dan Informatika, vol. 2, no. 3, pp. 212–222, Aug. 2023. DOI: https://doi.org/10.55606/jtmei.v2i3.2352
V. Tinoco, M. F. Silva, F. N. Santos, R. Morais, S. A. Magalhães, and P. M. Oliveira, "A review of advanced controller methodologies for robotic manipulators," International Journal of Dynamics and Control, vol. 13, no. 1, Jan. 2025, Art. no. 36. DOI: https://doi.org/10.1007/s40435-024-01533-1
H. Meng, S. Zhang, W. Zhang, and Y. Ren, "Optimizing actual PID control for walking quadruped soft robots using genetic algorithms," Scientific Reports, vol. 14, no. 1, Oct. 2024, Art. no. 25946. DOI: https://doi.org/10.1038/s41598-024-77100-7
R. S. Ali, A. A. Aldair, and A. K. Almousawi, "Design an Optimal PID Controller using Artificial Bee Colony and Genetic Algorithm for Autonomous Mobile Robot," International Journal of Computer Applications, vol. 100, no. 16, pp. 8–16, Aug. 2014. DOI: https://doi.org/10.5120/17607-8016
M. I. Azeez, A. M. M. Abdelhaleem, S. Elnaggar, K. A. F. Moustafa, and K. R. Atia, "Optimization of PID trajectory tracking controller for a 3-DOF robotic manipulator using enhanced Artificial Bee Colony algorithm," Scientific Reports, vol. 13, no. 1, July 2023, Art. no. 11164. DOI: https://doi.org/10.1038/s41598-023-37895-3
M. Jasim Mohamed, B. K. Oleiwi, A. T. Azar, and A. R. Mahlous, "Hybrid controller with neural network PID/FOPID operations for two-link rigid robot manipulator based on the zebra optimization algorithm," Frontiers in Robotics and AI, vol. 11, June 2024, Art. no. 1386968. DOI: https://doi.org/10.3389/frobt.2024.1386968
J. Ito and Y. Wasa, "Data-Driven Adaptive PID Control Based on Physics-Informed Neural Networks." arXiv, Oct. 08, 2025.
A. Daniels, S. Kerz, S. Bari, V. Gabler, and D. Wollherr, "Grasping in Uncertain Environments: A Case Study For Industrial Robotic Recycling," in 2023 IEEE International Conference on Systems, Man, and Cybernetics, Honolulu, Oahu, HI, USA, 2023, pp. 3514–3521. DOI: https://doi.org/10.1109/SMC53992.2023.10394008
A. G. Satav, S. Kubade, C. Amrutkar, G. Arya, and A. Pawar, "A state-of-the-art review on robotics in waste sorting: scope and challenges," International Journal on Interactive Design and Manufacturing, vol. 17, no. 6, pp. 2789–2806, Dec. 2023. DOI: https://doi.org/10.1007/s12008-023-01320-w
S. Ekinci, D. Izci, V. Gider, M. Bajaj, V. Blazek, and L. Prokop, "Quadratic interpolation optimization-based 2DoF-PID controller design for highly nonlinear continuous stirred-tank heater process," Scientific Reports, vol. 15, no. 1, May 2025, Art. no. 16324. DOI: https://doi.org/10.1038/s41598-025-01379-3
R. Shahouni, M. Bahraini, M. Abrofarakh, and M. Abbasi, "Adaptive tuning of fractional order PID controllers for nonlinear processes using hybrid PSO DQN reinforcement learning," Scientific Reports, vol. 15, no. 1, Nov. 2025, Art. no. 38545. DOI: https://doi.org/10.1038/s41598-025-22509-x
M. Likins, "Improve Process Efficiency Through Regulatory Control Stabilization." Yokogawa.
"Recycling robots: Everything you need to know in 2025." Standardbots. https://standardbots.com/blog/recycling-robots-everything-you-need-to-know-in-2024.
"Waste Sorting Robots Market Size, Value & Forecast to 2033." The Brainy Insights. https://www.thebrainyinsights.com/report/waste-sorting-robots-market-14094?srsltid=AfmBOookeJKXLSwiJN9rWHoU4kVtSN0fMVllHAEz6bYeb8lpR_pGCBAi.
B. K. Oleiwi, M. Jasim, A. T. Azar, S. Ahmed, and A. R. Mahlous, "Bat optimization of hybrid neural network-FOPID controllers for robust robot manipulator control," Frontiers in Robotics and AI, vol. 12, May 2025, Art. no. 1487844. DOI: https://doi.org/10.3389/frobt.2025.1487844
K. Mendoza-Bautista, M. Alfaro-Ponce, and I. Chairez, "Hybrid robust disturbance rejection position-force control to adjust the motion of mobile manipulator in automatic aluminum foundry recycling industries," International Journal of Sustainable Engineering, vol. 17, no. 1, pp. 322–340, Dec. 2024. DOI: https://doi.org/10.1080/19397038.2024.2337787
J. Akl, Y. Patil, C. Todankar, and B. Calli, "Vision-Based Oxy-Fuel Torch Control for Robotic Metal Cutting," in 2023 IEEE/RSJ International Conference on Intelligent Robots and Systems, Detroit, MI, USA, 2023, pp. 6403–6410. DOI: https://doi.org/10.1109/IROS55552.2023.10341532
MakerbaseMoon/cleaner-4th-esp32. (2025). Github. Accessed: Dec. 15, 2025. [Online]. Available: https://github.com/MakerbaseMoon/cleaner-4th-esp32
Y. Wang, Y. Zhao, Y. Wu, S. Zhang, and J. Wang, "A Multi-sensor Intelligent Surface Garbage Cleaning Robot," in 2021 IEEE International Conference on Mechatronics and Automation, Takamatsu, Japan, 2021, pp. 797–801. DOI: https://doi.org/10.1109/ICMA52036.2021.9512614
"Waste Sorting Robots Market Size, Share & Growth, 2033." Market Data Forecast. https://www.marketdataforecast.com/market-reports/waste-sorting-robots-market.
R. R. Kundavaram, A. R. Onteddu, K. Devarapu, D. Narsina, and M. Nizamuddin, "Advances in Autonomous Robotics for Environmental Cleanup and Hazardous Waste Management," Asia Pacific Journal of Energy and Environment, vol. 12, no. 1, pp. 1–16, Feb. 2025. DOI: https://doi.org/10.18034/apjee.v12i1.788
N. Naajihah Ab Rahman and N. Mat Yahya, "System Identification for a Mathematical Model of DC Motor System," in 2022 IEEE International Conference on Automatic Control and Intelligent Systems, Shah Alam, Malaysia, 2022, pp. 30–35. DOI: https://doi.org/10.1109/I2CACIS54679.2022.9815461
N. N. A. Rahman and N. M. Yahya, "A mathematical model of a brushed DC motor system," Data Analytics and Applied Mathematics, vol. 2, no. 2, pp. 60–68, Dec. 2021. DOI: https://doi.org/10.15282/daam.v2i2.6830
A. Hoang, S. T. Nguyen, T. V. Pham, T. M. Pham, L. V. Trieu, and T. T. Cao, "A Bayesian Neural Network-based Obstacle Avoidance Algorithm for an Educational Autonomous Mobile Robot Platform," Engineering, Technology & Applied Science Research, vol. 13, no. 6, pp. 12183–12189, Dec. 2023. DOI: https://doi.org/10.48084/etasr.6304
M. Kuczmann, "Review of DC Motor Modeling and Linear Control: Theory with Laboratory Tests," Electronics, vol. 13, no. 11, June 2024, Art. no. 2225. DOI: https://doi.org/10.3390/electronics13112225
F. Ding, "Finite element analysis and optimal design of robotic arm," Applied and Computational Engineering, vol. 33, pp. 88–93, Feb. 2024. DOI: https://doi.org/10.54254/2755-2721/33/20230238
X. Li and J. Liang, "Optimization design and finite element analysis of welding robot base based on ANSYS Workbench," Journal of Physics: Conference Series, vol. 2383, no. 1, Dec. 2022, Art. no. 012073. DOI: https://doi.org/10.1088/1742-6596/2383/1/012073
J. Zhang, L. Wang, and L. Jing, "Static Analysis of Manipulator Based on Solidworks and ANSYS Workbench," Journal of Physics: Conference Series, vol. 2477, no. 1, Apr. 2023, Art. no. 012099. DOI: https://doi.org/10.1088/1742-6596/2477/1/012099
N. Khedkar, K. Wani, V. Jatti, and V. Joshi, "Experimental, Modal, and Harmonic Response Analysis of a Chladni Plate at Ultrasonic Frequencies," Engineering, Technology & Applied Science Research, vol. 13, no. 6, pp. 12289–12294, Dec. 2023. DOI: https://doi.org/10.48084/etasr.6428
M. R. Sagita, A. Ma’arif, F. Furizal, C. Rekik, W. Caesarendra, and R. Majdoubi, "Motion System of a Four-Wheeled Robot Using a PID Controller Based on MPU and Rotary Encoder Sensors," Control Systems and Optimization Letters, vol. 2, no. 2, pp. 257–265, Nov. 2024. DOI: https://doi.org/10.59247/csol.v2i2.150
Y. Zheng, M. Liu, B. Li, G. Ma, and M. Xiao, "Structural optimization of a pipe-climbing robot based on ANSYS," Mechanical Sciences, vol. 13, no. 2, pp. 725–733, Aug. 2022. DOI: https://doi.org/10.5194/ms-13-725-2022
N. T. Minh Nguyet and D. X. Ba, "A neural flexible PID controller for task-space control of robotic manipulators," Frontiers in Robotics and AI, vol. 9, Jan. 2023, Art. no. 975850. DOI: https://doi.org/10.3389/frobt.2022.975850
O. Çakar and M. Alçın, "Industrial robot arm analysis using finite element method," Bilgisayar Bilimleri ve Teknolojileri Dergisi, vol. 3, no. 1, pp. 30–37, Aug. 2022. DOI: https://doi.org/10.54047/bibted.1111400
J. Yu, K. Yang, S. Chen, and J. Zhang, "Lightweight Design of Heavy-duty Logistics Robot Based on ANSYS," Academic Journal of Science and Technology, vol. 10, no. 2, pp. 26–31, Apr. 2024. DOI: https://doi.org/10.54097/0t6m7f71
F. Alhajri and H. Ali Alajmi, "Finite Element Analysis and Design Optimisation of Welding robot base using ANSYS," International Journal of Innovative Science and Research Technology, vol. 9, no. 9, pp. 3424–3430, Sept. 2024. DOI: https://doi.org/10.38124/ijisrt/IJISRT24SEP877
X. Yang, C. Zhang, and L. Zhou, "Static analysis and optimization design of a special-shaped rod of the crab-like robot based on ANSYS Workbench," Journal of Physics: Conference Series, vol. 2459, no. 1, Mar. 2023, Art. no. 012136. DOI: https://doi.org/10.1088/1742-6596/2459/1/012136
T. D. Phan et al., "Research Impact of Solar Panel Cleaning Robot on Photovoltaic Panel’s Deflection." arXiv, June 09, 2023.
Downloads
How to Cite
License
Copyright (c) 2025 La Ode Muhammad Ali Ali, Andi Amijoyo Mochtar Andi, Fauzan Djamaluddin Fauzan

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain the copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) after its publication in ETASR with an acknowledgement of its initial publication in this journal.
