Development of DC Motor Speed Control Using PID Based on Arduino and Matlab For Laboratory Trainer

Main Article Content

Heru Supriyono
Fedrik Fajar Alanro
Agus Supardi

Keywords

DC motor speed, DC motor control, PID, Microcontroller, Arduino

Abstract

DC motors are widely used as propulsions, including in electric bicycles. The problem faced by students in the DC motor control laboratory working using software simulation is that they do not have practical learning experience using digital instruments. This article aims to develop a DC motor speed control that can be used to learn practical Proportional Integral Derivative (PID) control in the laboratory. The DC motor speed control was developed using a combination of Arduino UNO microcontroller and Matlab software. The PID method was used because it is still broadly studied and applied in industries. The test results showed that the developed trainer can work well with PID variable values that can be entered via the keypad, and DC motor transient responses can be displayed in Matlab. From the experimental results, it was found that the optimal PID variable values were Kp=0.04, Ki=0.05, and Kd=0.004, where the controller produced a low overshoot value, i.e., 0.73% of its set point and a settling time of 10.66 seconds. The test results of using the developed trainer in the Fundamental of Control Engineering laboratory work showed that the developed trainer gave students practical learning experience in designing PID control for DC motor speed by using digital equipment, i.e., microcontroller and actual DC motor as well as analyzing its corresponding transient response in Matlab software environment

References

