Research On Control Algorithm of Water-Tank Water Level Control System
Research On Control Algorithm of Water-Tank Water Level Control System
Abstract
To eliminate control error of water level, this paper researches the control algorithm
of water-tank in water level control system, and uses the fuzzy controller to improve the
control performance, two-dimensional fuzzy controller is designed taking advantaging of
Fuzzy Logic Controller, set up the structure mode of the water-tank water level control
system according to the characteristics of the water-tank water level control system, give
the simulation result of the performance of the fuzzy controller, acquiring waveform
graphs of real water level and fixed level, and compared with PID controller. The
simulation results show that the fuzzy controller has better control performance than the
PID controller.
1. Introduction
The traditional water level monitoring in water-tank is realized by a float or simpler
manual monitoring, but it is imprecise and difficult to control for traditional monitoring
methods. To the tank-water device of providing water for the users and fire, the traditional
control methods make water overflow or shortage, in some emergency cases, which will
cause great distress for human life[1-2]. In order to solve these questions, it is necessary
to design a controller which can automatically control water level and keep the position of
the water level unchanged.
Methods of controlling water-tank water level have traditional control method and
intelligent control method [3]. The traditional control methods are established on the basis
of the accurate mathematical model of the controlled objects, then building the
control structure model through the mathematical formula of system influence factors.
However, in practice and mixed use, there are many interference factors in the water-tank
control system, such as: the fluctuation of water level, leaking, unstable water flow speed
and so on [4-5]. These interference factors can’t be described by the mathematical
formula; the traditional control methods have many flaws to some extent, so it is
necessary to introduce intelligent control to improve the control performance of the
system [6]. The fuzzy Control is an intelligent control, and also a closed-loop feedback
control, which don’t need to build model of the controlled objects. The fuzzy controller is
easy to come true and build, with good stability and strong adaptability. The PID control
and the fuzzy control are applied to the water level control system, in addition, simulating
and verifying the performance of the fuzzy controller and the conventional PID controller.
r e
+ A/D Controller
-
de/dt
Vavle
Water level
detection Water outlet
sensor
Given
value
*
et blur
obfuscatio defuzzificatio
n n
de/dt
Electric
Liquid level Controlled regulating
detection sensor object value
3.1. Determining the Fuzzy Subset and Fuzzing the Input and Output
The output of the liquid level sensor is a continuous variable, however, the input of the
fuzzy controller is a discrete variable based on the fuzzy logic, so it is necessary to fuzzy
the input data, the basic range of error and output variables of water-tank water level
system are set up to be -1 to 1, the quantity fields are -3 to 3 and quantitative factor is 3;
The basic range of the error rate of change are -0.1 to 0.1,the quantity are -3 to 3 and
quantitative factor is 0.03.
When the system error is smaller, it is better to choose the narrower and thinner
membership function, which has a higher resolution and can improve the sensitivity of the
system. When the system error is larger, it is better to choose the wider and fatter
membership function, which has a lower resolution and can improve the stability of the
system[9]. This paper chooses membership function of Triangle and Gauss function
through the analysis of control system, in order to improve the sensitivity of the system
under the conditions of stably working. The fuzzy language of the system is set up to be
seven levels: "NB" , "NM" , "NS" , "ZE", "PS" , "PM","PB". Among them the NB and PB
are Gauss function curve. The membership functions of error E , error rate of change and
the output variables U are shown in Figure 3.
NB
NM NS 1 ZE PS PM PB
0.5
-3 -2 -1 0 1 2 3
The ranges of input and output variables are discrete, and the numbers of discrete
variables are limited, the membership function of the fuzzy set can be described by the
numerical method. Assignment table of the membership function of the variables are
shown in Table 1.
Value Element -3 -2 -1 0 1 2 3
NB 1 0.2 0 0 0 0 0
NM 0 0.65 0.65 0 0 0 0
NS 0 0 0.65 0.65 0 0 0
ZE 0 0 0 0.65 0.65 0 0
PS 0 0 0 0 0.65 0.65 0
PM 0 0 0 0 0 0.65 0.65
PB 0 0 0 0 0 0.2 1
overshoot of the system. When the error rate of change is positive, which shows that the
error has a tendency of decreasing, so the control variable is smaller; when the error rate
of change is negative, which shows that the error has a tendency of increasing, at this time
the control variable is larger [10]. So the following table is summarized according to the
control rules, as shown in Table 2.
R1 R1 U 1
T
3.4. Defuzzification
The output variable gained by querying the fuzzy control rule table is fuzzy-valued, so
it is necessary to convert the fuzzy value into the exact value in order to control the valve
by the fuzzy solution method. The method of the fuzzy solution chooses the gravity
method of the area, which can make the output signal smooth when the input signal has
small changes. The calculation formula is shown in (6).
n
(U ) U
i 1
i i
U= n
, (6)
(U )
i 1
i
In (6), i=1,2,...7. Ui is the first i language variable of the output variables, U = (Ui ) is
membership function value of the output Ui from the first i fuzzy rule.
Because the system has the error, when error is -2,error rate of change is -0.725,the
output is 0; when the error is -2, the error rate of change is1.23, then the output is-1.6,
when the error is -2, the error rate of change is -1.5, then the output is 0.303
2.0
1.5
H/m
0.5
Input
signal
0
0 10 20 30 output signal
t/s
2.0
1.5
0.5
Input
signal
0
Output signal
0 10 20 30 40
t/s
6. Conclusions
The paper research the performance of water-tank liquid level control system on the
basis of methods of the fuzzy control and the traditional PID control, the fuzzy controller
is designed, the input of which are the error and error rate of change of the water-tank
water level system, and the fuzzy rules are built according to human experience, then
fuzzy solution take advantage of the center of gravity method, finally, it can achieve the
adaptive control of water level in order to keep the water level unchanged. The structural
model of fuzzy control system of the water-tank water level is built and simulated under
the condition of the two controllers. The simulation results show that the performance of
the fuzzy control has better control than the conventional PID controller in the water tank
level control system.
References
[1] J.-L. Song,Y. Yang and K.-K. Xu, “Active Disturbance Rejection Control of the Stabilizing Circuits
for Inertial Platform”, Journal of System Simulation, vol. 14, no. 391, (2002).
[2] X.R. Song and H. Chen, “Research on Adaptive AUV Tracking Control System Based on Least Squares
Support Vector Machine”, Computer Modeling and New Technologies, vol. 18, no. 33, (2014).
[3] H. S. Yan and D. Xu, “An approach to estimating product design time based on fuzzy v-support vector
machine”, IEEE Transactions on Neural Networks, vol. 18, no. 72, (2009).
[4] C. Sung Moon, H. O. Sang and L. Soo-Young, “Support Vector Machines with Binary Tree
Architecture for Multi-Class Classification”, Neural Information Processing Letters and Reviews, vol. 2,
no. 47, (2004).
[5] H. Li, J. Gao and Z. Wang, “Target location fire precision test technology by using
intersectingphotoelectric detection target”, Optik, vol. 125, no. 1325, (2014).
[6] G. Chen, X. Wang, S. Fan, H. Tang, L. Lin and A. Wang, “ESD-Induced Noise to Low Noise Amplifier
Circuits in BiCMOS Original Research Article”, Tsinghua Science & Technology, vol. 15, no. 259,
(2010).
[7] S.K. Nayar, K. Ikeuchi and T. Kanade, “Surface reflection:Physical and Geometrical Perspectives”,
IEEE Transactions on Pattern. Analysis and Machine Intelligence, vol. 13, no. 611, (1991).
[8] F. Pastor and E. Loute, “Limit analysis decomposition and finite element mixed method Original
Research Article”, Journal of Computational and Applied Mathematics, vol. 234, no. 2213, (2010).
[9] H. Li and Z. Lei, “Study and analysis on a new optical detection design method for photoelectric
detection target”, Sensor review, vol. 33, no. 315, (2013).
[10] C. Wang and J. Wei, “Photoelectric imaging system in the analysis of atmospheric transmission
characteristics calculation problems”, Journal of Beijing institute of technology, vol. 23, no. 617, (2003).
[11] C. Lei,S. Zhang and X. Guan, “Extended target optical properties of the theoretical analysis and the
research”, Laser and particle beam, vol. 25, no. 1671, (2013).
[12] J.-Y.Zhang,M. Ji and H.-L. Wang, “Modeling and simulation of airborne stabilized sighting system”,
Journal of Applied Optics, vol. 27, no. 491, (2006).
Authors