Implementing PID Control on Arduino Uno for Air Temperature Optimization

Authors

  • Afindra Hafiedz Akbar Universitas Ahmad Dahlan
  • Alfian Ma’arif Universitas Ahmad Dahlan
  • Chokri Rekik University of Sfax
  • Ahmed J Abougarair University of Tripoli
  • Atinkut Molla Mekonnen Injibara University

DOI:

https://doi.org/10.12928/biste.v6i1.9725

Keywords:

Air Temperature, PID Control, Control System, Heater, Arduino

Abstract

This research investigates the precise regulation of liquid filling in tanks, specifically focusing on water storage systems. It employs the Proportional-Integral-Derivative (PID) control method in conjunction with an HC-SR04 ultrasonic sensor and an Arduino Uno microcontroller. Given the paramount importance of water as a resource, accurate management of its storage is of utmost significance. The PID control method, known for its rapid responsiveness, minimal overshoot, and robust stability, effectively facilitates this task. Integrating the ultrasonic sensor and microcontroller further augments the precision of water level regulation. The article expounds upon the foundational principles of the PID control method and elucidates its application in the context of liquid tank filling. It offers a comprehensive insight into the hardware configuration, encompassing pivotal components such as the Arduino Uno microcontroller, HC-SR04 ultrasonic sensor, and the L298 driver responsible for water pump control. The experimental approach is meticulous, presenting results from tests involving the Proportional Controller, Proportional Integral (PI) Controller, and Proportional Integral Derivative (PID) Controller. These tests rigorously analyze the impact of varying Proportional Gain (Kp), Integral Gain (Ki), and Derivative Gain (Kd) parameters on crucial performance metrics such as response time, overshoot, and steady-state error. The findings underscore the critical importance of an optimal parameter configuration, emphasizing the delicate equilibrium between response speed, precision, and error minimization. This research significantly advances PID control implementation in liquid tank filling, offering insights that pave the way for developing more efficient liquid management systems across various sectors. The identified optimal parameter configuration is Kp = 5.0, Ki = 0.3, and Kd = 0.2.

References

T. Susanto, M. Bayu Setiawan, A. Jayadi, F. Rossi, A. Hamdhi and J. Persada Sembiring, "Application of Unmanned Aircraft PID Control System for Roll, Pitch and Yaw Stability on Fixed Wings," 2021 International Conference on Computer Science, Information Technology, and Electrical Engineering (ICOMITEE), pp. 186-190, 2021, https://doi.org/10.1109/ICOMITEE53461.2021.9650314.

J. Kim, S. Kim, C. Ju and H. I. Son, "Unmanned Aerial Vehicles in Agriculture: A Review of Perspective of Platform, Control, and Applications," in IEEE Access, vol. 7, pp. 105100-105115, 2019, doi: https://doi.org/10.1109/ACCESS.2019.2932119.

P. K. Chittoor, B. Chokkalingam and L. Mihet-Popa, "A Review on UAV Wireless Charging: Fundamentals, Applications, Charging Techniques and Standards," in IEEE Access, vol. 9, pp. 69235-69266, 2021, doi: https://doi.org/10.1109/ACCESS.2021.3077041.

S. Wilson et al., "The Robotarium: Globally Impactful Opportunities, Challenges, and Lessons Learned in Remote-Access, Distributed Control of Multirobot Systems," in IEEE Control Systems Magazine, vol. 40, no. 1, pp. 26-44, 2020, https://doi.org/10.1109/MCS.2019.2949973.

A. Stefek, T. V. Pham, V. Krivanek and K. L. Pham, "Energy Comparison of Controllers Used for a Differential Drive Wheeled Mobile Robot," in IEEE Access, vol. 8, pp. 170915-170927, 2020, doi: https://doi.org/10.1109/ACCESS.2020.3023345.

Z. Liu, A. Mohammadzadeh, H. Turabieh, M. Mafarja, S. S. Band and A. Mosavi, "A New Online Learned Interval Type-3 Fuzzy Control System for Solar Energy Management Systems," in IEEE Access, vol. 9, pp. 10498-10508, 2021, https://doi.org/10.1109/ACCESS.2021.3049301.

