Lecture 4: Experiment 3
Ziegler-Nichols tuning method for PID controllers
Contents
1 Announcements
4 7 Discretization
10
11
EE380-Controls Lab
2 of 11
2013
Announcements
Before doing an experiment, download latest versions of supporting documents from Brihaspati.
Turn off power supply to board when not programming dsPIC or taking readings.
After completion of experiment
Shut down PC, FG, PS.
Remove PICkit 2 from dsPIC board.
EE380-Controls Lab
3 of 11
2013
For plants exhibiting sustained oscillations under CL proportional control for some kp = kcr > 0.
Step 1: Form CL system with kp > 0.
ref +
u
kp
G(s)
Pcr =
PID controller
kp
Ti
TD
0.5kcr
PI
0.45kcr (1/1.2)Pcr
1.5
PID
0.6kcr
0.5Pcr
0
0.125Pcr
0.5
0
0
10
Time [s]
EE380-Controls Lab
4 of 11
2013
29
s2 + 10s + 29
Vreq
Motor
unew
Saturation
u
0.8 uactual 1
Vs
Vs
H-bridge
H(s)
PWM
Here, unew is controllers output, uactual is numerical value of voltage applied to motors armature, Vreq is
actual voltage applied to motors armature, is duty ratio of PWM signal.
kp
unew
29
s2 + 10s + 29
Vreq
Motor
ref +
Saturation
u
0.8 uactual 1
Vs
Vs
H-bridge
H(s)
PWM
Apply step ref & tune kp so that closed-loop (CL) systems output oscillates sustainedly.
5 of 11
2013
0
5
Im
10
1 + j0
15
20
25
Km
m s+1
30
10
ref +
kp
0
u
G(s)
10
15
Re
20
29
s2 +10s+29
25
30
35
m
mKs+1
40
For CL system
with stable G(s) and kp > 0 to display sustained
oscillations, Nyquist Plot (NP) of kpG(s) must pass through 1 + j0.
m
NP of kp mKs+1
does not pass through 1 + j0 for any kp > 0.
29
m
NP of kp s2+10s+29
Ks+1
passes through 1 + j0 for suitable gain kp = kcr.
EE380-Controls Lab
6 of 11
2013
10
Pcr is calculated as
follows from RL.
Imag. axis
RL touches the j
axis at approximately j13.2.
Radian frequency
of sustained oscillations is cr = 13.2
rad/s.
-5
-10
-25
-20
-15
-10
-5
Pcr = 2/cr =
0.476 0.48 s.
EE380-Controls Lab
7 of 11
2013
LW
29
to
Prefix 2
s + 10s + 29
math model from Exp.1
////////////
Simulate////////
using/////////////////////
easysim.m
Comment on observations
8 of 11
2013
Discretization
a1 s + a0
s 2 + b1 s + b0
Simulation diagram
(or tf2ss)
x 1 = x2
x 2 = b0x1 b1x2 + u
y = a0x1 + a1x2
Eulers approximation
EE380-Controls Lab
9 of 11
2013
Simulation: simsine.m
EE380-Controls Lab
=
=
=
=
=
10 of 11
2013
EE380-Controls Lab
11 of 11
2013