Software-Based Digital PID Control for a Single-Tank Water Level System

Authors

  • Quoc-Toan Nguyen Ho Chi Minh City University of Technology and Engineering (HCM-UTE)
  • Hai-Duong Nguyen Ho Chi Minh City University of Technology and Engineering (HCM-UTE)
  • Anh-Tuan Nguyen Ho Chi Minh City University of Technology and Engineering (HCM-UTE)
  • Tan-Khang Nguyen Ho Chi Minh City University of Technology and Engineering (HCM-UTE)
  • Quoc-Hung Nguyen Ho Chi Minh City University of Technology and Engineering (HCM-UTE)
  • Phuc-Khanh Dang Ho Chi Minh City University of Technology and Engineering (HCM-UTE)
  • Truong-Viet Nguyen Ho Chi Minh City University of Technology and Engineering (HCM-UTE)
  • Quoc-Bao Nguyen
  • Xuan-Cuong Le Ho Chi Minh City University of Technology and Engineering (HCM-UTE)
  • Van-Hai Nguyen
  • Huynh-The-Hung Nguyen Ho Chi Minh City University of Technology and Engineering (HCM-UTE)
  • Bao-Trung Mai Ho Chi Minh City University of Technology and Engineering (HCM-UTE)
  • Phong Luu Nguyen Ho Chi Minh City University of Technology and Engineering (HCM-UTE)
  • That-Ngoc-Hai Ton Ho Chi Minh City University of Technology and Engineering (HCM-UTE)
  • Tan-Loc Pham
  • Minh-Tan Nguyen Ho Chi Minh City University of Technology and Engineering (HCM-UTE)

DOI:

https://doi.org/10.59247/jfsc.v4i2.374

Keywords:

PID Control, Discrete PID, Digital PID, Single Tank System

Abstract

The single tank system is one of the fundamental systems in the field of automatic control and is a suitable choice for implementing system control using a PID controller. Nowadays, the single tank system is widely used in laboratories for conducting experiments related to PID control. Due to its low cost, easily available components, simple construction, and ease of observation, the single tank system is an appropriate model for research in automatic control systems. The primary control method applied to the single tank system is the digital PID control method, also known as discrete PID control, the PID parameters (Kp, Kd, Ki) are selected by the trial-and-error method. Therefore, this paper investigates the variation of transient responses when changing the parameters of the PID controller in order to evaluate the model during laboratory implementation. The main objective of this paper is to design a discrete PID controller through simulation and to experimentally investigate its performance on a real single tank system. Experimental results show that the system operates stably, and the pump speed can be adjusted by changing the parameters of the PID controller. The overshoot starts at over 0.2%, the steady-state error is about 0.02 cm, and the settling time is approximately 4.5 to 5 seconds.

References

I. R. Imaduddin, “Design of Water Level Control in Tank Based on Fuzzy Logic,” Buletin Ilmiah Sarjana Teknik Elektro, vol. 2, no. 3, p. 145, 2021, https://www.doi.org/10.12928/biste.v2i3.3307.

M. Saad, M. Alshara, and K. Mustafa, “Fuzzy PID Controller Design for a Coupled Tank Liquid Level Control System,” WSEAS Transactions on Systems and Control, vol. 18, pp. 401–408, 2023, https://www.doi.org/10.37394/23203.2023.18.42.

Z. Qu, W. Younis, X. Liu, A. Khalique Junejo, S. Z. Almutairi, and P. Wang, “Optimized PID Controller for Load Frequency Control in Multi-Source and Dual-Area Power Systems Using PSO and GA Algorithms,” IEEE Access, vol. 12, pp. 186658–186678, 2024, https://www.doi.org/10.1109/ACCESS.2024.3445165.

S. Das, I. Pan, K. Halder, S. Das, and A. Gupta, “LQR based improved discrete PID controller design via optimum selection of weighting matrices using fractional order integral performance index,” Applied Mathematical Modelling, vol. 37, no. 6, pp. 4253–4268, 2013, https://www.doi.org/10.1016/j.apm.2012.09.022.

