Design and Application of PLC-based Speed Control for DC Motor Using PID with Identification System and MATLAB Tuner

(1) Dodi Saputra Mail (Universitas Ahmad Dahlan, Indonesia)
(2) * Alfian Ma'arif Mail (Universitas Ahmad Dahlan, Indonesia)
(3) Hari Maghfiroh Mail (Universitas Sebelas Maret, Indonesia)
(4) Phichitphon Chotikunnan Mail (College of Biomedical Engineering, Thailand)
(5) Safinta Nurindra Rahmadhia Mail (Universitas Ahmad Dahlan, Indonesia)
*corresponding author

Abstract


Industries use numerous drives and actuators, including DC motors. Due to the wide-ranged and adjustable speed, DC motor is widely used in many industries. However, the DC motor is prone to external disturbance and parameter changes, causing its speed to be unstable. Thus, a DC motor requires an appropriate controller design to obtain a fast and stable speed with a small steady-state error. In this study, a controller was designed based on the PID control method, with the controller gains tuned by trial-and-error and MATLAB Tuner with an identification system. The proposed controller design was implemented using PLC OMRON CP1E NA20DRA in the hardware implementation. Each tuning method was repeated five times so that the system performances could be compared and improved. Based on hardware implementation results, the trial-error method gave acceptable results but had steady-state errors. On the other hand, the use of MATLAB Tuner provided fast system responses with no steady-state error but still had oscillations with high overshoot during the transition. Therefore, the PID controller gains acquired from MATLAB Tuner must be tuned finely to get better system responses.


   

DOI

https://doi.org/10.31763/ijrcs.v3i2.775
      

Article metrics

10.31763/ijrcs.v3i2.775 Abstract views : 1526 | PDF views : 678

   

Cite

   

Full Text

Download

References


[1] B. N. Kommula and V. R. Kota, “Direct instantaneous torque control of Brushless DC motor using firefly Algorithm based fractional order PID controller,” Journal of King Saud University - Engineering Sciences, vol. 32, no. 2, pp. 133–140, Feb. 2020, https://doi.org/10.1016/j.jksues.2018.04.007.

[2] D. Potnuru, K. Alice Mary, and C. Sai Babu, “Experimental implementation of Flower Pollination Algorithm for speed controller of a BLDC motor,” Ain Shams Engineering Journal, vol. 10, no. 2, pp. 287–295, Jun. 2019, https://doi.org/10.1016/j.asej.2018.07.005.

[3] K. Vanchinathan and N. Selvaganesan, “Adaptive fractional order PID controller tuning for brushless DC motor using Artificial Bee Colony algorithm,” Results in Control and Optimization, vol. 4, p. 100032, Sep. 2021, https://doi.org/10.1016/j.rico.2021.100032.

[4] A. M. Zaki, M. El-Bardini, F. A. S. Soliman, and M. M. Sharaf, “Embedded two level direct adaptive fuzzy controller for DC motor speed control,” Ain Shams Engineering Journal, vol. 9, no. 1, pp. 65–75, Mar. 2018, https://doi.org/10.1016/j.asej.2015.10.003.

[5] B. Hekimoglu, “Optimal Tuning of Fractional Order PID Controller for DC Motor Speed Control via Chaotic Atom Search Optimization Algorithm,” IEEE Access, vol. 7, pp. 38100–38114, 2019, https://doi.org/10.1109/ACCESS.2019.2905961.

[6] 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 Engineering Journal, vol. 9, no. 3, pp. 341–352, Sep. 2018, https://doi.org/10.1016/j.asej.2016.02.004.

[7] A. Lotfy, M. Kaveh, M. R. Mosavi, and A. R. Rahmati, “An enhanced fuzzy controller based on improved genetic algorithm for speed control of DC motors,” Analog Integrated Circuits and Signal Processing, vol. 105, no. 2, pp. 141–155, Nov. 2020, https://doi.org/10.1007/s10470-020-01599-9.

[8] H. R. Patel, “Fuzzy-based metaheuristic algorithm for optimization of fuzzy controller: fault-tolerant control application,” International Journal of Intelligent Computing and Cybernetics, vol. 15, no. 4, pp. 599–624, Sep. 2022, https://doi.org/10.1108/IJICC-09-2021-0204.

