Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ABSTRACT
This project deals with the PID controller design for controlling water level control mechanism
in the tank. The system had to be capable of read a certain value, the value that we speak is the
high of the water. Therefore, the system should fill the corresponding tank with water, of course,
until the high that was chosen. The controller so designed was used to maintain a present level of
water in a process tank. A model of the process was created in MATLAB program and
SIMULINK in order to determine PID controller parameters for the desired system performance
specifications. A PID control uses three essentials values to be able to control with precision,
they are usually called: P, I and D. These values can be found by applying manual tuning and
PID software tuning procedures. So at the end, we get value for each constant (PID). The
collected data was then analyzed and comparisons were made between the actual and the desired
performance of the system.
ACRONYMS
PID-Proportional Integral Derivative.
PV-Pressure Volume.
LC-Level Controller.
LT-Level Transmitter.
LIST OF FIGURES
Figure 1:PID Loop Control ............................................................................................................. 5
Figure 2: Model of water level in a tank ......................................................................................... 7
Figure 3:Block diagram of water level ........................................................................................... 9
Figure 4: valve .............................................................................................................................. 10
Figure 5:Open loop of given transfer function ............................................................................. 11
Figure 6:MATLAB Simulink proportional control mode with feedback ..................................... 12
Figure 7: MATLAB simulink PID control mode with feedback controller ................................. 12
TABLE OF CONTENTS
ACKNOWLEDGEMENT .............................................................Error! Bookmark not defined.
ABSTRACT..................................................................................................................................... I
ACRONYMS .................................................................................................................................. II
1. INTRODUCTION ...................................................................................................................... 1
2. THEORY .................................................................................................................................... 3
3.2.5 Plant.................................................................................................................................. 10
3.2.6 Feedback........................................................................................................................... 10
Reference ...................................................................................................................................... 17
Appendix ....................................................................................................................................... 18
CHAPTER ONE
1. INTRODUCTION
1.1 Overview
This project is based on a PID control of the level of the water in a tank.A plant of controlling
water level will implement PID controller in it’s system. The PID controller will be able to
control the inlet and the smooth transition of water into the tank to satisfy the set parameters by
the handler (human). The program is from the PID controller itself. PID controller is
programmed and the tunings of other manual settings on the whole system uses human interface.
Each steps of designs and verifications process is documented here. The user has the power to
choose a certain level of water and the system has to be capable of adjusting itself in order to
maintain that certain level(height).A process is an operation that uses resources to transform
inputsintooutputs.
higher costs. Accurate liquid level is vital in the process industries where inventories, batching
and process efficiency are critical measurements.
In the physical world, control engineers are frequently required to monitor or control the level of
water in tank. So, recent years has shown the difficulties of controlling the process of contents
reaching the desired / specified level point. Smooth transition and graph responses are now a
goal of every high cost modern plants. Human senses and body control are in large scale to be
able to control for example the opening of the valve into the tank. In this project, the PID
controller is proposed and built into actual plant with model of water level to be monitored. It
introduces a better solution in accurate level measurements in bringing water to the specific
given level point (set-point). Not only that, the other crucial figure of smooth transition of level
control can be controlled by the PID controller.
1.4 Objectives
The project is called water level control using PID controller. The PID controller is used and
applied into the system to measure and control the water level in a tank manually.
i. To maintain height or level of the water in tank by using the PID controller.
iii. To gain knowledge of the principles of operation of the various sensors to be used in the
control system.
CHAPTER TWO
2. THEORY
In system with feedback control there is a big disadvantage which is the probability of the system
get unstable, for that the correct controller must be chosen, and it must be perfect for the system
that is being monitored.
2.2.1 P Controller
This is the most simple and easy to implement controller and is mostly used in first order
processes with single energy storage to stabilize an unstable process. The main usage of this
controller is to decrease the steady state error and time response of the system. As the
proportional gain factor Kp increases, the steady state error and time response of the system
decreases.
The control action for a P controller is proportional to the error and this can be expressed as:
U(s)=KpE(s).
2.2.2 PI Controller
PI controllers are mainly used to eliminate the steady state error resulting from P controller.
However, in terms of the speed of the response and overall stability of the system, it has a
negative impact. This controller is mostly used in areas where speed of the system is not an
issue. Since PI controller has no ability to predict the future errors of the system it can decrease
the rise time. If applied, any amount of PI to increase point of maximum overshoot.
t
u(t ) = Kp Ki e( )d
e (t )
0
Ki
U (s) = KpE(s) E ( s)
S
PID tuning is a difficult problem ,even though there are only three paramaters and in principle is
simple to describe ,because it must satisfy complex criteria within the limitations of PID
control.there are accordingly various methods for loop tuning, some of them:
Simulink is software for modeling, simulating, and analyzing dynamic systems. Simulink
enables you to pose a question about a system, model it, and see what happens. With Simulink,
you can easily build models from scratch, or modify existing models to meet your needs.
supports linear and nonlinear systems, modeled in continuous time, sampled time, or a hybrid of
the two. Systems can also be multirate having different parts that are sampled or updated at
different rates.
CHAPTER THREE
3. MODEL DIAGRAM
8l Q
P = out
4
R'Q -----------(1)
out
Q out
=Rate of fluid flowing out of pump.
8l
R’= 4
----------- (2)
R'
h=R Q -------(4) Where R=
out g
The rate flow of storage liquid in the tank is the difference between the inflow and out flow rate
of the liquid. Hence,C is cros-sectional area of the tank,then
Cdh h R Qin h
Q Q Q Rearrange and gives:
dt in out in R R
CRdh
h R Q --------- (5)
dt in
H ( s) 1
G (s)
E (s) S 1
3.2.3 Valve
A valve is a device that regulates the flow of materials (gases, fluidized solids, slurries, or
liquids) by opening, closing, or partially obstructing various passageways.This valve top pressure
moves the valve stem up and down, changing the flow ratethrough the valve . If the controller is
designed properly, the flow rate changes tobring the tank height close to the desired setpoint.
Figure 4 valve
3.2.4 Comparator
A comparator is a device that used to compare the reference input/setpoint with desired output.
3.2.5 Plant
The physical parts of the system that is supposed to be controlled.
3.2.6 Feedback
Feedback is the devices that measure the variable we want to control.
3.2.7 SetPoint
The desired value of the measured process output.
3.2.8 Error Signal
Error is the difference between measured variable and the setpoint and can be either positive or
negative.
CHAPTER FOUR
4.1 Process
We have used two methods of tuning PID controller .Those are :-Manual tuning method and
PID tuning software method.This two methods are expressed under the chapter two.
1.SET Kp : Starting with Kp=0, KI=0 and KD=0, increase KP until the output start overshooting
and ringing significantly.
PID tuning software method.There is some prepared software that they can easily calculate the
gain parameter .Any kind of theoretical methods can be selected in some these methods.
MATLAB simulink PID controller tuning.
1
G(s)=
s 1
Assume 100 ,since when time constant of this transfer function is high the plant more
sensitive to the error.
4.2 Result
tr=0.111481sec,ess=0.0009.
tr=0.111281sec,ess=0.0002.
tr=0.111281sec,ess=0.0002.
CHAPTER FIVE
5.1 CONCLUSION
As we were able to see depending on the tuning method the results may change a parameter , that
doesn’t mean that any of them are wrong, just different. And to different values we have
different results, and by that we have to analyze which response is the better for the system that
is in use. It’s easy to see that a PID control can be applied to many feedback systems, when the
need to constantly control a system variable appear the PID control it’s a good solution. Quite
easy to use and create. It only requires the need of tuning, but even that isn’t so hard to do. There
are quite good information about it, so should not be hard to do it.
Talking about the MATLAB program, it is also very simply to use. Besides the help that any
programmer can get by just asking a matlab Professional, the actual program has a help menu
that gives good and important information about every block of data, with that any programming
get’s quite easy to complete.
5.2 RECOMMENDATION
This project is providing good performance of the system. So by using the PID controller we can
design, proposed and built into actual plant with model of water level to be monitored.
Reference
[1] Åström, K. J. e Hägglund, T. ,PID Controllers: Theory, Design and Tuning, 2nd, 1995,pp 59.
[2] Gene F. Franklin, J. Davied Powell, Abbas Emami-Naeini, “Feedback Control of Dynamic
Systems”, 6th edition, 2010, pp 19 – 27.
[3] Adian O’Dwyer , “Handbook of a PI and PID Controller Tuning Rules”, 3rd edition, 2009.
Appendix
Clear all;
Close all;
n=input('enter the value of n:');
d=input('enter the value of d:');
kp=input('enter the value of kp:');
ki=input('enter the value of ki:');
kd=input('enter the value of kd:');
H=input('enter the value of H:');
for i=1:n+1;
a(i)=input('');
end
disp('denominator');
for j=1:d+1;
b(j)=input('');
end
T=tf(a,b)
G=feedback(T,H)
Gc=tf([kd kp ki],[1 0])
C=feedback(Gc*T,H)
step(C)
Appendix 2