Tuning of PID Controller Parameters with Genetic Algorithm Method on DC Motor

(1) Eka Widya Suseno Mail (Universitas Ahmad Dahlan, Indonesia)
(2) * Alfian Ma'arif Mail (Universitas Ahmad Dahlan, Indonesia)
*corresponding author


Proportional Integral Derivative (PID) controllers are used in general to control a system, for example a DC motor system. The difficulty of using the controller is parameter tuning, because the tuning parameters still use the trial and error method to find the PID parameter constants, namely Proportional Gain (KP), Integral Gain (KI) and Derivative Gain (KD). In this case, the genetic algorithm method is used which can give better results in each iteration. Genetic algorithms are one of the smart methods inspired by the process of natural selection, the process that causes biological evolution, this concept is applied to tuning PID parameters. This research uses the Matlab simulation method and applies the simulation results to the DC motor hardware using the Arduino Uno. The genetic algorithm method gives a system that has a better steady time and a smaller maximum spike than the Trial and Error method. The test process produced the two best data with an overshoot value = 2, settling time = 13.5 and rise time of 2.7872 and the PID parameter value for mutation of 1 was KP = 3.7500; KI = 1.3184 and KD = 0.2051. Then the value of the best PID parameter on Crossover is 0.4, which is KP = 4.2090; KI = 1.2012 and KD = 0.2539 with an overshoot value = 2, settling time = 18 and rise time = 2.6462.


PID controller; Genetic Algorithm (GA); DC Motor; Arduino; Tuning; Matlab




Article metrics

10.31763/ijrcs.v1i1.249 Abstract views : 10286 | PDF views : 4800




Full Text



[1] D. Somwanshi, M. Bundele, G. Kumar, and G. Parashar, “Comparison of fuzzy-PID and PID controller for speed control of DC motor using LabVIEW,” in Procedia Computer Science, 2019, vol. 152, pp. 252–260. https://doi.org/10.1016/j.procs.2019.05.019

[2] M. A. Taut, G. Chindris, and D. Piticǎ, “PID Algorithm used for DC Motor Control,” in 2018 IEEE 24th International Symposium for Design and Technology in Electronic Packaging, SIITME 2018 - Proceedings, 2019, pp. 365–372. https://doi.org/10.1109/SIITME.2018.8599230

[3] E. Apriaskar, N. Azis Salim, and D. Prastiyanto, “Performance Evaluation of Balancing Bicopter using P, PI, and PID Controller,” Jurnal Teknik Elektro, vol. 11, no. 2, pp. 44–49, Dec. 2019. https://doi.org/10.15294/jte.v11i2.23032

[4] A. Y. Al-Maliki and K. Iqbal, “FLC-based PID controller tuning for sensorless speed control of DC motor,” in Proceedings of the IEEE International Conference on Industrial Technology, 2018, vol. 2018-Febru, pp. 169–174. https://doi.org/10.1109/ICIT.2018.8352171

[5] E. Flores-Morán, W. Yánez-Pazmiño, and J. Barzola-Monteses, “Genetic algorithm and fuzzy self-tuning PID for DC motor position controllers,” in Proceedings of the 2018 19th International Carpathian Control Conference, ICCC 2018, 2018, pp. 162–168. https://doi.org/10.1109/CarpathianCC.2018.8399621

[6] J. Agarwal, G. Parmar, and R. Gupta, “Comparative Analysis of PID Controller for Speed Control of DC motor with Intelligent Optimization Algorithms,” in Proceedings - IEEE 2018 International Conference on Advances in Computing, Communication Control and Networking, ICACCCN 2018, 2018, pp. 273–277. https://doi.org/10.1109/ICACCCN.2018.8748475

[7] S. Ekinci, D. Izci, and B. Hekimoglu, “PID Speed Control of DC Motor Using Harris Hawks Optimization Algorithm,” in 2nd International Conference on Electrical, Communication and Computer Engineering, ICECCE 2020, 2020. https://doi.org/10.1109/ICECCE49384.2020.9179308

[8] A. Ahmed, R. Gupta, and G. Parmar, “GWO/PID Approach for Optimal Control of DC Motor,” in 2018 5th International Conference on Signal Processing and Integrated Networks, SPIN 2018, 2018, pp. 181–186. https://doi.org/10.1109/SPIN.2018.8474105

[9] D. Maddi, A. Sheta, D. Davineni, and H. Al-Hiary, “Optimization of PID Controller Gain Using Evolutionary Algorithm and Swarm Intelligence,” in 2019 10th International Conference on Information and Communication Systems, ICICS 2019, 2019, pp. 199–204. https://doi.org/10.1109/IACS.2019.8809144

[10] L. Angel, J. Viola, and M. Vega, “Hardware in the loop experimental validation of PID controllers tuned by genetic algorithms,” in 4th IEEE Colombian Conference on Automatic Control: Automatic Control as Key Support of Industrial Productivity, CCAC 2019 - Proceedings, 2019. https://doi.org/10.1109/CCAC.2019.8921229

[11] K. Hakiim, A. Dharmawan, and F. Faizah, “Optimasi Kendali PID menggunakan Algoritma Genetika untuk Penerbangan Quadrotor,” IJEIS (Indonesian Journal of Electronics and Instrumentation Systems), vol. 7, no. 2, p. 173, Oct. 2017. https://doi.org/10.22146/ijeis.23937

[12] D. K. Meena and S. Chahar, “Speed control of DC servo motor using genetic algorithm,” in IEEE International Conference on Information, Communication, Instrumentation and Control, ICICIC 2017, 2018, vol. 2018-Janua, pp. 1–7. https://doi.org/10.1109/ICOMICON.2017.8279122

[13] A. Ma’arif, H. Nabila, Iswanto, and O. Wahyunggoro, “Application of Intelligent Search Algorithms in Proportional-Integral-Derivative Control of Direct-Current Motor System,” in Journal of Physics: Conference Series, 2019, vol. 1373, no. 1, pp. 1–10. https://doi.org/10.1088/1742-6596/1373/1/012039


  • There are currently no refbacks.

Copyright (c) 2021 Eka Widya Suseno, Alfian Ma’arif

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.


About the JournalJournal PoliciesAuthor Information

International Journal of Robotics and Control Systems
e-ISSN: 2775-2658
Website: https://pubs2.ascee.org/index.php/IJRCS
Email: ijrcs@ascee.org
Organized by: Association for Scientific Computing Electronics and Engineering (ASCEE)Peneliti Teknologi Teknik IndonesiaDepartment of Electrical Engineering, Universitas Ahmad Dahlan and Kuliah Teknik Elektro
Published by: Association for Scientific Computing Electronics and Engineering (ASCEE)
Office: Jalan Janti, Karangjambe 130B, Banguntapan, Bantul, Daerah Istimewa Yogyakarta, Indonesia