[9] I. Suwarno, Y. Finayani, R. Rahim, J. Alhamid, and A. R. Al-Obaidi, “Controllability and Observability Analysis of DC Motor System and a Design of FLC-Based Speed Control Algorithm,” Journal of Robotics and Control (JRC), vol. 3, no. 2, pp. 227–235, Feb. 2022, https://doi.org/10.18196/jrc.v3i2.10741.

[10] A. L. Shuraiji and S. W. Shneen, “Fuzzy Logic Control and PID Controller for Brushless Permanent Magnetic Direct Current Motor: A Comparative Study,” Journal of Robotics and Control (JRC), vol. 3, no. 6, pp. 762–768, Dec. 2022, https://doi.org/10.18196/jrc.v3i6.15974.

[11] N. R. Setiawan, A. Ma’arif, and N. S. Widodo, “DC Motor Controller Using Full State Feedback,” Control Systems and Optimization Letters, vol. 1, no. 1, pp. 7–11, Mar. 2023, https://doi.org/10.59247/csol.v1i1.3.

[12] A. Apte, V. A. Joshi, H. Mehta, and R. Walambe, “Disturbance-Observer-Based Sensorless Control of PMSM Using Integral State Feedback Controller,” IEEE Transactions on Power Electronics, vol. 35, no. 6, pp. 6082–6090, Jun. 2020, https://doi.org/10.1109/TPEL.2019.2949921.

[13] A. Durdu and E. H. Dursun, “Sliding Mode Control for Position Tracking of Servo System with a Variable Loaded DC Motor,” Elektronika ir Elektrotechnika, vol. 25, no. 4, pp. 8–16, Aug. 2019, https://doi.org/10.5755/j01.eie.25.4.23964.

[14] A. Ma’arif and A. Çakan, “Simulation and Arduino Hardware Implementation of DC Motor Control Using Sliding Mode Controller,” Journal of Robotics and Control (JRC), vol. 2, no. 6, pp. 582–587, 2021, https://doi.org/10.18196/jrc.26140.

[15] J. Peng and R. Dubay, “Identification and adaptive neural network control of a DC motor system with dead-zone characteristics,” ISA Transactions, vol. 50, no. 4, pp. 588–598, Oct. 2011, https://doi.org/10.1016/j.isatra.2011.06.005.

[16] S. Ekinci, B. Hekimoğlu, and D. Izci, “Opposition based Henry gas solubility optimization as a novel algorithm for PID control of DC motor,” Engineering Science and Technology, an International Journal, vol. 24, no. 2, pp. 331–342, Apr. 2021, https://doi.org/10.1016/j.jestch.2020.08.011.

[17] Q. Ariyansyah and A. Ma’arif, “DC Motor Speed Control with Proportional Integral Derivative (PID) Control on the Prototype of a Mini-Submarine,” Journal of Fuzzy Systems and Control, vol. 1, no. 1, 2023, https://ejournal.ptti.web.id/index.php/jfsc/article/view/26.

[18] R. Rikwan and A. Ma’arif, “DC Motor Rotary Speed Control with Arduino UNO Based PID Control,” Control Systems and Optimization Letters, vol. 1, no. 1, pp. 17–31, Mar. 2023, https://doi.org/10.59247/csol.v1i1.6.

[19] Z. B. Abdullah, S. W. Shneen, and H. S. Dakheel, “Simulation Model of PID Controller for DC Servo Motor at Variable and Constant Speed by Using MATLAB,” Journal of Robotics and Control (JRC), vol. 4, no. 1, pp. 54–59, Feb. 2023, https://doi.org/10.18196/jrc.v4i1.15866.

[20] R. P. Borase, D. K. Maghade, S. Y. Sondkar, and S. N. Pawar, “A review of PID control, tuning methods and applications,” International Journal of Dynamics and Control, vol. 9, no. 2, pp. 818–827, Jul. 2020, https://doi.org/10.1007/s40435-020-00665-4.

[21] E. S. Ghith, F. Abdel, and A. Tolba, “Design and Optimization of PID Controller using Various Algorithms for Micro-Robotics System,” Journal of Robotics and Control (JRC), vol. 3, no. 3, pp. 244–256, May 2022, https://doi.org/10.18196/jrc.v3i3.14827.

[22] M. Filo, S. Kumar, and M. Khammash, “A hierarchy of biomolecular proportional-integral-derivative feedback controllers for robust perfect adaptation and dynamic performance,” Nature Communications, vol. 13, no. 1, pp. 1–19, Apr. 2022, https://doi.org/10.1038/s41467-022-29640-7.

