Implementation of a pid controller in a dc motor system: a case study on a floor cleaning robot
Abstract
A floor-cleaning robot requires a stable and consistent movement to ensure effective cleaning. This study implements a Proportional-Integral-Derivative (PID) control system using Arduino Uno to regulate the DC motor’s speed and rotation. A well-tuned PID system ensures smooth and constant motion, optimizing the cleaning process. Without PID control, the robot’s movement can become inconsistent, reducing its cleaning efficiency. The research focuses on designing and implementing a PID system to achieve constant speed and rotation through programming. The selected PID parameters are Kp = 0.2, Ki = 50, and Kd = 0, effectively making it a Proportional-Integral (PI) controller. Experiments were conducted under two conditions: (1) unloaded motor testing—where the motor’s rotational stability was assessed without external load, and (2) loaded robot operation—where the robot was tested while cleaning a dirty floor. Results showed that the DC motor's unloaded speed was initially 5 RPM, stabilizing at 10.62 RPM. Under load, the robot's speed started at 0.2 RPM, peaked at 6.85 RPM, and maintained an average velocity of 4.85 cm/s. The robot demonstrated consistent motion in forward, left-turn, and right-turn maneuvers, achieving 13-degree rotations in 30 seconds. The robot was able to operate for 30 minutes, maintaining a stable speed between the 3rd and 22nd minute, before declining as battery power depleted. The findings confirm that the implementation of a PI controller effectively stabilizes motor rotation and enhances floor-cleaning efficiency. Additionally, this control method can be adapted to larger-scale robots and various DC/AC motor systems.
Keywords
Full Text:
PDFReferences
V. M. Hernández-Guzmán and J. Orrante-Sakanassi, “PID control of robot manipulators actuated by BLDC motors,†Int. J. Control, vol. 94, no. 2, pp. 267–276, 2021, doi: 10.1080/00207179.2019.1590648.
W. P. Aung, “Analysis on Modeling and Simulink of DC Motor and its Driving System Used for Wheeled Mobile Robot,†World Acad. Sci. Eng. …, vol. 88704, no. December, pp. 299–306, 2007, [Online]. Available: http://urrg.eng.usm.my/eee351/PB4.pdf
M. M. Maung, M. M. Latt, and C. M. Nwe, “DC Motor Angular Position Control using PID Controller with Friction Compensation,†Int. J. Sci. Res. Publ., vol. 8, no. 11, pp. 149–155, 2018, doi: 10.29322/ijsrp.8.11.2018.p8321.
V. Mudeng, B. Hassanah, Y. T. K. Priyanto, and O. Saputra, “Design and Simulation of Two-Wheeled Balancing Mobile Robot with PID Controller,†Int. J. Sustain. Transp. Technol., vol. 3, no. 1, pp. 12–19, 2020, doi: 10.31427/ijstt.2020.3.1.3.
T. Allam, M. Raju, and S. S. Kumar, “Design of PID controller for DC Motor Speed Control Using Arduino Microcontroller,†Int. Res. J. Eng. Technol., pp. 791–794, 2016, [Online]. Available: www.irjet.net
H. Feng, W. Ma, C. Yin, and D. Cao, “Trajectory control of electro-hydraulic position servo system using improved PSO-PID controller,†Autom. Constr., vol. 127, no. December 2020, p. 103722, 2021, doi: 10.1016/j.autcon.2021.103722.
S. Pookkuttath, M. R. Elara, M. Mohan Rayguru, Z. S. Saldi, V. Sivanantham, and B. Ramalingam, “Snail: An Eco-Friendly Autonomous Steam Mopping Robot for Cleaning and Disinfection of Floors,†Mathematics, vol. 11, no. 5, pp. 1–17, 2023, doi: 10.3390/math11051086.
C. S. Gohiya, S. S. Sadistap, S. A. Akbar, and B. A. Botre, “Design and development of digital PID controller for DC motor drive system using embedded platform for mobile robot,†Proc. 2013 3rd IEEE Int. Adv. Comput. Conf. IACC 2013, pp. 52–55, 2013, doi: 10.1109/IAdCC.2013.6514193.
A. Joon and W. Kowalczyk, “Design of autonomous mobile robot for cleaning in the environment with obstacles,†Appl. Sci., vol. 11, no. 17, pp. 1–13, 2021, doi: 10.3390/app11178076.
A. A. Mahfouz, A. A. Aly, and F. A. Salem, “Mechatronics Design of a Mobile Robot System,†Int. J. Intell. Syst. Appl., vol. 5, no. 3, pp. 23–36, 2013, doi: 10.5815/ijisa.2013.03.03.
H. Khan, S. Khatoon, and P. Gaur, “Comparison of various controller design for the speed control of DC motors used in two wheeled mobile robots,†Int. J. Inf. Technol., vol. 13, no. 2, pp. 713–720, 2021, doi: 10.1007/s41870-020-00577-8.
R. Bitriá and J. PalacÃn, “Optimal PID Control of a Brushed DC Motor with an Embedded Low-Cost Magnetic Quadrature Encoder for Improved Step Overshoot and Undershoot Responses in a Mobile Robot Application,†Sensors, vol. 22, no. 20, 2022, doi: 10.3390/s22207817.
B. N. Kommula and V. R. Kota, “Direct instantaneous torque control of Brushless DC motor using firefly Algorithm based fractional order PID controller,†J. King Saud Univ. - Eng. Sci., vol. 32, no. 2, pp. 133–140, 2020, doi: 10.1016/j.jksues.2018.04.007.
S. Yatmono, M. Khairudin, H. S. Pramono, and A. Asmara, “Development of Intelligent Floor Cleaning Robot,†J. Phys. Conf. Ser., vol. 1413, no. 1, 2019, doi: 10.1088/1742-6596/1413/1/012014.
A. A. El-samahy and M. A. Shamseldin, “Brushless DC motor tracking control using self-tuning fuzzy PID control and model reference adaptive control,†Ain Shams Eng. J., vol. 9, no. 3, pp. 341–352, 2018, doi: 10.1016/j.asej.2016.02.004.
D. Somwanshi, M. Bundele, G. Kumar, and G. Parashar, “Comparison of fuzzy-PID and PID controller for speed control of DC motor using LabVIEW,†Procedia Comput. Sci., vol. 152, pp. 252–260, 2019, doi: 10.1016/j.procs.2019.05.019.
S. Ekinci, B. Hekimoğlu, and D. Izci, “Opposition based Henry gas solubility optimization as a novel algorithm for PID control of DC motor,†Eng. Sci. Technol. an Int. J., vol. 24, no. 2, pp. 331–342, 2021, doi: 10.1016/j.jestch.2020.08.011.
T. S. Tamir et al., “Comparative Study of Four Speed Controllers of Brushless DC Motors for Industrial Applications,†IFAC-PapersOnLine, vol. 53, no. 5, pp. 59–64, 2020, doi: 10.1016/j.ifacol.2021.04.124.
P. Parikh, S. Sheth, R. Vasani, and J. K. Gohil, “Implementing Fuzzy Logic Controller and PID Controller to a DC Encoder Motor - ‘a case of an Automated Guided Vehicle,’†Procedia Manuf., vol. 20, pp. 219–226, 2018, doi: 10.1016/j.promfg.2018.02.032.
Arhami, A. N. Rizki, and K. Rudi, “Structural Analysis of Mobile Robot Frame for Spinach Water Seed Planting Using Finite Element Method,†in International Conference on Experimental and Computational Mechanics in Engineering, 2021, pp. 177–186.
R. A. Nanda, T. Supriyono, R. A. R. Ma’arof, and F. M. Dewadi, “Analisis Chassis Mobil Robot Penanaman Bibit Kangkung Menggunakan Metode Elemen Hingga,†J. Tek. Mesin Mech. Xplore, vol. 2, no. 2, pp. 1–8, 2022.
R. A. Nanda, A. Arhami, and R. Kurniawan, “Perancangan Dan Pengujian Model Mobil Robot Penanam Bibit Kangkung,†Rona Tek. Pertan., vol. 13, no. 2, pp. 14–28, 2020, doi: 10.17969/rtp.v13i2.16982.
R. Parween, L. T. L. Clarissa, M. Y. Naing, N. A. F. B. M. Fuad, and M. R. Elara, “Modeling and Analysis of the Cleaning System of a Reconfigurable Tiling Robot,†IEEE Access, vol. 8, pp. 137770–137782, 2020, doi: 10.1109/ACCESS.2020.3009120.
K. Vanchinathan and N. Selvaganesan, “Adaptive fractional order PID controller tuning for brushless DC motor using Artificial Bee Colony algorithm,†Results Control Optim., vol. 4, no. February, p. 100032, 2021, doi: 10.1016/j.rico.2021.100032.
M. M. Sabir and J. A. Khan, “Optimal Design of PID Controller for the Speed Control of DC Motor by Using Metaheuristic Techniques,†Adv. Artif. Neural Syst., vol. 2014, pp. 1–8, 2014, doi: 10.1155/2014/126317.
R. Parween, M. Vega Heredia, M. M. Rayguru, R. Enjikalayil Abdulkader, and M. R. Elara, “Autonomous Self-Reconfigurable Floor Cleaning Robot,†IEEE Access, vol. 8, pp. 114433–114442, 2020, doi: 10.1109/ACCESS.2020.2999202.
P. Megantoro et al., “Autonomous and smart cleaning mobile robot system to improve the maintenance efficiency of solar photovoltaic array,†Bull. Electr. Eng. Informatics, vol. 12, no. 6, pp. 3288–3297, 2023, doi: 10.11591/eei.v12i6.5950.
R. A. Nanda, K. Karyadi, R. Roban, and F. M. Dewadi, “RPM MEASUREMENT COMPARISON USING A THERMOMETER AND LM393 MICROCONTROLLER,†Int. J. Mech. Eng. Technol. Appl., vol. 5, no. 1, pp. 51–62, 2024.
R. A. Nanda, K. Karyadi, and R. Roban, “Use of Mini Solar Panels for Battery Charging in the Mini Robot Warehouse,†Circuit J. Ilm. Pendidik. Tek. Elektro, vol. 8, no. 1, pp. 1–15, 2024.
N. R. A. Tukino, W. S. Gunawan, and T. S. Prasetyo Sri Yulianto Joko, “Analysis Transfer Data Image Processing and Face Recognition Using Camera ESP32CAM Web Browser IoT,†ICI-EL, vol. 17, no. 06, p. 717, 2023.
DOI: http://dx.doi.org/10.30811/jpl.v23i1.5543
Refbacks
- There are currently no refbacks.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Ciptaan disebarluaskan di bawah Lisensi Creative Commons Atribusi-BerbagiSerupa 4.0 Internasional .
Alamat Surat :
Politeknik Negeri LhokseumaweJl. Banda Aceh-Medan Km 280
Buketrata, Lhokseumawe, 24301, Aceh, Indonesia
























