Linear Control Systems (EE-3052) : Lecture-16 PID
Linear Control Systems (EE-3052) : Lecture-16 PID
Lecture-16
PID
Dr. Imtiaz Hussain
Associate Professor (Control Systems),
Department of Electrical Engineering
DHA Suffa University, Karachi, Pakistan
email: [email protected]
Note: I do not claim any originality in these lectures. The contents of this presentation are
mostly taken from the book of Ogata, Norman S Nise and various other internet sources. 1
Lecture Outline
Introduction to PID
Modes of Control
Proportional Control
Proportional + Integral Control
Proportional + Derivative Control
Proportional + Integral + Derivative Control
𝑏(𝑡 -
)
𝐹𝑒𝑒𝑑𝑏𝑎𝑐𝑘
• Output of proportional controller is
𝑐 𝑝 (𝑡)=𝐾 𝑝 𝑒(𝑡 )
• The transfer function can be written as
𝐶 𝑝(𝑠)
=𝐾
𝐸(𝑠) 𝑝 5
Proportional Controllers (P)
• As the gain is increased the system responds faster to
changes in set-point but becomes progressively
underdamped and eventually unstable.
6
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.
7
Proportional Plus Integral Control (PI)
𝐾 𝑖∫ 𝑒(𝑡)𝑑𝑡
∫
𝑟 (𝑡) 𝑒 (𝑡)
𝐾 𝑝 𝑒 (𝑡)+
+ 𝑐 𝑝𝑖 ( 𝑡 ) 𝑐 (𝑡)
𝐾𝑝
𝑃𝑙𝑎𝑛𝑡
𝑏(𝑡 -
)
𝐹𝑒𝑒𝑑𝑏𝑎𝑐𝑘
𝑐 𝑝𝑖 ( 𝑡 )= 𝐾 𝑝 𝑒 ( 𝑡 ) +𝐾 𝑖∫ 𝑒 ( 𝑡 ) 𝑑𝑡 8
Proportional Plus Integral Control (PI)
𝑐 𝑝𝑖 ( 𝑡 )= 𝐾 𝑝 𝑒 ( 𝑡 ) +𝐾 𝑖∫ 𝑒 ( 𝑡 ) 𝑑𝑡
• The transfer function can be written as
𝐶 𝑝 𝑖 (𝑠) 1
= 𝐾 +𝐾𝑖
𝐸( 𝑠) 𝑝 𝑠
9
Proportional Plus derivative Control (PD)
𝑑𝑒 (𝑡 )
𝑑 𝐾 𝑑
𝑑𝑡
𝐾𝑑
𝑑𝑡
𝑟 (𝑡) 𝑒 (𝑡)
𝐾 𝑝 𝑒 (𝑡)+
+ 𝑐 𝑝 𝑑 ( 𝑡 ) 𝑐 (𝑡)
𝐾𝑝
𝑃𝑙𝑎𝑛𝑡
𝑏(𝑡 -
)
𝐹𝑒𝑒𝑑𝑏𝑎𝑐𝑘
𝑑𝑒 (𝑡 )
𝑐 𝑝 𝑑 ( 𝑡 )=𝐾 𝑝 𝑒 ( 𝑡 )+ 𝐾 𝑑
𝑑𝑡
10
Proportional Plus derivative Control (PD)
𝑑𝑒 (𝑡 )
𝑐 𝑝 𝑑 ( 𝑡 )=𝐾 𝑝 𝑒 ( 𝑡 )+ 𝐾 𝑑
𝑑𝑡
• The transfer function can be written as
𝐶 𝑝 𝑑 ( 𝑠)
=𝐾 + 𝐾 𝑑 𝑠
𝐸( 𝑠) 𝑝
11
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.
12
Proportional Plus Integral Plus Derivative Control (PID)
𝑑𝑒 (𝑡 )
𝑑 𝐾 𝑑
𝑑𝑡
𝐾𝑑
𝑑𝑡
𝑟 (𝑡) 𝑒 (𝑡)
𝐾 𝑝 𝑒 (𝑡) +
+ 𝑐 𝑝𝑖𝑑 ( 𝑡 ) 𝑐 (𝑡)
𝐾𝑝
𝑃𝑙𝑎𝑛𝑡
𝑏(𝑡 - +
)
∫ 𝐾 𝑖∫ 𝑒(𝑡)𝑑𝑡
𝐹𝑒𝑒𝑑𝑏𝑎𝑐𝑘
𝑑𝑒 (𝑡)
𝑐 𝑝 𝑖𝑑 ( 𝑡 )= 𝐾 𝑝 𝑒 ( 𝑡 )+ 𝐾 𝑖∫ 𝑒(𝑡)𝑑𝑡 +𝐾 𝑑
𝑑𝑡 13
Proportional Plus Integral Plus Derivative Control (PID)
𝑑𝑒(𝑡)
𝑐 𝑝 𝑖𝑑 ( 𝑡 )= 𝐾 𝑝 𝑒 ( 𝑡 )+ 𝐾 𝑖∫ 𝑒(𝑡)𝑑𝑡 +𝐾 𝑑
𝑑𝑡
𝐶 𝑝 𝑖𝑑 ( 𝑠)
1
=𝐾 + 𝐾 𝑖 + 𝐾 𝑑 𝑠
𝐸( 𝑠) 𝑝 𝑠
14
Proportional Plus Integral Plus Derivative Control (PID)
15
The Characteristics of P, I, and D controllers
Small Small
Kd Decrease Decrease
Change Change
Part-II
Table-2
Example-1
C ( s) K sL
e
R( s ) Ts 1
t
L
Example-1
Example-1
Step Response
10
8
C( s ) 10 2 s
e
R ( s ) 3s 1 6
Amplitude
0 5 10 15
Time (sec)
Example-2
•• Consider
the control system shown in following figure.
1
𝐺 ( 𝑠 )=
𝑠( 𝑠+1)(𝑠 +5)
• Since plant has an integrator therefore Ziegler-Nichol’s
first method is not applicable.
𝐾 𝑝
𝐶 ( 𝑠) 𝐾𝑝
=
𝑅 ( 𝑠) 𝑠 ( 𝑠+1 )( 𝑠+5 ) + 𝐾 𝑝
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
Example-2
•• With
gain set equal to 30, the characteristic equation
becomes
𝑠 3 +6 𝑠2 +5 𝑠+ 30=0
• To find the frequency of sustained oscillations, we substitute
into the characteristic equation.
6(5
− 𝜔¿¿ 2)+ 𝑗 𝜔(5− 𝜔¿ ¿ 2)=0 ¿ ¿
6(5
− 𝜔¿¿ 2)=0 ¿
𝜔= √5 𝑟𝑎𝑑 /𝑠𝑒𝑐
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
Example-2
𝐾 𝑝 =18
5 𝑇 𝑑=0.35124
END OF LECTURE-16