[23] M. Saad, A. H. Amhedb, and M. Al Sharqawi, “Position Control of Real Time DC Motor Using LabVIEW,” Journal of Robotics and Control (JRC), vol. 2, no. 5, pp. 342–348, Sep. 2021, https://doi.org/10.18196/jrc.25104.

[24] M. S. Chehadeh and I. Boiko, “Design of rules for in-flight non-parametric tuning of PID controllers for unmanned aerial vehicles,” Journal of the Franklin Institute, vol. 356, no. 1, pp. 474–491, Jan. 2019, https://doi.org/10.1016/j.jfranklin.2018.10.015.

[25] P. Mitra, C. Dey, and R. K. Mudi, “Fuzzy rule-based set point weighting for fuzzy PID controller,” SN Applied Sciences, vol. 3, no. 6, pp. 1–34, Jun. 2021, https://doi.org/10.1007/s42452-021-04626-0.

[26] Z. Qi, Q. Shi, and H. Zhang, “Tuning of digital PID controllers using particle swarm optimization algorithm for a CAN-Based DC motor subject to stochastic delays,” IEEE Transactions on Industrial Electronics, vol. 67, no. 7, pp. 5637–5646, Jul. 2020, https://doi.org/10.1109/TIE.2019.2934030.

[27] A. Ghosh, A. K. Ray, M. Nurujjaman, and M. Jamshidi, “Voltage and frequency control in conventional and PV integrated power systems by a particle swarm optimized Ziegler–Nichols based PID controller,” SN Applied Sciences, vol. 3, no. 3, pp. 1–13, Mar. 2021, https://doi.org/10.1007/s42452-021-04327-8.

[28] V. V. Patel, “Ziegler-Nichols Tuning Method: Understanding the PID Controller,” Resonance, vol. 25, no. 10, pp. 1385–1397, Oct. 2020, https://doi.org/10.1007/s12045-020-1058-z.

[29] S. B. Joseph, E. G. Dada, A. Abidemi, D. O. Oyewola, and B. M. Khammas, “Metaheuristic algorithms for PID controller parameters tuning: review, approaches and open problems,” Heliyon, vol. 8, no. 5, p. e09399, May 2022, https://doi.org/10.1016/j.heliyon.2022.e09399.

[30] T. Hui, W. Zeng, and T. Yu, “Core power control of the ADS based on genetic algorithm tuning PID controller,” Nuclear Engineering and Design, vol. 370, p. 110835, Dec. 2020, https://doi.org/10.1016/j.nucengdes.2020.110835.

[31] H. Feng, W. Ma, C. Yin, and D. Cao, “Trajectory control of electro-hydraulic position servo system using improved PSO-PID controller,” Automation in Construction, vol. 127, p. 103722, Jul. 2021, https://doi.org/10.1016/j.autcon.2021.103722.

[32] P. Sarkhel, N. Banerjee, and N. B. Hui, “Fuzzy logic-based tuning of PID controller to control flexible manipulators,” SN Applied Sciences, vol. 2, no. 6, pp. 1–11, Jun. 2020, https://doi.org/10.1007/s42452-020-2877-y.

[33] V. K. Munagala and R. K. Jatoth, “A novel approach for controlling DC motor speed using NARXnet based FOPID controller,” Evolving Systems, vol. 14, no. 1, pp. 101–116, Feb. 2023, https://doi.org/10.1007/s12530-022-09437-1.

[34] M. A. Shamseldin, R. Barbosa, and I. Jesus, “Optimal Coronavirus Optimization Algorithm Based PID Controller for High Performance Brushless DC Motor,” Algorithms, vol. 14, no. 7, p. 193, Jun. 2021, https://doi.org/10.3390/a14070193.

[35] L. Wang, PID control system design and automatic tuning using MATLAB/Simulink. John Wiley & Sons, 2020, https://doi.org/10.1002/9781119469414.

[36] E. A. Abioye et al., “IoT-based monitoring and data-driven modelling of drip irrigation system for mustard leaf cultivation experiment,” Information Processing in Agriculture, vol. 8, no. 2, pp. 270–283, Jun. 2021, https://doi.org/10.1016/j.inpa.2020.05.004.

[37] T. Kuntoro Priyambodo, A. Majid, Z. Saad, and S. Shouran, “Validation of Quad Tail-sitter VTOL UAV Model in Fixed Wing Mode,” Journal of Robotics and Control (JRC), vol. 4, no. 2, pp. 179–191, Apr. 2023, https://doi.org/10.18196/jrc.v4i2.17253.