[1] H. Supriyono, P. A. N. Rochman, and M. O. Tokhi, O. (2021). “IoT technology involving wheeled line follower robot for restaurant services automation,” ELKOMIKA, vol. 9, no. 1, pp. 100-113, 2021.
[2] T. Sands, “Control of DC motors to guide unmanned underwater vehicles,” Applied Science 2021, vol. 11, pp. 1-13, 2021.
[3] A. A. Mahadi, B. Santoso, Ubaidillah, and B. W. Lenggana, “Redesign of water-diesel emulsion fuel mixer,” Applied Research and Smart Technology, vol. 3, no. 1, pp. 18-28, 2021.
[4] K. H. Chao, L. Y. Chang, and C. Y. Hung, “Design and control of brushless DC motor drives for refrigerated cabinets,” Energies 2022, vol. 15, pp. 1-28, 2022.
[5] M. Engin, “Controller design for parallel mechanism solar tracker,” Machines 2023, vol. 11, pp. 1-17, 2023.
[6] P. Zur, “Combination of a DC motor controller and telemetry system to optimize energy consumption,” Sensors 2023, vol. 23, pp. 1-12, 2023.
[7] L. S. Mezher, “Position control for dynamic DC motor with robust PID controller using Matlab,” International Journal of Advanced Trends in Computer Science and Engineering, vol. 8, no. 3, pp. 936-942, 2019.
[8] S. Glowinski, S. Pecolt, A. Błazejewski, and B. Młynski, “Control of brushless direct-current motors using bioelectric EMG signals,” Sensors 2022, vol. 22, pp. 1-13, 2022.
[9] R. Tapia-Olvera, F. Beltran-Carbajal, O. Aguilar-Mejia, and A. Valderrabano-Gonzalez, “An adaptive speed control approach for DC shunt motors,” Energies 2016, vol. 9, pp. 1-16, 2016.
[10] U. Alejandro-Sanjines, A. Maisincho-Jivaja, V. Asanza, L. L. Lorente-Leyva, and D. H. Peluffo-Ordóñez, “Adaptive PI controller based on a reinforcement learning algorithm for speed control of a DC motor,” Biomimetics 2023, vol. 8, pp. 1-26, 2023.
[11] Md. A. Ahmad, K. Kishor, and P. Rai, “Speed control of a DC motor using controllers,” Automation, Control and Intelligent Systems, vol. 2, no. 6, pp. 1-9, 2014.
[12] M. Aviles, J. Rodríguez-Reséndiz, J. Pérez-Ospina, and O. Lara-Mendoza, “A comprehensive methodology for the development of an open source experimental platform for control courses,” Technologies 2023, vol. 11, pp. 1-25, 2023.
[13] 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 2022, vol. 22, 7817, 1-24, 2022.
[14] H. Velasco-Muñoz, J. E. Candelo-Becerra, F. E. Hoyos, and A. Rincón, “Speed regulation of a permanent magnet DC motor with sliding mode control based on washout filter,” Symmetry 2022, vol. 14, pp. 1-25, 2022.
[15] A. Ma’arif, N. R. Setiawan, and E. S. Rahayu, “Embedded control system of DC motor using microcontroller arduino and PID algorithm,” IT Journal Research and Development (ITJRD), vol. 6, no. 1, pp. 30-42, 2021.
[16] J. P. T. Lemus, G. C. V´elez, and N. J. C. Rodr´ıguez, “PID controller design for DC motor,” Contemporary Engineering Sciences, vol. 11, no. 9, pp. 4913 – 4920, 2018.
[17] A. Abdulameer, M. Sulaiman, M. S. M. Aras, and D. Saleem, “Tuning methods of PID controller for DC motor speed control,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 3, no. 2, pp. 343-349, 2016.
[18] J. A. Niembro-Ceceña, R. A. Gómez-Loenzo, J. Rodríguez-Reséndiz, O. Rodríguez-Abreo, and A. Odry, “Auto-regression model-based off-line PID controller tuning: an adaptive strategy for DC motor control,” Micromachines 2022, vol. 13, pp. 1-21, 2022.
[19] P. Kofinas, and A. I. Dounis, “Fuzzy Q-learning agent for online tuning of PID controller for DC motor speed control,” Algorithms 2018, vol. 11, 1pp. 1-13, 2018.
[20] N. Sulistyawati, Fahmizal, and I. Nathasya, “DC motor speed control with buck converter uses full state feedback-pole placement,” ELKOMIIKA, vol. 9, no. 2, pp. 415-429, 2021.
[21] Munadi, M. A. Akbar, T. Naniwa, and Y. Taniai, “Model reference adaptive control for DC motor based on simulink,” 2016 6th International Annual Engineering Seminar (InAES), Yogyakarta, Indonesia, pp. 1-6, 2016.
[22] K. Soza´nski, “Low cost PID controller for student digital control laboratory based on arduino or STM32 modules,” Electronics 2023, vol. 12, pp. 1-23, 2023.
[23] J. Syllignakis, P. Panagiotakopoulos, and E. Karapidakis, “Automatic speed controller of a DC motor using arduino for laboratory applications,” Engineering and Industry Series Volume Power Systems, Energy Markets and Renewable Energy Sources in South-Eastern Europe 2016, pp. 351-364, 2016.
[24] A. Latif, A. Z. Arfianto, H. A. Widodo, R. Rahim, and E. T. Helmy, “Motor DC PID system regulator for mini conveyor drive based-on Matlab,” Journal of Robotics and Control (JRC), vol. 1, no. 6, pp. 185-190, 2020
[25] S. R. Rex, and M. S. R. Praba, “Speed control of DC motor with PWM using microcontroller in hardware in loop,” International Journal of Engineering & Technology, International Journal of Engineering & Technology, vol. 7, no. 3, pp. 116-119, 2018.
[26] M. Saad, A. H. Ahmed, and M. Al Sharqawi, “Real time DC motor position control using PID controller in LabVIEW,” Journal of Robotics and Control (JRC), vol. 2, no. 5, pp. 342-348, 2021.
[27] O. O. Adejumo, and W. A. Azeez, “Development of a microcontroller based DC motor Speed Control System,” World Journal of Engineering and Technology 2019, vol. 7, pp. 634-639, 2019.
[28] N. Shaharudin, M. Z. Hasan, and S. M. Noor, “Direct Current (DC) motor speed and direction controller,” Journal of Physics: Conference Series, 2129 (2021) 012035, pp. 1-6, 2021.
[29] R. N. Rohmah, F. N. Alwi, and Jatmiko, “Equipment for monitoring and controlling of household electricity consumption in a IoT-based smart house,” Emitor, vol. 22, no. 01, pp. 34-38, 2022.
[30] Supriyono and Marjuki, “Ultrasonic sensor parking assistant with arduino uno,” International Journal of Advanced Research in Engineering and Technology (IJARET), vol. 11, no. 5, pp. 26-33, 2020.
[31] A. Divakar, J. Joseph, J. T. George, N. N. Prabhu, and A. Nabi, “A study on DC motor operations and speed control using microcontroller,” International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering, vol. 5, no. 4, pp. 2460-2464, 2016.