M. Danita, B. Mathew, N. Shereen, N. Sharon and J. J. Paul, "IoT Based Automated Greenhouse Monitoring System," 2018 Second International Conference on Intelligent Computing and Control Systems (ICICCS), pp. 1933-1937, 2018, https://doi.org/10.1109/ICCONS.2018.8662911.

H. Shareef, M. S. Ahmed, A. Mohamed and E. Al Hassan, "Review on Home Energy Management System Considering Demand Responses, Smart Technologies, and Intelligent Controllers," in IEEE Access, vol. 6, pp. 24498-24509, 2018, https://doi.org/10.1109/ACCESS.2018.2831917.

H. Zhang, D. Wu and B. Boulet, "A Review of Recent Advances on Reinforcement Learning for Smart Home Energy Management," 2020 IEEE Electric Power and Energy Conference (EPEC), 2020, pp. 1-6, doi: https://doi.org/10.1109/EPEC48502.2020.9320042.

M. Chen, D. Zhou and F. Blaabjerg, "Enhanced Transient Angle Stability Control of Grid-Forming Converter Based on Virtual Synchronous Generator," in IEEE Transactions on Industrial Electronics, vol. 69, no. 9, pp. 9133-9144, 2022, https://doi.org/10.1109/TIE.2021.3114723.

S. Badnava et al., "Platoon Transitional Maneuver Control System: A Review," in IEEE Access, vol. 9, pp. 88327-88347, 2021, doi: https://doi.org/10.1109/ACCESS.2021.3089615.

S. K. Sunori, A. S. Bhakuni, S. Maurya, G. S. Jethi and P. K. Juneja, "Improving the Performance of Control System for Headbox Consistency of Paper Mill Using Simulated Annealing," 2020 Fourth International Conference on I-SMAC (IoT in Social, Mobile, Analytics and Cloud) (I-SMAC), pp. 1111-1116, 2020, https://doi.org/10.1109/I-SMAC49090.2020.9243567.

T. Inovan, A. I. Cahyadi and O. Wahyunggoro, "Implementation of Adaptive-PID Based Temperature Trajectory Tracking Control to Improve Repeatability in Coffee Roasting," 2023 IEEE International Conference on Industry 4.0, Artificial Intelligence, and Communications Technology (IAICT), pp. 162-167, 2023, https://doi.org/10.1109/IAICT59002.2023.10205885.

T. Jia, K. Yang, Z. Peng, L. Tang, H. Duan and Y. Luo, "Review on the Change Trend, Attribution Analysis, Retrieval, Simulation, and Prediction of Lake Surface Water Temperature," in IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, vol. 15, pp. 6324-6355, 2022, https://doi.org/10.1109/JSTARS.2022.3188788.

J. Moreno-Valenzuela, R. Pérez-Alcocer, M. Guerrero-Medina and A. Dzul, "Nonlinear PID-Type Controller for Quadrotor Trajectory Tracking," in IEEE/ASME Transactions on Mechatronics, vol. 23, no. 5, pp. 2436-2447, 2018, https://doi.org/10.1109/TMECH.2018.2855161.

M. Mahmud, S. M. A. Motakabber, A. H. M. Zahirul Alam and A. N. Nordin, "Adaptive PID Controller Using for Speed Control of the BLDC Motor," 2020 IEEE International Conference on Semiconductor Electronics (ICSE), pp. 168-171, 2020, https://doi.org/10.1109/ICSE49846.2020.9166883.

B. Verma and P. K. Padhy, "Robust Fine Tuning of Optimal PID Controller With Guaranteed Robustness," in IEEE Transactions on Industrial Electronics, vol. 67, no. 6, pp. 4911-4920, 2020, https://doi.org/10.1109/TIE.2019.2924603.

K. Nouman, Z. Asim and K. Qasim, "Comprehensive Study on Performance of PID Controller and its Applications," 2018 2nd IEEE Advanced Information Management,Communicates,Electronic and Automation Control Conference (IMCEC), pp. 1574-1579, 2018, https://doi.org/10.1109/IMCEC.2018.8469267.