[38] S. S. Khairullah and A. N. Sharkawy, “Design and Implementation of a Reliable and Secure Controller for Smart Home Applications Based on PLC,” Journal of Robotics and Control (JRC), vol. 3, no. 5, pp. 614–621, Sep. 2022, https://doi.org/10.18196/jrc.v3i5.15972.

[39] A. Kherkhar, Y. Chiba, A. Tlemçani, and H. Mamur, “Thermal investigation of a thermoelectric cooler based on Arduino and PID control approach,” Case Studies in Thermal Engineering, vol. 36, p. 102249, Aug. 2022, https://doi.org/10.1016/j.csite.2022.102249.

[40] P. B. de Moura Oliveira, J. D. Hedengren, and E. J. Solteiro Pires, “Swarm-Based Design of Proportional Integral and Derivative Controllers Using a Compromise Cost Function: An Arduino Temperature Laboratory Case Study,” Algorithms, vol. 13, no. 12, p. 315, Nov. 2020, https://doi.org/10.3390/a13120315.

[41] J. Możaryn, J. Petryszyn, and S. Ozana, “PLC based fractional-order PID temperature control in pipeline: design procedure and experimental evaluation,” Meccanica, vol. 56, no. 4, pp. 855–871, Apr. 2021, https://doi.org/10.1007/s11012-020-01215-0.

[42] J. Mellado and F. Núñez, “Design of an IoT-PLC: A containerized programmable logical controller for the industry 4.0,” Journal of Industrial Information Integration, vol. 25, p. 100250, Jan. 2022, https://doi.org/10.1016/j.jii.2021.100250.

[43] Z. Wang, Y. Zhang, Y. Chen, H. Liu, B. Wang, and C. Wang, “A Survey on Programmable Logic Controller Vulnerabilities, Attacks, Detections, and Forensics,” Processes, vol. 11, no. 3, p. 918, Mar. 2023, https://doi.org/10.3390/pr11030918.

[44] F. A. Aziz and R. D. Puriyanto, “Rancang Bangun Mesin Pengecat Dinding Otomatis Berbasis PLC CP1E-NA20DR-A,” Buletin Ilmiah Sarjana Teknik Elektro, vol. 1, no. 3, pp. 118–130, 2019, https://doi.org/10.12928/biste.v1i3.1050.

[45] A. Rajagukguk, W. Arafanaldy, A. Anhar, and N. Nurhalim, “Pitch Blade Control Prototype Design for Vertical Axis Wind Power Plant,” Jurnal Ilmiah Teknik Elektro Komputer dan Informatika, vol. 8, no. 1, pp. 157–166, May 2022, https://doi.org/10.26555/jiteki.v8i1.23662.

[46] P. Sutyasadi, “Control Improvement of Low-Cost Cast Aluminium Robotic Arm Using Arduino Based Computed Torque Control,” Jurnal Ilmiah Teknik Elektro Komputer dan Informatika, vol. 8, no. 4, pp. 650–659, Dec. 2022, https://doi.org/10.26555/jiteki.v8i4.24646.

[47] M. F. Al Andzar and R. D. Puriyanto, “PID Control for Temperature and Motor Speed Based on PLC,” Signal and Image Processing Letters, vol. 1, no. 1, pp. 7–13, Mar. 2019, https://doi.org/10.31763/simple.v1i1.150.

[48] A. Setiawan and A. Ma’arif, “Stirring System Design for Automatic Coffee Maker Using OMRON PLC and PID Control,” International Journal of Robotics and Control Systems, vol. 1, no. 3, pp. 390–401, Oct. 2021, https://doi.org/10.31763/ijrcs.v1i3.457.

[49] D. Prasetiyo and W. Sapto Aji, “Irrigation Sluice Control System Using Algorithm Based DC Motor PID And Omron PLC,” Control Systems and Optimization Letters, vol. 1, no. 1, pp. 19–26, Mar. 2023, https://doi.org/10.59247/csol.v1i1.5.

[50] G. R. Wicaksono and R. D. Puriyanto, “Programmable Logic Controller (PLC) Based Paint Viscosity Control System,” Buletin Ilmiah Sarjana Teknik Elektro, vol. 3, no. 1, pp. 1–9, 2021, https://doi.org/10.12928/biste.v3i1.1109.


Refbacks

  • There are currently no refbacks.


Copyright (c) 2023 Dodi Saputra, 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