Chapter 8 (PID Controllers)
Chapter 8 (PID Controllers)
Chapter-8
PID
1
Lecture Outline
Introduction to PID
Modes of Control
On-Off Control
Proportional Control
Proportional + Integral Control
Proportional + Derivative Control
Proportional + Integral + Derivative Control
3
Introduction
• The usefulness of PID controls lies in their general
applicability to most control systems.
5
Four Modes of Controllers
6
On-Off Control
• This is the simplest form of control.
Set point
Error
Output
7
Proportional Control (P)
• In proportional mode, there is a continuous linear relation
between value of the controlled variable and position of the
final control element.
𝑟 (𝑡) 𝑒(𝑡) 𝑐 𝑝(𝑡)= 𝐾 𝑝 𝑒(𝑡) 𝑐 (𝑡)
𝐾𝑝 𝑃𝑙𝑎𝑛𝑡
𝑏(𝑡) -
𝐹𝑒𝑒𝑑𝑏𝑎𝑐𝑘
𝐶𝑝 (𝑠)
=𝐾
𝐸(𝑠) 𝑝 8
Proportional Controllers (P)
• As the gain is increased the system responds faster to
changes in set-point but becomes progressively
underdamped and eventually unstable.
9
Proportional Plus Integral Controllers (PI)
• Integral control describes a controller in which the output
rate of change is dependent on the magnitude of the
input.
• Specifically, a smaller amplitude input causes a slower
rate of change of the output.
10
Proportional Plus Integral Controllers (PI)
• The major advantage of integral controllers is that they have
the unique ability to return the controlled variable back to
the exact set point following a disturbance.
𝐾 𝑖∫ 𝑒(𝑡)𝑑𝑡
∫
𝑟 (𝑡) 𝑒(𝑡)
𝐾 𝑝 𝑒(𝑡)+
+ 𝑐𝑝 𝑖 (𝑡 ) 𝑐 (𝑡)
𝐾𝑝 𝑃𝑙𝑎𝑛𝑡
𝑏(𝑡) -
𝐹𝑒𝑒𝑑𝑏𝑎𝑐𝑘
𝑐𝑝𝑖 (𝑡 )= 𝐾 𝑝 𝑒 ( 𝑡 ) +𝐾 𝑖∫ 𝑒 ( 𝑡 ) 𝑑𝑡 12
Proportional Plus Integral Control (PI)
𝑐𝑝𝑖 (𝑡 )= 𝐾 𝑝 𝑒 ( 𝑡 ) +𝐾 𝑖∫ 𝑒 ( 𝑡 ) 𝑑𝑡
• The transfer function can be written as
𝐶 𝑝 𝑖(𝑠 ) 1
= 𝐾 + 𝐾𝑖
𝐸(𝑠) 𝑝 𝑠
13
Proportional Plus derivative Control (PD)
𝑑𝑒(𝑡)
𝑑 𝐾𝑑
𝑑𝑡
𝐾𝑑
𝑑𝑡
𝑟 (𝑡) 𝑒(𝑡)
𝐾 𝑝 𝑒(𝑡)+
+ 𝑐𝑝 𝑑 (𝑡 ) 𝑐 (𝑡)
𝐾𝑝 𝑃𝑙𝑎𝑛𝑡
𝑏(𝑡) -
𝐹𝑒𝑒𝑑𝑏𝑎𝑐𝑘
𝑑𝑒(𝑡)
𝑐 𝑝 𝑑 (𝑡 )= 𝐾 𝑝 𝑒 ( 𝑡 ) + 𝐾 𝑑
𝑑𝑡
14
Proportional Plus derivative Control (PD)
𝑑𝑒(𝑡)
𝑐 𝑝 𝑑 (𝑡 )= 𝐾 𝑝 𝑒 ( 𝑡 ) + 𝐾 𝑑
𝑑𝑡
• The transfer function can be written as
𝐶 𝑝 𝑑 (𝑠 )
=𝐾 +𝐾 𝑑 𝑠
𝐸(𝑠) 𝑝
15
Proportional Plus derivative Control (PD)
• The stability and overshoot problems that arise when a
proportional controller is used at high gain can be mitigated by
adding a term proportional to the time-derivative of the error signal.
The value of the damping can be adjusted to achieve a critically
damped response.
16
Proportional Plus derivative Control (PD)
• The higher the error signal rate of change, the sooner the final
control element is positioned to the desired value.
17
Proportional Plus Integral Plus Derivative Control (PID)
𝑑𝑒(𝑡)
𝑑 𝐾𝑑
𝑑𝑡
𝐾𝑑
𝑑𝑡
𝑟 (𝑡) 𝑒(𝑡)
𝐾 𝑝 𝑒(𝑡) +
+ 𝑐𝑝 𝑖𝑑 ( 𝑡 ) 𝑐 (𝑡)
𝐾𝑝 𝑃𝑙𝑎𝑛𝑡
𝑏(𝑡) - +
∫ 𝐾 𝑖∫ 𝑒(𝑡)𝑑𝑡
𝐹𝑒𝑒𝑑𝑏𝑎𝑐𝑘
𝑑𝑒(𝑡)
𝑐𝑝 𝑖𝑑 ( 𝑡 ) =𝐾 𝑝 𝑒 ( 𝑡 )+ 𝐾 𝑖 ∫ 𝑒(𝑡)𝑑𝑡+𝐾 𝑑
𝑑𝑡 18
Proportional Plus Integral Plus Derivative Control (PID)
𝑑𝑒(𝑡)
𝑐𝑝 𝑖𝑑 ( 𝑡 ) =𝐾 𝑝 𝑒 ( 𝑡 )+ 𝐾 𝑖 ∫ 𝑒(𝑡)𝑑𝑡+𝐾 𝑑
𝑑𝑡
𝐶 𝑝 𝑖𝑑(𝑠) 1
=𝐾 + 𝐾 𝑖 + 𝐾 𝑑 𝑠
𝐸 (𝑠) 𝑝 𝑠
19
Proportional Plus Integral Plus Derivative Control (PID)
• Although PD control deals neatly with the overshoot and ringing
problems associated with proportional control it does not cure the
problem with the steady-state error. Fortunately it is possible to
eliminate this while using relatively low gain by adding an integral
term to the control function which becomes
20
The Characteristics of P, I, and D controllers
Small Small
Kd Decrease Decrease
Change Change
21
Tips for Designing a PID Controller
• Lastly, please keep in mind that you do not need to implement all three
controllers (proportional, derivative, and integral) into a single system, if
not necessary. For example, if a PI controller gives a good enough response
(like the above example), then you don't need to implement derivative
controller to the system. Keep the controller as simple as possible.
22
Part-II
23
PID Tuning
• The transfer function of PID controller is given as
𝐶 𝑝 𝑖𝑑(𝑠) 1
=𝐾 + 𝐾 𝑖 + 𝐾 𝑑 𝑠
𝐸 (𝑠) 𝑝 𝑠
• It can be simplified as
𝐶 𝑝 𝑖𝑑 ( 𝑠 ) 1
=𝐾 (1+ +𝑇 𝑑 𝑠)
𝐸 ( 𝑠) 𝑝
𝑇𝑖𝑠
• Where
𝐾𝑝 𝐾𝑑
𝑇 𝑖= 𝑇 𝑑=
𝐾𝑖 𝐾𝑝
24
PID Tuning
• The process of selecting the controller parameters () to
meet given performance specifications is known as
controller tuning.
29
Zeigler-Nichol’s Second Method
• In the second method, we first set and .
Table-2
31
Example-1
C (s) K sL
e
R( s) Ts 1
t
L
32
Example-1
33
Example-1
Step Response
10
C( s ) 10 2 s
e 6
Amplitude
R( s ) 3s 1
4
0 5 10 15
Time (sec)
34
Example-2
• Consider the control system shown in following figure.
35
Example-2
• Transfer function of the plant is
1
𝐺 ( 𝑠 )=
𝑠( 𝑠+1)(𝑠 +5)
• Since plant has an integrator therefore Ziegler-Nichol’s
first method is not applicable.
36
Example-2
• Here, since the transfer function of the plant is known we can
find using
– Root Locus
– Routh-Herwitz Stability Criterion
𝐾𝑝
𝐶 (𝑠) 𝐾𝑝
=
𝑅 (𝑠 ) 𝑠 ( 𝑠+1 ) ( 𝑠+5 ) + 𝐾 𝑝 37
Example-2
• The value of that makes the system marginally unstable so
that sustained oscillation occurs can be obtained as
𝑠 3 +6 𝑠2 +5 𝑠+ 𝐾 𝑝 =0
• The Routh array is obtained as
𝐾 𝑐𝑟 =30 38
Example-2
• With gain set equal to 30, the characteristic equation
becomes
𝑠 3 +6 𝑠2 +5 𝑠+3 0= 0
• To find the frequency of sustained oscillations, we substitute
into the characteristic equation.
6 (5 − 𝜔 ¿¿ 2)=0 ¿
𝜔= √5 𝑟𝑎𝑑/ 𝑠𝑒𝑐 39
Example-2
𝜔= √5 𝑟𝑎𝑑/ 𝑠𝑒𝑐
• Hence the period of sustained oscillations is
2𝜋
𝑃 𝑐𝑟 =
𝜔
2𝜋
𝑃 𝑐𝑟 = =2.8099 𝑠𝑒𝑐
√5
• Referring to Table-2
𝐾 𝑝 =0.6 𝐾 𝑐𝑟 =18
5
𝑇 𝑑=0.125 𝑃 𝑐𝑟 =0.35124 40
Example-2
𝐾 𝑝 =18 5 𝑇 𝑑=0.35124
• Transfer function of PID controller is thus obtained as
1
𝐺𝑐 ( 𝑠)= 𝐾 𝑝 (1+ +𝑇 𝑑 𝑠)
𝑇𝑖𝑠
1
𝐺𝑐 ( 𝑠)=18 (1+ +0.35124 𝑠)
1.405 𝑠
41
Example-2
42
Electronic PID Controller
𝑅1 𝑅2 𝑅2
𝐾 𝑝 =−
𝑅1
𝑅3 𝑇 𝑑=− 𝑅 𝐷 2 𝐶 𝐷
𝑇 𝑖 =− 𝑅 𝐼 𝐶 𝐼
𝐶𝐷
𝑒(𝑡) 𝑅𝐷 2 𝑅𝐷 1 𝑅6 𝑅7 𝑅8
𝑅4
𝑅𝐼 𝐶𝐼
𝑅5
43
Electronic PID Controller
𝐸 𝑜 ( 𝑠) 𝑅 4 ( 𝑅1 𝐶 1 𝑠+1)( 𝑅2 𝐶 2 𝑠+1)
=
𝐸𝑖 (𝑠) 𝑅3 𝑅2 𝐶2 𝑠
𝐸𝑖 (𝑠) 𝑅3 𝑅1 (
𝐸 𝑜 ( 𝑠) 𝑅 4 𝑅 2 𝑅1 𝐶 1+ 𝑅 2 𝐶 2
=
𝑅2 𝐶2
+
1
𝑅 2 𝐶2 𝑠 )
+ 𝑅1 𝐶 1 𝑠
44
Electronic PID Controller
𝐸𝑖 (𝑠) 𝑅3 𝑅1 (
𝐸 𝑜 ( 𝑠) 𝑅 4 𝑅 2 𝑅1 𝐶 1+ 𝑅 2 𝐶 2
=
𝑅2 𝐶2
+
1
𝑅 2 𝐶2 𝑠
+ 𝑅1 𝐶 1 𝑠
)
𝐸 𝑜 ( 𝑠) 𝑅 4 ( 𝑅1 𝐶 1 + 𝑅2 𝐶 2 )
𝐸𝑖 (𝑠)
=
𝑅3 𝑅1 𝐶2
1+
[ 1
+
𝑅 1 𝐶 1 𝑅2 𝐶 2
( 𝑅1 𝐶 1 + 𝑅 2 𝐶 2 ) 𝑠 𝑅 1 𝐶 1 + 𝑅2 𝐶 2
𝑠
]
𝑅 4 ( 𝑅1 𝐶 1+ 𝑅2 𝐶 2 ) 𝑅 1 𝐶 1 𝑅2 𝐶 2
𝐾 𝑝= 𝑇 𝑖 =𝑅 1 𝐶 1 + 𝑅2 𝐶 2 𝑇 𝑑=
𝑅3 𝑅1 𝐶2 𝑅 1 𝐶 1 + 𝑅2 𝐶 2
𝑅 4 ( 𝑅1 𝐶 1+ 𝑅2 𝐶 2 ) 𝑅4 𝑅 4 𝑅2 𝐶 1
𝐾 𝑝= 𝐾 𝑖= 𝐾 𝑑=
𝑅3 𝑅1 𝐶2 𝑅3 𝑅 1 𝐶 2 𝑅3
45
END OF LECTURE
46