H. Geng, Z. Zheng, T. Zou, B. Chu and A. Chandra, "Fast Repetitive Control With Harmonic Correction Loops for Shunt Active Power Filter Applied in Weak Grid," in IEEE Transactions on Industry Applications, vol. 55, no. 3, pp. 3198-3206, 2019, https://doi.org/10.1109/TIA.2019.2895570.

A. Altayeva, B. Omarov and Y. I. Cho, "Towards Smart City Platform Intelligence: PI Decoupling Math Model for Temperature and Humidity Control," 2018 IEEE International Conference on Big Data and Smart Computing (BigComp), pp. 693-696, 2018, https://doi.org/10.1109/BigComp.2018.00128.

E. Merzlikina, H. Van Va and G. Farafonov, "Automatic Control System with an Autotuning Module and a Predictive PID-Algorithm for Thermal Processes," 2021 International Conference on Industrial Engineering, Applications and Manufacturing (ICIEAM), pp. 525-529, 2021, https://doi.org/10.1109/ICIEAM51226.2021.9446467.

J. P. Mandap, D. Sze, G. N. Reyes, S. Matthew Dumlao, R. Reyes and W. Y. Danny Chung, "Aquaponics pH Level, Temperature, and Dissolved Oxygen Monitoring and Control System Using Raspberry Pi as Network Backbone," TENCON 2018 - 2018 IEEE Region 10 Conference, pp. 1381-1386, 2018, https://doi.org/10.1109/TENCON.2018.8650469.

A. Punse, S. Nangrani and R. Jain, "A Novel Application of Multipoint Temperature Control Using PID," 2019 3rd International Conference on Computing Methodologies and Communication (ICCMC), pp. 1191-1196, 2019, https://doi.org/10.1109/ICCMC.2019.8819722.

N. E. -T. Tochukwu, A. K. Tetteh and G. K. Agordzo, "Investigation on the Temperature Stabilization of the Laser Diode Based on PID Control," 2022 IEEE Delhi Section Conference (DELCON), pp. 1-8, 2022, https://doi.org/10.1109/DELCON54057.2022.9752826.

E. Alexis, L. Cardelli and A. Papachristodoulou, "On the Design of a PID Bio-Controller With Set Point Weighting and Filtered Derivative Action," in IEEE Control Systems Letters, vol. 6, pp. 3134-3139, 2022, https://doi.org/10.1109/LCSYS.2022.3182911.

A. A. Cahya and R. D. Puriyanto, “The Design of Rice Milling and Screening Systems Uses the DC Motor PID Method,” Control Systems and Optimization Letters, vol. 1, no. 1, pp. 1–6, 2023, https://doi.org/10.59247/csol.v1i1.2.

O. Arrieta, D. Castillo, R. Vilanova, and J. D. Rojas, “Model Reference based tuning for fractional-order 2DoF PI controllers with a robustness consideration,” IFAC-PapersOnLine, vol. 52, no. 1, pp. 207-212, 2019, https://doi.org/10.1016/j.ifacol.2019.06.063.

Y. Pan, X. Li and H. Yu, "Efficient PID Tracking Control of Robotic Manipulators Driven by Compliant Actuators," in IEEE Transactions on Control Systems Technology, vol. 27, no. 2, pp. 915-922, 2019, https://doi.org/10.1109/TCST.2017.2783339.

J. Li and W. Li, "On-Line PID Parameters Optimization Control for Wind Power Generation System Based on Genetic Algorithm," in IEEE Access, vol. 8, pp. 137094-137100, 2020, https://doi.org/10.1109/ACCESS.2020.3009240.

S. Wang and F. He, "Control technology and strategy of tension control system," 2018 Chinese Control And Decision Conference (CCDC), pp. 2620-2625, 2018, https://doi.org/10.1109/CCDC.2018.8407568.

Downloads

Published

2024-02-09

How to Cite

[1]
A. H. Akbar, A. Ma’arif, C. Rekik, A. J. Abougarair, and A. M. Mekonnen, “Implementing PID Control on Arduino Uno for Air Temperature Optimization”, Buletin Ilmiah Sarjana Teknik Elektro, vol. 6, no. 1, pp. 1–13, Feb. 2024.

Issue

Section

Artikel