Control Systems Lab (SC4070) : Georg Schitter
Control Systems Lab (SC4070) : Georg Schitter
Georg Schitter
Delft Center for Systems and Control
Faculty of Mechanical Engineering
Delft University of Technology
The Netherlands
e-mail: [email protected]
http://www.dcsc.tudelft.nl/schitter
tel: 015-27 86152
70
Lecture outline
Overview of control design methods.
Continuous vs. discrete time design.
State-feedback control, observers.
PID control.
71
72
73
Clock
u(t)
A-D
Algorithm
D-A
y(t)
System
Design a continuous-time controller, make sure that the computer implementation approximates the continuous-time controller as well as possible.
74
Clock
u(t)
A-D
Algorithm
D-A
y(t)
System
Describe the system from the computers viewpoint and design directly
a discrete-time controller.
75
Clock
u(t)
{u(t k )}
D-A
y(t)
System
{y(t k )}
A-D
76
Zero-order hold
t0
t1
t2
t3
u(t) = u(tk ),
t4
tk t < tk+1
t 5 Time
Ah
, =
eAsdsB,
78
h . . . sampling period
MATLAB commands
G = ss(A,B,C,D);
h = 0.1;
H = c2d(G,h);
G = d2c(H);
79
a) Nr = 1
0
0
(b) 1
1
b) Nr = 2
0
1
0
0
(c)
1
1
c) Nr = 4
0
1
0
0
(d) 1
1
d) Nr = 8
0
1
0
0
5
Time
5
Time
80
(b)
1
0
0
(c)
(d)
1
0
0
5
Time
Time
82
Ackermanns formula
Compute L such that ( L) has a desired characteristic polynomial
P(z)
L = (0
...
1)Wc1P()
in Matlab:
L = acker(Phi,Gamma,Po)
L = place(Phi,Gamma,Po)
83
84
J=
T
T
x
(k)Qx(k)
+
u
(k)Ru(k)
k=1
85
% state weighting
% output weighting
the terms observer, estimator, filter are in this context used synonymously
86
K
-
u(k)
x^(k+1)
1
z
y^(k)
x(k)
C
x(k)
87
x(k
+ 1) = x(k)
+ u(k) + K y(k) Cx(k)
u(k) = Lx(k)
88
x(k + 1) L L x(k)
e(k + 1)
0
KC
e(k)
Process poles: Ar (z) = det(zI + L)
Observer poles: Ao(z) = det(zI + KC)
Separation principle
89
uc
x
Lc
-L
Observer
90
Process
91
Reference
y0
u0
+
Feedforward
controller
+
+
Nonlinear
system
Feedback
controller
92
PID control
The textbook version
Z t
1
de(t)
u(t) = K e(t) +
e(s)ds + Td
Ti
dt
93
Discrete-time PID
P-term: P(k) = K(buc(k) y(k))
I-term: I(k + 1) = I(k) + TKi e(k)
Td
dN
D-term: D(k) = Td +Nh
D(k 1) TKT
(y(k) y(k 1))
d +Nh
94
PID tuning
Pole placement
Root locus
Bode diagram
Tuning rules (Ziegler-Nichols, tuning)
G(s) = e
t0s
Kp
(s + 1)
t0
Kc =
, Ti = , Td =
K p( + t0)
2
95
Reference
Position
controller
Angle
controller
96
Inverted
pendulum
Controller
Process
Design parameters
Linear
model
ym
Adaptation
97