Introduction, The PID Controller, State Space Models: Automatic Control, Basic Course, Lecture 1
Introduction, The PID Controller, State Space Models: Automatic Control, Basic Course, Lecture 1
Introduction, The PID Controller, State Space Models: Automatic Control, Basic Course, Lecture 1
Models
Automatic Control, Basic Course, Lecture 1
November 6, 2018
Lund University, Department of Automatic Control
Content
1. Introduction
1
Introduction
The Simple Feedback Loop
Disturbances
r u y
Controller Process
• Reference value r
• Control signal u
• Measured signal/output y
2
The Simple Feedback Loop
Disturbances
r u y
Controller Process
• Reference value r
• Control signal u
• Measured signal/output y
Disturbances
r u y
Controller Process
• Reference value r
• Control signal u
• Measured signal/output y
4
Find the Control Problem - 1
4
Find the Control Problem - 2
5
Find the Control Problem - 2
5
Find the Control Problem - 3
6
Find the Control Problem - 3
6
Feedforward
Some systems can operate well without feedback, i.e., in open loop.
Disturbances
r u y
Controller Process
7
Feedforward vs. Feedback
8
Feedforward vs. Feedback
8
The PID Controller
The Error
The input to the controller will be the error, i.e., the difference between
the reference value and the measured value.
e =r −y
r u y
Controller Process
r e u y
+ Controller Process
−1
9
On/Off Controller
(
umax if e > 0
u=
umin if e < 0
umax
umin
10
The P Part
umax
u0
umin
e
−e0 e0
• u0 = u
• K =∞
11
The P Part
• u0 = u (What if u varies?)
• K = ∞ (On/off control)
11
The I Part
12
Example of integral action needed — mini-problem (5 min)
(a) Argue why there will be a stationary error if we just use P-control; i.e.,
u(t) = K · (href − h)?
(b) How will the stationary error change with the value of the gain K ?
K
(c) What happens if we add integral action with very small integral gain ?
Ti
Sketch the behaviour.
13
Answer mini-problem
Note: This is not a strict answer and you need to make reasonable
assumptions about the process yourself for this to hold.
(a) Argue why there will be a stationary value if we just use P-control; i.e.,
u(t) = K · (href − h)?
If h = href the control signal u(t) = K · (href − h) = 0 and the motor
shuts off/fan stops spinning and the ball will fall. The process will
finally settle to an equilibrium with a positive stationary error
e = href − h such that the corresponding control signal will keep the
ball at a fixed error (e) from the reference.
(b) How will the stationary value change with the value of the gain K ?
The control signal to the fan motor u = K · e is the product of the
gain and the error; for a higher gain K you can reach stationarity
with a smaller stationary error e.
14
Answer mini-problem, cont’d
K
(c) What happens if we add integral action with very small integral gain ?
Ti
Sketch the behaviour.
15
Answer mini-problem, cont’d
K
(c) What happens if we add integral action with very small integral gain ?
Ti
Sketch the behaviour.
Note how the height of the ball (slowly) approaches the desired reference
(as the integral part makes the control action increase as long as there is
an error).
See also separate simulink example/demo.
15
The D Part
16
The D Part
16
State Space Models
State Space Models
d ny d n−1 y d nu d n−1 u
+ a1 + . . . + an y = b 0 + b 1 + . . . + bn u
dt n dt n−1 dt n dt n−1
u = u1 =⇒ y = y1 and
u = u2 =⇒ y = y2 implies
u = c1 · u1 + c2 · u2 =⇒ y = c1 · y1 + c2 · y2
and vice versa; We can consider the output from a sum of signals by
considering the influence from each component.
17
State Space Models
d ny d n−1 y d nu d n−1 u
+ a1 + . . . + an y = b 0 + b 1 + . . . + bn u
dt n dt n−1 dt n dt n−1
u = u1 =⇒ y = y1 and
u = u2 =⇒ y = y2 implies
u = c1 · u1 + c2 · u2 =⇒ y = c1 · y1 + c2 · y2
and vice versa; We can consider the output from a sum of signals by
considering the influence from each component.
18
State Space Models
18
State Space Models
19
State Space Models
NOTE: Only states (x) and inputs (u) are allowed on the right hand side in
Eq.-system above (in f and g ) for it to be called a state-space representation!
19
State Space Models
u y
Process
ẋ = Ax + Bu
y = Cx (+Du)
20
Example
Example
The position of a mass m controlled by a force u is described by
mẍ = u
u
m
21
Dynamical Systems
22