Water Level Controlling System Using Pid Controller
Water Level Controlling System Using Pid Controller
11223-11227
© Research India Publications. http://www.ripublication.com
11223
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 11, Number 23 (2016) pp. 11223-11227
© Research India Publications. http://www.ripublication.com
11224
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 11, Number 23 (2016) pp. 11223-11227
© Research India Publications. http://www.ripublication.com
OVERALL SYSTEM TRANSFER FUNCTION response of the DC motor combined with the STH block. The
As shown in Fig. 2, the overall system response is the combined performance without controller is very poor in terms of
response of the forward path and the feedback loop. Here the settling time with very high steady state error and a final value
gain for the feedback loop is assumed unity and in the forward 50 % of the required reference target. It shows the
path we have the PID controller, the motor pump and the speed requirement of a controller to obtain the desired water or
to height (STH) transformation block. The model for the motor liquid level. The proportional controller reduces the rise time,
pump and the PID controller is as discussed in section III. Let improves the steady state error to some extent but a ringing
the impulse response of the STH system is, g(t) that represents and an over shoot starts to appear. A proportional controller
the relation between h(t) and (t). We can find an expression with Kp=10 looks better in terms of reducing the steady state
for G(s) the Laplace transform of g(t) by combining (1), (2) and error compared with Kp=5. For Kp=10, the settling time is
(3). Combining (1), (2) and (3), (t) is related to h(t) as: about 2.95 s, an overshoot of 47%, and steady state value of
0.83. The high overshoot, settling time and steady state error
dh necessitate the requirement of integral and derivative part to
R f (t ) K f h K f R f A (11) be added in the controller as not all of the design requirements
dt can be met with a simple proportional controller.
G( s) (13)
( s) K f sK f R f A
0.6
0.4
The overall transfer function of the forward path, F(s), can be 0.2
F ( s) C ( s) Pm ( s)G( s) (14)
e( s) Figure 4. Step response with and without proportional
controller
The overall transfer function, Gsys(s), of the overall system
including the unity feedback loop is given as: Fig. 5. shows the system response with the proportional-
h( s ) F ( s) integral (PI) controller with Kp=Ki=10. The addition of the
Gsys ( s) (15) integral part to the proportional part eliminates the steady state
h0 ( s) 1 F ( s)
error getting a final value near the required level compared
with the Fig. 4. However, there is still a high overshoot and
the settling time is also getting large.
RESULTS AND DISCUSSIONS
MATLAB simulations were done to study the performance of
Step Response
the system and its capability to maintain and control a desired 1.5
System: sys_clpi
1.4
water level in the tank. Since the PID controller is integrated Peak amplitude: 1.49
Overshoot (%): 49.2
Kp=10, Ki=10
results for different values of Kp, Ki and Kd parameters of the System: sys_clpi
Settling time (seconds): 4.64
System: sys_clpi
Final value: 1
0.8
STH:-Kf =1 0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6
Time (seconds)
Furthermore, for a unit step input reference water level for the Figure 5. Step response with proportional-integral (PI)
overall system, our design criteria are to achieve an output controller
with a settling time less than 2 seconds an overshoot less than
5% and a steady-state error less than 1%. The other variety of controller is the proportional-derivative
(PD) controller. Fig. 6 shows the system step response with
Fig. 4. shows the system response with and without
the PD controller with Kp=10 and Kd=5. It reduces the over
proportional controller. As seen in the Figure, the results
without the PID controller (red color) is simply the step shoot, improves the rise time and settling time but with a
11225
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 11, Number 23 (2016) pp. 11223-11227
© Research India Publications. http://www.ripublication.com
significant amount of steady state error. The final value is still 1.4
Step Response
System: sys_clpid
1.2 Peak amplitude: 1.03
Overshoot (%): 3.24
At time (seconds): 0.48 System: sys_clpid
Final value: 1
1
Step Response System: sys_clpid
1.4 Settling time (seconds): 1.39
0.8
Amplitude
Kp=10, Kd=5
1.2 System: sys_clpd
Peak amplitude: 1
Overshoot (%): 20.5
At time (seconds): 0.23 0.6
1
System: sys_clpd
Final value: 0.832 0.4
0.8
Amplitude
System: sys_clpd
Settling time (seconds): 0.537
0.2
0.6
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6
0.4
Time (seconds)
controller with Kp=12, Ki=15 and Kd=3. In this case the initial 1
0.8
settling time less than 2 seconds and steady state value of one,
which is the required water level specifications. In this case, 0.6
the rise time is also reduced. Therefore, with the PID 0.4
controller, the desired design target is achieved. Furthermore,
as shown in Fig. 8, the overshoot can be reduced at the 0.2
Step Response
1.4 Figure 9. Step response showing the uncontrolled system, the
1.2
System: sys_clpid
Peak amplitude: 1.04
proportional, the PI, PD and the PID controllers in one plot,
Overshoot (%): 4.45
At time (seconds): 0.33 System: sys_clpid
Final value: 1
1
System: sys_clpid
Settling time (seconds): 0.81
Table I shows a comparison of the different controllers in
0.8
terms of rise time, settling time, overshoot and steady state
Amplitude
11226
International Journal of Applied Engineering Research ISSN 0973-4562 Volume 11, Number 23 (2016) pp. 11223-11227
© Research India Publications. http://www.ripublication.com
Type of Performance parameters [1] Beza Negash Getu, Hussain A. Attia, “Automatic Control
controller of Agricultural Pumps Based on Soil Moisture Sensing,”
Rise Settlin Oversho Steady Proceedings of the IEEE AFRICON 2015 Conference,
time g time ot (%) state 14-17 September 2015, pp. 667-671.
(s) (s) value [2] Beza N. Getu, Nasser A. Hamad, Hussain A. Attia,
‘Remote Controlling of an Agricultural Pump System
Proportional 0.228 2.95 47.2 0.832
Based on the Dual Tone Multi-Frequency (DTMF)
(P), Kp=10
Technique,” Journal of Engineering Science and
PI, Kp=10, 0.237 4.64 49.2 1.0 Technology (JESTECH), Vol. 10, No.10 (2015), pp. 1261
Ki=10 – 1274.
PD, Kp=10, 0.1 0.537 20.5 0.832 [3] Bequette, B. W., Process Control: Modellingv Design
Kd=5 and Simulation, Prentice Hall, 2003.
PID, Kp=12, 0.17 0.81 4.45 1.0 [4] Carl Knopse, Guest Editor, “PID Control,“ IEEE Control
Ki=15, Kd=3 System Magazine, February 2006.
PID, Kp=9, 0.233 1.39 3.24 1.0 [5] S. Bennett, “Development of the PID controller,” IEEE
Ki=15, Kd=2 Control System. Magazine, Vol. 13, 1993, pp. 58–65.
[6] Khan M.R., Khan A. A. Umer G. “Speed Control of DC
Motor under Varying Load Using PID Controller,”
International Journal of Engineering (IJE), Vol. 9 , Issue
CONCLUSIONS 3, 2015, pp. 38-48.
This paper presents a PID controlled water pump system in [7] Sen P.C. ,Principles of Electrical Machines & Power
order to maintain a desired water level in a storage tank that is Electronics, John Wiley & Sons,1996.
used in private, chemical, industrial or other related Elke Laubwald, Coupled Tank Systems. Available at
applications. The speed of the motor and hence the rate of http://www.control-systems-
water flow into the tank is controlled by adjusting the principles.co.uk/whitepapers/coupled-tanks-systems.pdf.
parameters of the PID controller. A step reference water level [8] Arthur G.O. Mutambara, Design and Analysis of Control
is set and the step response of the overall system is investigated Systems, CRC Press, 1999.
in MATLAB environment in order to minimize the overshoot, [9] Oppenheim A. V. , Willsky A. S. , Hamid S., Signals and
improve the settling time (improved transient response) and the Systems, 2nd Ed., Prentice-Hall. , 1997.
steady state error of the system. Various forms of the [10] Ang, K.H. and Chong, G.C.Y. and Li, Y., “PID control
controller, P, PI, PD, and PID are studied and the PID system analysis, design, and technology,“ IEEE
controller achieves super performance. It is shown that Transactions on Control Systems Technology, 13(4),
suitable values for Kp, Ki, Kd parameters can be found for the 2005, pp. 559-576.
PID controller by tuning to maintain the desired water level for
the target design specifications. The system is essential in
those places where maintaining water or any other liquid level
is critical for achieving the required productivity. Such
controllers are powerful in controlling any similar processes
that essentially require close monitoring (tight control) of the
process variables or parameters that have significant impact on
quality and amount of production.
ACKNOWELEDGMENT
The author appreciates the support and the incentive provided
by the American University of Ras Al Khaimah (AURAK)
through the initiation and continuous encouragement of the
School of Graduate Studies and Research to be active and stay
involved in research.
11227