B. Yesil and S. Sahin, “Real-Time Implementation of a Microcontroller-Based Coupled-Tank Water Level Control System with Feedback Linearization and Fuzzy Logic Controller Algorithms,” Sensors, vol. 25, no. 5, p. 1279, 2025, https://www.doi.org/10.3390/s25051279.

J. Bhookya, M. Vijaya Kumar, J. Ravi Kumar, and A. Seshagiri Rao, “Implementation of PID controller for liquid level system using mGWO and integration of IoT application,” Journal of Industrial Information Integration, vol. 28, no. 100368, 2022, https://www.doi.org/10.1016/j.jii.2022.100368.

A. K. Ghazali, N. A. A. Aziz, and W. Z. W. Ismail, “Hybrid Sliding Mode Control with Gain Scheduling Proportional Integral Derivative Controller for Water Tank System,” International Journal of Integrated Engineering, vol. 16, no. 3, pp. 107–117, 2024, https://www.doi.org/10.30880/ijie.2024.16.03.011.

M. Singh and L. Singh, “Comparison of PI and PID Controllers for UPQC Integrated Hybrid Renewable Energy System,” Journal of Engineering and Technological Sciences, vol. 58, no. 4, pp. 501–513, Jul. 2026, https://www.doi.org/10.5614/j.eng.technol.sci.2026.58.4.3.

Z. Asghar, M. Waqas, M. Asif Gondal, and W. A. Khan, “Electro-osmotically driven generalized Newtonian blood flow in a divergent micro-channel: Electro-osmotically driven generalized Newtonian blood flow,” Alexandria Engineering Journal, vol. 61, no. 6, pp. 4519–4528, 2022, https://www.doi.org/10.1016/j.aej.2021.10.012.

C. E. Kumar, C. Bhavani, S. R. H. Priya, and S. Jayalakshmi, “IoT based smart water tank using android applications,” i-manager’s Journal on Instrumentation and Control Engineering, vol. 9, no. 1, p. 32, 2021, https://www.doi.org/10.26634/jic.9.1.18444.

M. O. Tokhi and M. A. Hossain, “Design of PID Controller for Liquid Level System Using System Identification,” International Journal of Control, Automation and Systems, vol. 19, no. 3, pp. 1205–1215, 2021, https://www.doi.org/10.1007/s12555-019-0655-9.

P. Menaka and B. M. Shrinithi, “Water Level Monitoring System using Internet of Things,” International Journal of Engineering and Management Research, vol. 11, no. 1, pp. 54–57, Feb. 2021, https://www.doi.org/10.31033/ijemr.11.1.8.

M. Efendi and F. Candra, “Design and Implementation of Arduino-Based PID Control System for Water Level Regulation Using Ultrasonic Sensors,” The Journal of Ocean, Mechanical and Aerospace -science and engineering- (JOMAse), vol. 69, no. 1, pp. 57–64, 2025, https://www.doi.org/10.36842/jomase.v69i1.527.

K. J. Åström and T. Hägglund, “Revisiting the Ziegler-Nichols step response method for PID control,” Journal of Process Control, vol. 14, no. 6, pp. 635–650, 2004, https://www.doi.org/10.1016/j.jprocont.2004.01.002.

H. Cheng, M. Nikus, and S. L. Jämsä-Jounela, “Fault diagnosis of the paper machine short circulation process using novel dynamic causal digraph reasoning,” Journal of Process Control, vol. 18, no. 7–8, pp. 676–691, 2008, https://www.doi.org/10.1016/j.jprocont.2007.12.003.

Block diagram of a single-tank system

Downloads

Published

2026-07-18

How to Cite

[1]
Q.-T. Nguyen, “Software-Based Digital PID Control for a Single-Tank Water Level System”, J Fuzzy Syst Control, vol. 4, no. 2, pp. 187–192, Jul. 2026.

Most read articles by the same author(s)