Open Ended 1
Open Ended 1
Open Ended 1
Submitted By Submitted To
2|Page
TITLE: LEVEL CONTROL PROCESS MODULE
1.1. Objective:
➢ To verify the effect of the gain of the loop on the dynamic response of the PID
controller
➢ To compare PID controller response by changing integral and derivative gains
1.3. Theory:
3|Page
1.3.2. Linear Variable Differential Transformer (LVDT):
The linear variable differential transformer is a type of electrical transformer used for
measuring linear displacement (position). It is a common type of electromechanical transducer
that can convert the rectilinear motion of an object to which it is coupled mechanically into a
corresponding electrical signal.
It works on the principle of mutual induction LVDT is based on a mutual induction in which a
magnetic core, which moves through the bobbin, provides a path for magnetic flux linkage
between coils. The position of the magnetic core control the mutual inductance between the
primary coils and two secondary coils.
✓ Float Switches:
These are simple devices with a buoyant float connected to a mechanical switch. When the
float reaches a certain level, it triggers the switch.
✓ Capacitive Probes:
These sensors use the change in capacitance as a liquid or solid material contacts a probe.
✓ Pressure Sensors:
Pressure transducers or sensors measure the pressure at the bottom of the tank and convert it
into a level reading.
✓ Ultrasonic Sensors:
Emit and receive ultrasonic waves to measure the time taken for the signal to bounce back from
the liquid surface.
✓ Radar Sensors:
Use microwave frequencies and can provide accurate measurements even in challenging
conditions.
✓ Optical Sensors:
These sensors use light beams to detect liquid levels and are often used in clear liquids.
4|Page
1.3.5. What is a Controller?
In control systems, a controller is a mechanism that seeks to minimize the difference between
the actual value of a system (i.e. the process variable) and the desired value of the system (i.e.
the set point). Controllers are a fundamental part of control engineering and used in all complex
control systems.
Before we introduce you to various controllers in detail, it is essential to know the uses of
controllers in the theory of control systems. The important uses of the controllers include:
1. Controllers improve the steady-state accuracy by decreasing the steady state error.
2. As the steady-state accuracy improves, the stability also improves.
3. Controllers also help in reducing the unwanted offsets produced by the system.
4. Controllers can control the maximum overshoot of the system.
5. Controllers can help in reducing the noise signals produced by the system.
6. Controllers can help to speed up the slow response of an overdamped system.
Different varieties of these controllers are codified within industrial automotive devices such
as programmable logic controllers and SCADA systems. The various types of controllers are
discussed in detail below.
1.3.6. Types of Controllers:
Now in the continuous controller theory, there are three basic modes on which the whole
control action takes place, which are:
1. Proportional controllers.
2. Integral controllers.
3. Derivative controllers.
We use the combination of these modes to control our system such that the process variable is
equal to the set point (or as close as we can get it). These three types of controllers can be
combined into new controllers:
As we know in proportional controller output is directly proportional to the error signal, writing
this mathematically we have,
It is recommended that Kp should be kept greater than unity. If the value of Kp is greater than
unity (>1), then it will amplify the error signal and thus the amplified error signal can be
detected easily.
1.3.6.1.1. Advantages:
✓ Simple Design: Proportional controllers have a simple design, making them easy to
implement and understand. This simplicity is advantageous in applications where
complexity needs to be minimized.
✓ Stability: Proportional controllers provide stability to control systems by continuously
adjusting the control output based on the error signal. This helps in maintaining the
system close to the desired set point without oscillations.
✓ Quick Response: Proportional controllers respond quickly to changes in the error
signal. As soon as a deviation from the setpoint is detected, the controller takes
immediate action to bring the system back to the desired state.
✓ Linear Response: The response of a proportional controller is linear, which means the
output is directly proportional to the error signal. This linearity simplifies the analysis
and tuning of the controller.
6|Page
✓ Cost-Effective: Proportional controllers are often cost-effective and can provide
satisfactory performance in many applications without the need for more complex
control strategies.
1.3.6.1.2. Disadvantages:
As the name suggests in integral controllers the output (also called the actuating signal) is
directly proportional to the integral of the error signal. Now let us analyze integral controller
mathematically.
As we know in an integral controller output is directly proportional to the integration of the
error signal, writing this mathematically we have,
7|Page
Where Ki is an integral constant also known as controller gain. The integral controller is also
known as reset controller.
1.3.6.2.1. Advantages:
The advantages of Integral controller are given as:
1.3.6.2.2. Disadvantages:
The disadvantages of Integral controller are given as:
✓ Integral Windup: One of the primary challenges with integral control is the potential
for integral windup. Integral windup occurs when the integral term accumulates
excessively during periods of large error, such as during startup or when the system is
subjected to a disturbance. This can lead to overshooting, prolonged settling times, or
instability when the error eventually decreases.
✓ Slow Response to Transients: Integral control tends to have a slow response to sudden
changes or transients in the system. While it is effective in eliminating steady-state
error, it may not respond quickly to rapid changes, which can affect the system's
transient response.
✓ Potential for Instability in Unstable Systems: In inherently unstable systems, integral
control may exacerbate instability issues. If the system is already prone to oscillations
or instability, the continuous integration of error by the integral controller may lead to
further instability.
✓ Difficulty in Tuning: Tuning integral controllers can be challenging. Finding the right
balance between the proportional, integral, and derivative terms (in the case of PID
controllers) to achieve optimal performance requires careful consideration and
sometimes trial-and-error tuning.
8|Page
✓ Overshooting in Response to Large Set point Changes: When there are significant
changes in the set point, integral control can cause the system to overshoot before
gradually settling down. This overshooting can be undesirable in applications where
rapid and precise control is necessary.
We never use derivative controllers alone. It should be used in combinations with other modes
of controllers because of its few disadvantages which are written below:
1.3.6.3.1. Advantages:
The advantages of derivative controller are given as:
9|Page
1.3.6.3.2. Disadvantages:
10 | P a g e
1.4. Circuit Schematic:
1.5. Procedure:
✓ Connect, through leads, bush No. 11 of the WATER PUMP DRIVER to bush No. 11and
bush No. 12 to bush No. 12.
✓ Connect the bush of SET POINT 1 to bush No. 10 of the WATER PUMP DRIVER.
✓ Press the main switch (ON).
✓ Turn OFF the main switch.
✓ Bring again the water level in the tank to a value of 6.5cm.
✓ Remove the lead from bush No. 10 of the WATER PUMP DRIVER and from the bush
of SET POINT 1 and put the knob to 0V.
✓ Connect bush No. 1 of the Level Sensor to bush No. 1 of the relevant interface and bush
No. 2 to bush No. 2.
✓ Connect the bush of SET POINT 2 to bush No. 6 of the PID controller and bush No.
5of the level interface to bush No. 5 of the PID controller.
✓ Insert one terminal of the digital voltmeter, set in dc, in the bush of SET POINT 2 and
the other one in the earth bush.
✓ Turn ON the main switch.
✓ Regulate the voltage on SET POINT 2 at 3V.
11 | P a g e
✓ Move the terminal of the digital voltmeter from the bush of SET POINT 2 to bush No.5
of the PID controller: the voltage value must be equal to 3V; if the voltage is different,
then check if the water level in the tank is 6.5cm, otherwise calibrate the sensor
following the procedures shown in Worksheet No. 2.
✓ Move the terminal of the digital voltmeter to bush X1 of the PID controller: the voltage
value must be equal to the difference between the voltage applied to bush No.6 and that
applied to bush No. 5, which is 0V.
✓ Connect the bush of SET POINT 1 to bush EXT of the PID controller.
✓ Insert the terminal of the digital voltmeter in bush X1.
✓ Regulate the voltage on SET POINT 1 to read on the digital voltmeter a voltage of 2V:
this voltage represents the width of the reference step which corresponds to an increase
of about 3cm of the water level.
✓ Momentarily remove the lead from bush EXT of the PID controller.
✓ Regulate the PROPORTIONAL knob at 25%.
✓ Connect bush No. 7 of the PID controller to bush No. 7 and bush No. 10 to bush No.10
of the WATER PUMP DRIVER.
✓ Connect bush No. 8 and 9 of the PID controller to bush No.8 and 9 respectively.
✓ Regulate the INTEGRAL and DERIVATE knob at 25%.
✓ Move the terminal of the digital voltmeter to bush No. 5 of the PID controller: write
down in Table the voltage value (3V).
✓ Insert back the lead in bush EXT of the PID controller and at the same time start the
chronometer.
✓ Write down in Table the voltage value read every 15 seconds until the transitory is
completed.
✓ Momentarily remove the lead from bush EXT of the PID controller.
✓ Remove the lead from bush No. 10.
✓ Bring back the water level in the tank to 6.5cm.
✓ Move the terminal of the digital voltmeter to bush No. 5 of the PID controller: write
down in Table the voltage value.
✓ Regulate the DERIVATIVE knob at 50%, 75%, 100% leaving the PROPORTIONAL
and INTEGRAL knob at 25% and repeat the procedure.
✓ Repeat the procedure by regulate the Integral knob at 25%, 50%, 75%, 100% leaving
the PROPORTIONAL and DERIVATIVE knobs at 25% and repeat the procedure.
✓ Draw the curves of the closed loop dynamic response for all the values listed in the
table.
✓ Analyse and compare the results.
1.6. Precautions:
• Personal safety:
Wear laboratory coats and closed shoes in laboratory premises
• Equipment safety:
Connect the connection leads as in manual.
12 | P a g e
1.7 Observations & Calculations:
1.7.1 PID Controller (Varying Derivative Controller)
Kp = Ki = 25%
kd
Time 25% 50% 75% 100% Set Point
s mV
0 0 5 5.1 4.98 5.1
15 2.87 4.97 5.1 4.96 5.1
30 3.82 4.99 5.08 5.02 5.1
45 4.19 5 5.1 5.01 5.1
60 4.42 5 5.1 5.01 5.1
75 4.59 5.01 5.1 5.02 5.1
90 4.68 5 5.12 5.03 5.1
105 4.72 5 5.1 5.01 5.1
120 4.72 4.96 5.1 5.01 5.1
135 4.74 4.92 5.1 5.01 5.1
150 4.78 4.97 5.1 5.03 5.1
165 4.83 4.97 5.09 5.04 5.1
180 4.88 5 5.09 5.04 5.1
195 4.9 5 5.09 4.96 5.1
210 4.95 5.01 5.09 5.04 5.1
225 4.92 4.96 5.09 5.05 5.1
240 4.96 5 5.09 5.06 5.1
255 4.98 4.97 5.07 5.07 5.1
270 5 4.95 5.07 5.06 5.1
285 5 5 5.07 5.06 5.1
300 5.02 4.94 5.05 5.08 5.1
315 5.02 5.07 5.06 5.08 5.1
330 5.03 4.99 5.05 5.08 5.1
345 5 5.07 5.05 5.09 5.1
360 4.99 5.1 5.05 5.09 5.1
375 4.99 5.1 5.05 5.09 5.1
390 4.99 5.12 5.05 5.1 5.1
405 4.99 5.12 4.98 5.1 5.1
420 5 5 4.98 5.1 5.1
13 | P a g e
Graph:
14 | P a g e
1.7.2 PID Controller (Varying Integral Controller)
Kp = Kd = 25%
ki
Time s 25% 50% 75% 100% Set point
s mV
0 0 5 5.06 5.13 5.1
15 3.54 5.02 5.06 5.12 5.1
30 3.94 5.02 5.05 5.11 5.1
45 4.23 5.04 5.04 5.11 5.1
60 4.4 5.04 5.04 5.11 5.1
75 4.57 5.04 5.03 5.09 5.1
90 4.67 5.04 5.02 5.09 5.1
105 4.76 5.04 5.02 5.09 5.1
120 4.82 5.05 5.04 5.09 5.1
135 4.84 5.05 5.04 5.07 5.1
150 4.9 5.05 5.05 5.07 5.1
165 4.9 5.05 5.06 5.07 5.1
180 4.93 5.06 5.05 5.08 5.1
195 4.96 5.06 5.05 5.08 5.1
210 4.96 5.06 5.06 5.08 5.1
225 4.96 5.06 5.04 5.07 5.1
240 4.96 5.05 5.04 5.07 5.1
255 4.98 5.05 5.04 5.07 5.1
270 4.97 5.05 5.04 5.08 5.1
285 4.95 5.05 5.03 5.08 5.1
300 4.94 5.04 5.03 5.08 5.1
315 4.94 5.05 5.03 5.09 5.1
330 4.97 5.05 5.04 5.09 5.1
345 4.97 5.05 5.04 5.09 5.1
360 4.97 5.06 5.07 5.06 5.1
375 5 5.06 5.07 5.08 5.1
390 5 5.05 5.08 5.08 5.1
405 5 5.05 5.08 5.08 5.1
420 5 5.06 5.08 5.08 5.1
15 | P a g e
Graph:
16 | P a g e