PID Controller
PID Controller
Faculty of Engineering
Electrical Engineering Department
Automatic Control Lab
Lab Procedure:
Change the set value as shown in table 1.1 and record the measured value.
Table 1.1
Figure 1.2 open loop system set value=2 with and without disturbance.
2. How can this system be modified so that it can correct itself for any change in
operating conditions?
Change the set value as shown in table 1.2 and record the measured value.
Set value Measured value Deviation
Without disturbance With disturbance Without d With d
2 1 1.75 1 0.25
5 2.5 3.25 2.5 1.75
8 4 4.75 4 3.25
-8 -4 -3.25 -4 -4.75
-5 -2.5 -1.75 -2.5 -3.75
-2 -1 -0.25 -1 -1.75
Table 1.2
Figure 1.4 closed loop system set value=5 with and without disturbance.
The delay happens because the signal needs some time to settle (settling
time) as we can see in figure 1.4
Figure 1.5
4. What are the differences between the two parts according to your results?
Comments and explain.
Without disturbance the output of the open loop system is equal to the
input but in the closed loop system it is only half of the input. However, the
disturbance appears entirely on the open loop system output while in the
closed loop system the disturbance effect the output only by half of its
value so the closed loop system is better in disturbance rejection.
Lab Procedure
Part 1: Proportional Control System Response
Connect the block diagram shown in figure 2.1 using Matlab Simulink.
Change the Kp as shown in table 2.1 and record the requested values.
1
Kp Rise Time Overshoot Settling Time S.S Error
Kp
100 1 0.03 0.07 0.08 -0.5
%
75% 1.3333 0.027 0.11 0.08 -0.43
50% 2 0.022 0.2 0.101 -0.33
5% 20 Oscillation
Table 2.1
Question#1: what do you see, then if we increase Kp what is the effect in the
following:
Yes there is a limit (in this system it is 8) then the system will be unstable and the
output will be oscillation.
1. Connect the block diagram shown in figure 2.3 using Matlab Simulink.
Figure 2.3 block diagram of closed loop system proportional controller.
2. Apply to the set value disturbance socket a square wave of 5 Vp-p at 0.1
Hz.
3. Adjust the proportional band control to 50% (Kp=2).
4. Monitor the deviation and slowly reduce the setting on INTERGAL ACTION
control until deviation falls to zero after each disturbance
5. Reduce the integral action control to 10 and see the response of the
system (Ti=10 then Ki=2/10=0.2).
Figure 2.5 the response when Kp=2, Ki=0.2.
Change the Ki (with Kp=1) as shown in table 2.1 and record the requested values.
In many applications the PID controller can do the job - but as usual, with
compromises. After a short intro to the PID terms and an example control system,
you'll get a chance tune a PID controller. Figure 3.2.1 shows a typically PID closed-
loop system.
Ki
(
PID= K p +
s
+K d s ) or PID=K (1+ T1s +T s)
p
i
d
Figure 3.2
Let Kp =1, Ki=1; study the effect of Td according to the Table 3.1 and capture the
result on the diagram below:
TD No. of overshoots Steady state error Settling Time
0.4 3 0 0.21
0.1 7 0 0.16
Table 3.1
Questions 3: Is it necessary all the time need to implement all three controllers
in to a single System? Explain you can support your answer by an example.
No it is not necessary to implement all three controllers all the time, it depends
on the application and the characteristics you consider important in your system,
so if you don’t care about the overshoot or the rise time and just want to
eliminate the steady state error an Integral controller will be enough.