Documente Academic
Documente Profesional
Documente Cultură
An Introduction
ElectricalMechanical Electro- Electronics
Engineer Mechanics Engineer
Modeling &
Simulation
Sensors
Actuators
K. Craig
Topics
Control System Design Overview
Fundamental Concepts
System Inputs
Step and Sine Inputs
Transfer Functions and Analogies
Poles and Zeros of Transfer Functions
Block Diagrams and Loading Effects
Time Domain and Frequency Domain
State-Space Representation
Linearization of Nonlinear Effects
Control System Design Introduction
K. Craig
Open-Loop Control
Basic and Feedforward Control
Closed-Loop Control
Stability and Performance
Sensitivity Analysis
Feedback Control Design Procedure
PID Control and Digital Implementation
Pulse Width Modulation
Parasitic Effects
Sensor Fusion
Observers for Measurement and Control
Advanced Control: Adaptive, Fuzzy Logic
Trade-Offs & Control Design Performance Limitations
K. Craig
K. Craig
D(s)
V(s)
A(s)
M(s)
E(s)
R(s)
Gc(s)
C(s)
G(s)
B(s)
H(s)
N(s)
+
K. Craig
Fundamental Concepts
System Inputs
Step and Sine Inputs
Transfer Functions and Analogies
Poles and Zeros of Transfer Functions
Block Diagrams and Loading Effects
Time Domain and Frequency Domain
State-Space Representation
Linearization of Nonlinear Effects
K. Craig
System Inputs
K. Craig
System Inputs
Initial Energy
Storage
Kinetic
External Driving
Potential
Deterministic
Random
Stationary
Transient
Periodic
Sinusoidal
Unstationary
"Almost
Periodic"
NonSinusoidal
K. Craig
K. Craig
K. Craig
10
K. Craig
11
K. Craig
12
Sine Input
When the input to the system is a sine wave, the
steady-state response of the system, after all the
transients have died away, is called the frequency
response of the system.
These two input types lead to the two views of dynamic
system response: time response and frequency response.
Why only use these two types of input to evaluate a
dynamic system?
The practical difficulty is that precise mathematical
functions for actual real-world inputs will not generally
be known in practice. Therefore the random nature of
many practical inputs makes difficult the development
of performance criteria based on the actual inputs
experienced by real system.
Control System Design Introduction
K. Craig
13
K. Craig
14
K. Craig
15
Dx
x
D
dx
dt
Dx
x
D2
(x) dt
Differential Operator D
d2x
dt 2
Ds
(x) dt dt
Mass-Spring-Damper
Physical Model
Laplace Variable s
Kx
B(dx/dt)
B
K
M
+x
F(t)
2
dx
Fx M dt 2 Mx
F(t) Bx Kx Mx
Mx Bx Kx F(t)
Control System Design Introduction
+x
F(t)
Physical Model
Free-Body Diagram
(x is measured from the
static equilibrium
position)
K. Craig
16
Mx Bx Kx F(t)
Differential Equation
d x
dx
MD x M 2 =Mx
BDx B Bx
dt
dt
MD 2 x MDx Kx F(t) Algebraic Equation
2
Transfer Function
2
F MD BD K
Control System Design Introduction
K. Craig
17
K. Craig
18
iin
iout
R
ein
eout
RC Low-Pass Filter
Basic Component
Equations
(Constitutive Equations)
ein eout iR
Kirchhoffs Current Node Law
i R i C i out
iR iC 0
iR iC
ein eout
deout
C
R
dt
Control System Design Introduction
deout
iC
dt
deout
RC
eout ein
dt
deout
eout Kein
dt
Deout eout Kein
eout
K
ein D 1
K 1
RC
K. Craig
19
Tank
(Area A)
Large Reservoir
Constant Height H
Analogies
supply pressure
pS
fluid density
g acceleration due to gravity
B df o
fo fi
K dt
fi
Control System Design Introduction
p tank gh
RC
fo
+v
K
B
Flow
Resistance
R
A
g
dh
h H
dt
deout
eout Kein
dt
K. Craig
20
eout Kein
dt
deout 1
Kein eout
dt
RC
Input
Block
External
Voltage
ein
Gain Block
K 1
Summation
Block
Gain Block
deout
dt
Integration
Block
eout
Voltage
eout
Output
Block
1
Gain Block
K. Craig
21
Resistor
Damper
Inductor
Mass
Capacitor
Spring
K. Craig
22
qin = i, v
qout = e, f
Resistor, Damper
1
1
i e v f
R
B
e Ri f Bv
Capacitor, Spring
de
i C CDe
dt
1
e
i
CD
Inductor, Mass
di
e L LDi
dt
1
i
e
LD
1 df 1
v
Df
K dt K
K
f v
D
dv
f M
MDv
dt
1
v
f
MD
K. Craig
23
K. Craig
24
K. Craig
25
Step Responses
of the
Three Basic Elements
K. Craig
26
Frequency Response
If the input to a linear system is a sine wave, the
steady-state output (after the transients have died
out) is also a sine wave with the same frequency,
but with a different amplitude and phase angle.
Both amplitude ratio and phase angle change with
frequency.
The following plots show the frequency response
of the three basic elements.
Note that a decibel dB = 20 log10 (amplitude ratio).
0 dB is an amplitude ratio of 1
+ 6 dB is an amplitude ratio of 2
- 6 dB is an amplitude ration of
+ 20 dB is an amplitude ratio of 10
- 20 dB is an amplitude ratio of 1/10.
K. Craig
27
Frequency Response
K. Craig
28
Frequency Response
K. Craig
29
1
KD
qin
qout
t
q out
q in A sin t
1
1
q in q in dt q out initial
KD
K0
1 t
A sin t
K 0
A
A
q out initial
cos t
K
K
A
A
q out initial
sin t
K
2 K
Frequency Response
K. Craig
30
Analogies
Analogies Give Engineers Insight!
Insight based on fundamentals is the key to
innovative multidisciplinary problem solving.
A person trying to explain a difficult concept will often say
Well, the analogy is The use of analogies in everyday
life aids in understanding and makes everyone better
communicators. Mechatronic systems depend on the
interactions among mechanical, electrical, magnetic, fluid,
thermal, and chemical elements, and most likely
combinations of these. They are truly multidisciplinary and
the designers of mechatronic systems are from diverse
backgrounds. Knowledge of physical system analogies can
give design teams a significant competitive advantage.
Control System Design Introduction
K. Craig
31
K. Craig
32
1 2 1 (Kx) 2 1 f 2
Kx
2
2 K
2K
1
Mv 2
1 2 1 q2
Ce
2
2C
1 2
Li
2
Capacitor
Electric Field
Energy
Inductor
Magnetic Field
Energy
K. Craig
33
K. Craig
34
K. Craig
35
force f
velocity v
damper B
spring K
mass M
voltage e
current i
resistor R
capacitor 1/C
inductor L
Resistor e Ri
di
Inductor e L
dt
1
Capacitor e idt
C
Control System Design Introduction
Electrical Mechanical
Analogies
Damper f Bv
dv
Mass f M
dt
Spring f K vdt
K. Craig
36
RC Electrical System
i
ein
eout
R
C
fo
fi f B f K 0
+v
f i Bv Kx 0
ein e R eC 0
f i Bv f o 0
ein iR eout 0
f
fi B o f o 0
K
B
fo fo fi
K
fo
1
B
B
fi
K
D 1
K
K. Craig
de
ein C out R eout 0
dt
de
RC out eout ein
dt
eout
1
RC
ein RCD 1
Control System Design Introduction
fi
37
LR Electrical System
i
ein
eout
fo
ein e L e R 0
fi f B f M 0
di
ein L eout 0
dt
d eout
ein L
eout 0
dt R
L deout
eout ein
R dt
L
eout
1
R
ein L D 1
R
f i Bv M v 0
M
+v
fi
f
fi f o M o 0
B
M
fo fo fi
B
M
fo
1
B
fi M D 1
B
K. Craig
38
fo
ein
eout
Mass-Spring-Damper
Mechanical System
ein e L e R eC 0
fi f K f B f M 0
di
Ri eout 0
dt
d de
de
ein L C out R C out eout 0
dt dt
dt
d 2 eout
de
LC 2 RCdt out eout ein
dt
dt
eout
KS
1
=
ein LCD 2 RCD 1 1 D 2 2 D 1
2n
n
f i Kx Bv M v 0
ein L
1
R C
KS 1
LC
2 L
M
+v
fi
f
f
fi f o B o M o 0
K
K
M
B
fo fo fo fi
K
K
fo
KS
1
=
f i M D 2 B D 1 1 D 2 2 D 1
K
K
2n
n
K
B 1
KS 1
M
2 KM
K. Craig
39
We can use this analogy to explain the flow of current and the
changes in voltages in a LC (inductor-capacitor) electrical circuit
difficult to envision for most mechanical engineers and even
for some electrical engineers by comparing it to a spring-mass
mechanical system.
The diagrams on the next two slides are color-coded: green, blue,
purple, and orange diagrams for each system correspond to each
other, as do the vertical lines on the graph indicating capacitor
voltage and inductor current at the four specific instances. By
comparing the motion of the mass its changing potential energy
corresponding to energy stored in the electric field of the capacitor
and its changing kinetic energy corresponding to energy stored in
the magnetic field of the inductor one can better understand how
electrical capacitors and inductors function.
K. Craig
40
i=0
L
eL
eC
eC
eL
eC
imax
L
imax
eC = 0
eL = 0
eL
eC = 0
i
L
eL = 0
v=0
x = +max
eL
v=0
x = -max
eC
i
L
eL
eC e
L
v = max
x=0
v = max
x=0
eC
K. Craig
41
i=0
i=0
L
eL
eC
eL
eC
i
L
eC
eL
eC
imax
eC = 0
eL = 0
eL = 0
eL
eC = 0
i
L
eL
imax
L
eC e
L
eC
K. Craig
42
K. Craig
43
K. Craig
44
x0
x1
m0
x 0 (s)
m1s 2 K
G 0 (s)
F(s) m t s 2 (m es 2 K)
x1 (s)
K
G1 (s)
F(s) m t s 2 (m es 2 K)
m1
Frictionless Surface
m t m0 m1
1
1
me
m0 m1
Open-Loop Poles
Open-Loop Zeros
s0
s0
s i
K
me
K
Colocated System: s i
m1
Noncolocated System: No Zeros
K. Craig
45
x 2 (s)
Ms 2 2K
G(s)
i1
K
1
M
i3
3K
3
M
i2
2K
1
M
x2
F(t)
K
Frictionless Surface
2
K. Craig
46
Mode Shapes
undeflected
K
K
1
M
3K
3
M
node
fixed
K
2K
2
M
K. Craig
47
K. Craig
48
Complex Zeros
Complex Zeros of the two control systems are
quite different and they represent the resonant
frequencies associated with the energy
storage characteristics of a sub-portion of the
system defined by artificial constraints
imposed by the sensors and actuators.
Complex Zeros correspond to the frequencies
where the system behaves as an energy sink.
Complex Zeros represent frequencies at which
energy being applied by the input is
completely trapped in the energy storage
elements of a sub-portion of the original
system such that no output can ever be
detected at the point of measurement.
Control System Design Introduction
K. Craig
49
K. Craig
50
K. Craig
51
K. Craig
52
K. Craig
53
G1(s)
G2(s)
Y(s)
1
G1 (s)
G 2 (s)
Zo1
U(s)
1
Zi2
Zo1
1
Zi2
K. Craig
54
K. Craig
55
iout
R
ein
eout
1
out
in
eout
1
1
when iout 0
ein RCs 1 s 1
Control System Design Introduction
K. Craig
56
iin
iout
R
ein
R
C
eout
ein
RCs 1 RCs 1
eout
1
Analysis of Complete Circuit:
K. Craig
57
iin
iout
R
ein
Zout
eout
i out
ein
Zin
iin
ein 0
iout 0
RCs 1
RCs 1
Cs
eout
Output Impedance
Input Impedance
K. Craig
58
eout
G(s)1loaded G(s) 2unloaded
ein
1
1
RCs 1 1 Zout 1
Zin 2
2
RCs 1 RCs
RCs 1
K. Craig
59
K. Craig
60
K. Craig
61
Time Domain
Physical Model Step Response
K. Craig
62
Real-World Signal
Control System Design Introduction
63
Frequency Domain
Real-World Signal
Any real-world signal can be broken down into a sum of sine waves
and this combination of sine waves is unique.
Every dynamic signal has a frequency spectrum and if we can
compute this spectrum and properly combine it with the system
frequency response, we can calculate the system time response.
Control System Design Introduction
K. Craig
64
K. Craig
65
Relationship between
Time & Frequency Domains
Control System Design Introduction
K. Craig
66
K. Craig
67
K. Craig
68
K. Craig
69
Linear, Time-Varying
D(t)
Direct Transmission Matrix
Input Matrix
B(t)
u(t)
Inputs
Output Matrix
x(t)
dt
x(t)
y(t)
C(t)
+
Outputs
State Matrix
A(t)
Control System Design Introduction
K. Craig
70
Mx Bx Kx F t
x
1
F MD 2 BD K
xv
1
v F Bv Kx
M
1
0
0
x
x
v K B v 1 F
M
M
M
Control System Design Introduction
1
Kx 2 Spring Potential Energy
2
1
Mv 2 Mass Kinetic Energy
2
K. Craig
71
iR
iout = 0
L
iL
R
ein
i iR iL iC
iC
eout eC
di
ein Ri L eout
dt
1
eout i dt
C
deout i
dt
C
Control System Design Introduction
eout
d 2 eout
deout
LC 2 RC
eout ein
dt
dt
eout
1
i L
eC 1
C
1
1
i
L
L ein
eC
0
0
K. Craig
72
dx x x
dx x x
2!
df
yy
(x x)
df
dx x x
y y
(x x)
dx x x
y Kx
K. Craig
73
x 3
(x 3 x 3 )
x1 ,x 2 ,x 3 ,
f
y y
x1
x1 ,x 2 ,x 3 ,
f
x 1
x 2
x1 ,x 2 ,x 3 ,
f
x 2
x 3
x 3
x1 ,x 2 ,x 3 ,
y K1x 1 K 2 x 2 K 3 x 3
The partial derivatives can be thought of as the sensitivity of the dependent
variable to small changes in that independent variable.
Control System Design Introduction
K. Craig
74
Example
Magnetic Levitation System
Applications
include magnetic
bearings for
vacuum pumps,
conveyor systems
in clean rooms,
high-speed
levitated trains,
and
electromagnetic
automotive valve
actuators.
Electromagnet
Phototransistor
Infrared LED
Levitated Ball
K. Craig
75
Electromagnet
i2
f x,i C 2
x
+x
Ball (mass m)
Linearization:
mg
2
2
2
2i
i
i
2
i
Equation of Motion:
C 2 C 2 C 3 x C 2 i
x
x
x
x
i2
mx mg C 2
i2
2i 2
2 i
x
mx mg C 2 C 3 x C 2 i
At Equilibrium:
x
x
x
i2
mg C 2
x
Control System Design Introduction
2i 2
2i
mx C 3 x C 2
x
x
K. Craig
76
f m f (i, y)
f
f
f m f i0 , y0
y y0
y i0 ,y0
i
Control System Design Introduction
i i0
i0 ,y0
K. Craig
77
Disturbance
Inputs
Manipulated
Inputs
Plant
Response
Variables
Why Controls?
Command Following
Disturbance Rejection
Parameter Variations
Everything Needs Controls
for Optimum Functioning!
K. Craig
78
K. Craig
79
Control
Effector
Plant
Manipulated
Input
Controlled
Variable
Plant
Control
Director
Satisfactory if:
disturbances are not too great
changes in the desire value are not too severe
performance specifications are not too stringent
Control System Design Introduction
Desired Value
of
Controlled Variable
K. Craig
80
Flow of Energy
and/or Material
Control
Effector
Disturbance
Sensor
Controlled
Variable
Plant
Plant
Manipulated
Input
Control
Director
Desired Value
of
Controlled Variable
K. Craig
81
Disturbance-Compensated Feedforward
Control
Basic Idea: Measure important load variables and
take corrective action before they upset the
process.
In contrast, a feedback controller, as we will see,
does not take corrective action until after the
disturbance has upset the process and generated
an error signal.
There are several disadvantages to disturbancecompensated feedforward control:
The load disturbances must be measured on
line. In many applications, this is not feasible.
Control System Design Introduction
K. Craig
82
K. Craig
83
Control
Effector
Based on the
knowledge of plant
characteristics, the
desired value input is
augmented by the
command
compensator to
produce improved
performance.
Control System Design Introduction
Plant
Manipulated
Input
Controlled
Variable
Plant
Control
Director
Command
Compensator
Desired Value
of
Controlled Variable
K. Craig
84
Comments:
Open-loop systems without disturbance or command
compensation are generally the simplest, cheapest,
and most reliable control schemes. These should be
considered first for any control task.
If specifications cannot be met, disturbance and/or
command compensation should be considered next.
When conscientious implementation of open-loop
techniques by a knowledgeable designer fails to yield
a workable solution, the more powerful feedback
methods should be considered.
K. Craig
85
Closed-Loop (Feedback)
Control System
Flow of Energy
and/or Material
Control
Effector
Plant
Manipulated
Input
Controlled
Variable
Plant
Controlled
Variable
Sensor
Control
Director
Desired Value
of
Controlled Variable
K. Craig
86
K. Craig
87
K. Craig
88
K. Craig
89
M(s)
E(s)
R(s)
Gc(s)
B(s)
G c (s)G(s)
C(s)
R(s) 1 G c (s)G(s)H(s)
C(s)
G(s)
D(s) 1 G c (s)G(s)H(s)
C(s) G c (s)G(s)H(s)
N(s) 1 G c (s)G(s)H(s)
Control System Design Introduction
C(s)
G(s)
+
H(s)
Closed
Loop
N(s)
+
B(s)
G c (s)G(s)H(s)
E(s)
Open Loop
C(s)
G c (s)G(s)
E(s)
Feedforward
K. Craig
90
K. Craig
91
K. Craig
92
K. Craig
93
K. Craig
94
K. Craig
95
K. Craig
96
K. Craig
97
D(s)
V(s)
A(s)
M(s)
E(s)
R(s)
Gc(s)
B(s)
C(s)
G(s)
+
H(s)
K. Craig
N(s)
+
98
K. Craig
99
K. Craig
100
K. Craig
101
K. Craig
102
K. Craig
103
K. Craig
104
K. Craig
105
Open-Loop Shaping
Desired Shape for Open-Loop
Transfer Function
Smooth transition from the low to highfrequency range, i.e., -20 dB/decade
slope near the gain crossover frequency
Gain above this level
at low frequencies
Sensor noise,
unmodeled highfrequency dynamics
are significant here.
106
K. Craig
107
+M
-M
Example
Liquid level C in a tank is
manipulated by controlling
the volume flow rate M by
means of a three-position
on/off controller with error
dead space EDS.
Transfer function 1/As
between M and C
represents conservation of
volume between volume
flow rate and liquid level.
Liquid-level sensor
measures C perfectly but
with a data transmission
delay dt.
EDS
C(t)
Area A
K. Craig
108
Three-Position
On-Off Controller
M
M
Step Input
Sum
Dead Zone
Sign
Flow Rate
1/A
s
Plant
C
C
Transport Delay
B
B
K. Craig
109
signal C: solid
signal B: dotted
signal 0.1*M: dashed
1.5
1
0.5
0
0.5
1.5
time (sec)
2.5
K. Craig
110
1.5
signal C: solid
signal B: dotted
signal 0.1*M: dashed
1
0.5
0
-0.5
0.5
1.5
time (sec)
2.5
K. Craig
111
Sensitivity Analysis
Consider the function y = f(x). If the parameter x
changes by an amount x, then y changes by the
amount y. If x is small, y can be estimated from
the slope dy/dx as follows:
dy
y
x
dx
y dy x x dy x
y dx y y dx x
Control System Design Introduction
K. Craig
112
x dy dy / y d(ln y)
S
y dx dx / x d(ln x)
y
x
Thus
y
y x
Sx
y
x
x dy x
x cos(x)
x
S
cos(x)
y dx y
sin(x)
tan(x)
y
x
K. Craig
113
K. Craig
114
R(s)
+
M(s)
E(s)
Gc(s)
C(s)
G(s)
B(s)
H(s)
Control System Design Introduction
K. Craig
115
R(s)
C(s)
Gc(s)
G(s)
T(s)
R(s)
T / T T G
T
SG
G / G G T
K. Craig
116
G c (s)
1
G / G G T
G c (s)G(s)
For the closed-loop system
G c (s)G(s)
C(s)
T(s)
R(s) 1 G c (s)G(s)H(s)
T / T T G
S
G / G G T
1
G
1
(1 G c GH) 2 G c G
G c 1 G c GH
1 G c GH
T
G
K. Craig
117
G c (s)G(s)
C(s)
T(s)
R(s) 1 G c (s)G(s)H(s)
T / T T H
S
H / H H T
(G c G) 2
G c GH
H
2
G cG
(1 G c GH)
1 G cGH
1 G c GH
T
H
K. Craig
118
C(s)
G(s)
D(s)
1 G c (s)G(s)H(s)
K. Craig
119
Therefore:
Make the measurement system very accurate and
stable.
Increase the loop gain to reduce sensitivity of the
control system to changes in plant and controller.
Increase gain GcH to reduce the influence of
external disturbances.
In practice:
G is usually fixed and cannot be altered.
H is essentially fixed once an accurate
measurement system is chosen.
Most of the design freedom is available with
respect to Gc only.
Control System Design Introduction
K. Craig
120
S SGS
K. Craig
121
ST
T / T ln T ln N
ln D
SN SD
/ ln ln 0 ln 0
K. Craig
122
K. Craig
123
K. Craig
124
System
Design
System Dynamics
&
Control Structure
K. Craig
125
Modern
Multidisciplinary
Engineering
System
Other Components
Communications
Operator
Interface
Human Factors
Computation
Software, Electronics
Actuation
Power Modulation
Energy Conversion
Simultaneous
Optimization
of all
System Components
Instrumentation
Energy Conversion
Signal Processing
Physical System
Mechanical, Fluid, Thermal,
Chemical, Electrical,
Biomedical, Civil, Mixed
K. Craig
126
Social Scientists
&
Non-Technical Experts
Business
Experts
ProblemSpecific
Engineers
Sensors
Actuators
Physicists, Chemists,
Mathematicians, &
Computer Scientists
K. Craig
127
K. Craig
128
Time Response
Frequency Response
Pole-Zero
Control System Design Introduction
K. Craig
129
K. Craig
130
K. Craig
131
K. Craig
132
K. Craig
133
K. Craig
134
K. Craig
135
K. Craig
136
K. Craig
137
K. Craig
138
Sampled &
Quantized
Measurement
A/D
Converter
Digital
Computer
Sampling
System
D/A
Converter
Sampling
Switch
Anti-Aliasing
Filter
Sensor
Plant /
Process
Actuator
Power Domain
Control System Design Introduction
K. Craig
139
K. Craig
140
K. Craig
141
K. Craig
142
Continuous
in
Time
Discrete
in
Amplitude
D-D D-C
Continuous
in
Amplitude
C-D
C-C
K. Craig
143
K. Craig
144
1.2
0.8
0.6
0.4
0.2
0.1
0.2
0.3
0.4
0.5
time (sec)
0.6
0.7
0.8
0.9
K. Craig
145
amplitude
0.2
0
-0.2
-0.4
-0.6
-0.8
-1
0.1
0.2
0.3
0.4
0.5
time (sec)
0.6
0.7
0.8
0.9
K. Craig
146
Aliasing
The analog feedback signal coming from the sensor
contains useful information related to controllable
disturbances (relatively low frequency), but also may
often include higher frequency "noise" due to
uncontrollable disturbances (too fast for control
system correction), measurement noise, and stray
electrical pickup. Such noise signals cause
difficulties in analog systems and low-pass filtering is
often needed to allow good control performance.
K. Craig
147
K. Craig
148
0.3
0.2
0.1
0
-0.1
-0.2
-0.3
-0.4
-0.5
0.2
0.4
0.6
0.8
1
time (sec)
1.2
1.4
1.6
1.8
K. Craig
149
K. Craig
150
K. Craig
151
K. Craig
152
U(s) K P
K Ds E(s)
s
K. Craig
153
Proportional Control
Virtually all controllers have a large proportional gain.
While we will see that derivative gain can provide
incremental improvements at high frequencies, and
integral gain improves performance at lower
frequencies, the proportional gain is the primary actor
across the entire frequency range of operation.
Here the manipulating variable U is directly
proportional to the actuating signal E.
The corrective effort is made proportional to system
"error"; large errors engender a stronger response
than do small ones. We can vary in a continuous
fashion the energy and/or material sent to the
controlled process.
Control System Design Introduction
K. Craig
154
K. Craig
155
Integral Control
When a proportional controller can use large loop
gain and preserve good relative stability, system
performance, including those on steady-state error,
may often be met.
However, if difficult process dynamics such as
significant dead times prevent use of large gains,
steady-state error performance may be
unacceptable.
When human process operators notice the existence
of steady-state errors due to changes in desired
value and/or disturbance they can correct for these
by changing the desired value ("set point") or the
controller output bias until the error disappears. This
is called manual reset.
Control System Design Introduction
K. Craig
156
du(t)
K I e(t)
dt
U(s) K I
E(s)
s
u(t) K I e() d
0
K. Craig
157
K. Craig
158
K. Craig
159
K. Craig
160
K. Craig
161
K. Craig
162
K. Craig
163
u I (kTs Ts ) K I
kTs Ts
KI
kTs
e() d
e() d K I
kTs Ts
kTs
e() d
Graphical Interpretation
of Numerical
Integration:
Area of Trapezoid
K. Craig
164
Derivative Control
Proportional and integral control actions can be used
as the sole effect in a practical controller.
But the various derivative control modes are always
used in combination with some more basic control law.
This is because the derivative mode produces no
corrective effect for any constant error, no matter how
large, and therefore would allow uncontrolled steadystate errors.
One of the most important contributions of derivative
control is in system stability augmentation. If absolute
or relative stability is the problem, a suitable derivative
control mode is often the answer.
The stabilization or "damping" aspect can easily be
understood qualitatively from the following discussion.
Control System Design Introduction
K. Craig
165
K. Craig
166
K. Craig
167
K. Craig
168
K. Craig
169
K. Craig
170
de(t)
u(t) K P e(t) K D
dt
U(s)
K P K Ds
E(s)
Derivative control has an anticipatory character,
however, it can never anticipate any action that has
not yet taken place.
Derivative control amplifies noise signals and may
cause a saturation effect in the actuator.
Control System Design Introduction
K. Craig
171
u I (kTs Ts ) u I (kTs ) K I
Ts
e(kTs Ts ) e(kTs )
2
Integration
Ts
u D (kTs Ts ) u D (kTs ) K D e(kTs Ts ) e(kTs )
2
Differentiation
Control System Design Introduction
K. Craig
172
Z Operator
The Laplace Transform variable s is a differential
operator. The Z Transform variable z is a prediction
operator or a forward-shift operator.
U(z)
u(kTs Ts )
K. Craig
173
Ts z 1
2 z 1
U(z) K P K I
KD
E(z)
2 z 1
Ts z 1
The effect of the discrete approximation in the zdomain is as if everywhere in the analog transfer
function the operator s has been replaced by the
composite operator 2 z 1
Ts z 1
2 z 1
The discrete equivalent to Da(s) is Dd (z) Da
T
z
1
s
K. Craig
174
Example Problem
Y
45
U (s 9)(s 5)
U
s6
D s 1.4
E
s
G s
K. Craig
175
1.21z 0.79
Dd (z) 1.4
for Ts 0.07
z 1
u(k 1) u(k) 1.4 1.21e(k 1) 0.79e(k)
1.105z 0.895
Dd (z) 1.4
for Ts 0.035
z 1
u(k 1) u(k) 1.4 1.105e(k 1) 0.895e(k)
K. Craig
176
Output Response
Control Signals
K. Craig
177
K. Craig
178
K. Craig
179
K. Craig
180
K. Craig
181
Waveforms created
by the 3-Op-Amp
Circuit
K. Craig
182
K. Craig
183
Frequency Spectrum
of a
PWM Signal
K 1
Control System Design Introduction
K. Craig
184
Signal BW
4 kHZ
FPWM
PWM
K=5
K FBW 20kHz
dB 20log10
f 20 kHz
1
2f
RC 1
2
14.2dB
If the -14 dB attenuation will not suffice, a higher-order active lowpass filter may be necessary or a higher PWM frequency.
Control System Design Introduction
K. Craig
185
Simulink Simulation
PWM Low -Pass Filter Demonstration
PWM
1
Amplitude
200
Amplitude
Frequency (Hz)
Frequency (hz)
PWM Output
1
0.0159s+1
Analog
Start
Transfer Fcn
RC Low-Pass Filter
Duty %
50
PWM
Duty (%)
K. Craig
186
Response of Low-Pass Filter (1/tau = 10 Hz) to PWM Signal (50% Duty, 50 Hz)
0.7
0.6
amplitude
0.5
0.4
0.3
0.2
0.1
0.05
0.1
0.15
0.2
Response of Low-Pass Filter (1/tau = 10 Hz) to PWM Signal (50% Duty, 100 Hz)
0.7
0.25
time (sec)
0.6
amplitude
0.5
0.4
0.3
0.2
0.1
0.05
0.1
0.15
0.2
0.25
time (sec)
K. Craig
187
Response of Low-Pass Filter (1/tau = 10 Hz) to PWM Signal (50% Duty, 150 Hz)
0.7
0.6
amplitude
0.5
0.4
0.3
0.2
0.1
0.05
0.1
0.15
0.2
0.25
Response of Low-Pass Filter (1/tau = 10 Hz) to PWM Signal (50% Duty, 200 Hz)
0.7
time (sec)
0.6
amplitude
0.5
0.4
0.3
0.2
0.1
0.05
0.1
0.15
0.2
0.25
time (sec)
K. Craig
188
Simulink Simulation
PWM LR Circuit Demonstration
PWM
1
Amplitude
30000
Amplitude
Frequency (Hz)
Frequency (hz)
1/.04
PWM Output
Current_PWM
0.00175s+1
Start
Duty %
50
PWM
Duty (%)
Transfer Fcn
LR Circuit
R = 0.04 Ohms
L = 70 micro-henries
1/.04
0.00175s+1
Step
50% of 1 V
Current_Step
Transfer Fcn
LR Circuit
R = 0.04 Ohms
L = 70 micro-henries
K. Craig
189
12
current (amps)
10
0
0
0.02
K. Craig
190
R
I
estep
Ie
T
R
2
L
i Ie
Ie
1
I
100
Rt
L
Ie
Ie
T
R
2
L
T
R
2
L
T
R
2
L
1
I
100
1
I
100
P
2L
P
e
1
T
ln 1
100
R
100
R
f
P
2L ln 1
100
Control System Design Introduction
Percentage
Frequency
28.4 kHz
5.6 kHz
10
2.7 kHz
20
1.3 kHz
50
412 Hz
K. Craig
191
Response of LR Circuit (tau = 0.00175) to Step Input 0.5 volts and PWM 2.7 kHz
14
12
current (amps)
10
0
0
0.02
K. Craig
192
Response of LR Circuit (tau = 0.00175) to Step Input 0.5 volts and PWM 28.4 kHz
14
12
current (amps)
10
0
0
0.02
K. Craig
193
Parasitic Effects
Parasitic effects are present in all real-world systems
and are troublesome to account for when the
systems are designed. They are rarely disabling
alone, but are debilitating if not dealt with effectively.
These effects include:
Coulomb Friction
Time Delay
Saturation
Compliance / Resonance
Backlash
Nonlinearity
Noise
Quantization
K. Craig
194
Questions:
Are they significant?
While individually they may not be debilitating, in
combination they might be.
Also, implementing solutions to any of these
effects might exacerbate other effects.
What to do about them?
Approaches:
Ignore them and hope for the best! Murphys Law says
ignore them at your own peril.
Include the parasitic effects that you think may be
troublesome in the truth model of the plant and run
simulations to determine if they are negligible.
If they are not negligible and can adversely affect your
system, you need to do something but what?
Control System Design Introduction
K. Craig
195
General Remedies:
Alter the design to reduce the effective loop gain
of the controller, especially at high frequencies
where the effects of parasitics are often
predominant. This generally entails sacrifice in
performance.
Techniques specifically intended to enhance
robustness of the design are also likely to be
effective, but may entail use of a more
complicated control algorithm.
K. Craig
196
Sensor Fusion
When measuring a particular variable, a single type
of sensor for that variable may not be able to meet all
the required performance specifications.
We sometimes combine several sensors into a
measurement system that utilizes the best qualities of
each individual device.
Thus, sensors complement each other, giving rise to
the name complementary filtering. Another name is
sensor fusion and a more advanced version of a
similar idea is called Kalman filtering.
Control System Design Introduction
K. Craig
197
Basic Concept
If a time-varying signal is applied to both a low-pass
filter and a high-pass filter, and if the two filter output
signals are summed, the summed output signal is
exactly equal to the input signal.
Low-Pass Filter
1
s 1
qi
s
s 1
qi
High-Pass Filter
Control System Design Introduction
K. Craig
198
Bode Diagram
0
Magnitude (dB)
-10
-20
-30
-40
-50
-60
90
Phase (deg)
45
0
-45
-90
-2
10
-1
10
10
10
10
Frequency (rad/sec)
K. Craig
199
K. Craig
200
3s 2 3s 1
Low Pass Filter
3
2
s 3s 3s 1
s3
High Pass Filter
3
2
s 3s 3s 1
K. Craig
201
K. Craig
202
K. Craig
203
sensor
Ki
Inclinometer
actual i s 1
Control System Design Introduction
K gs
sensor
2
Rate Gyro
2 g s
s
actual
1
2
ng ng
K. Craig
204
K. Craig
205
K. Craig
206
s2
2s
1
2
n
n
m 2
inc inc _ n
rg
rg _ b
2
s
2s
s
2 s
1
2
2
n n
n n
High-Pass Filter
Low-Pass Filter
This is how the Watson Vertical Reference System is
implemented. The description of that system is
shown on the next page.
K. Craig
207
K. Craig
208
Simulink Simulation
gyro_bias
Sensor Fusion
1/s
Constant
1/s
theta_rg
Uncorrected
Gyro Angle
Num_rg(s)
theta_m
Den_rg(s)
Rate Gyro TF
Measured
Angle
1/s
Step
Input
Angle
2*zeta*omega_n
(omega_n)^2
Manual Switch
Sine Wave
Num_inc(s)
Den_inc(s)
theta_actual
Inclinometer TF
theta_inc
Noisy
Inclinometer
Angle
Actual
Angle
Band-Limited
White Noise
K. Craig
209
Comparison: Integrated Rate-Gyro Angle and Corrected Angle (Noisy Inclinometer Angle Not Shown)
1.4
1.2
angle (radians)
1
0.8
0.6
Corrected Angle
Uncorrected Angle
0.4
0.2
0
-0.2
10
15
20
25
time (sec)
30
35
40
45
50
K. Craig
210
Observers
Controls and Sensors
Sensors measure the quantity under control.
We often assume the availability of near-perfect
feedback signals. This assumption is often
invalid.
K. Craig
211
Observers
Augment or replace sensors in a control system.
They are algorithms that combine sensed signals
with other knowledge of the control system to
produce observed signals which can be more
accurate, less expensive to produce, and more
reliable than sensed signals.
They are an alternative to adding new sensors or
upgrading existing ones.
Control System Design Introduction
K. Craig
212
K. Craig
213
Design Issues
Select observer technique for a given system
How much will observer improve performance?
Additional cost?
Limitations of observers?
Will observer be useful and what are required
resources?
Implementation Issues
Installation of observers
Tune an observer
Recognize effects of changing system parameters
on observer performance
Control System Design Introduction
K. Craig
214
Principle of an Observer
By combining a measured feedback signal with
knowledge of the control-system components
(plant + feedback system) the behavior of the
plant can be known with greater accuracy and
precision than by using the feedback alone.
K. Craig
215
K. Craig
216
K. Craig
217
+_
Controller
Power
Converter
PC
Plant
Sensor
Y
+
Observer
Controller
Modeled System
Plant
Model
CO
Sensor
Model
YO
Observer
Control System Design Introduction
K. Craig
218
K. Craig
219
K. Craig
220
K. Craig
221
K. Craig
222
K. Craig
223
Independent of a feedback sensor, most motioncontrol systems generate phase lag in the control
loop when they derive velocity from position.
Velocity is commonly derived from position using
simple differences. It is well known to inject a
phase lag of half the sample time. The phase lag
also provides an opportunity for the observer to
improve system performance.
Summary: Five Key Guidelines for using an Observer
in a Motion System
Need for high performance in the application
Availability of computational resources in the
controller
Control System Design Introduction
K. Craig
224
K. Craig
225
Adaptive Control
Normal Control Design Procedure
Develop a hierarchy of models (both physical and
mathematical) of the plant, ranging from a truth model, the
most realistic model developed, to a design model, one
simple enough for design purposes while still capturing the
essential characteristics of the actual system.
Validate the models through comparisons of predicted
responses with actual measured responses.
Design a controller on the basis of the plant design model.
Test the control design by simulation on both the design
model and the truth model.
Implement the control design on the actual plant.
Tune the controller after installation.
Control System Design Introduction
K. Craig
226
K. Craig
227
GC2(s)
R(s)
E(s)
+
GC1(s)
D(s)
+
GP(s)
Y(s)
U(s)
+
B(s)
H(s)
Two-Degrees-of-Freedom
Control System
N(s)
K. Craig
228
K. Craig
229
K. Craig
230
K. Craig
231
Adaptive Control
Adaptive control may provide a solution to the
problem. The basic idea is to have the control law
adapt its own behavior, as it learns about the
process it is designed to control, or as the process
changes with its environment.
An adaptive controller is a controller that can
modify its behavior in response to changes in
process dynamics and disturbance
characteristics; it is a controller with adjustable
parameters and a mechanism for adjusting the
parameters.
The controller becomes nonlinear because of the
parameter-adjustment mechanism, but with a
special structure.
Control System Design Introduction
K. Craig
232
Parameter
Adjustment
Controller Parameters
Command
Signal
Controller
Control
Signal
Plant
Output
K. Craig
233
K. Craig
234
K. Craig
235
K. Craig
236
Gain
Schedule
Controller
Parameters
Operating
Condition
Command
Signal
Controller
Control
Signal
Plant
Output
K. Craig
237
Process
Parameters
Specification
Controller
Design
Command
Signal
Estimation
Controller Parameters
Controller
Control
Signal
Plant
Output
K. Craig
238
K. Craig
239
Model
Adjustment
Mechanism
Controller Parameters
Command
Signal
Controller
Control
Signal
Plant
Output
K. Craig
240
Summary
In adaptive control, the process is controlled by a controller
that has adjustable gains. It is assumed that there exists
some kind of design procedure that makes it possible to
determine a controller that satisfies some design criteria if
the process and its environment are known. This is called
the underlying design problem. The adaptive control
problem is then to find a method of adjusting the controller
when the characteristics of the process and its environment
are unknown or changing.
Gain scheduling and model-reference adaptive control are
called direct methods, because the controller parameters
are changed directly without the characteristics of the
process and its disturbances first being determined. The
self-tuning controller is called an indirect method, as the
controller parameters are obtained from a solution to a
design problem using the estimated process parameters
and possibly disturbance characteristics.
Control System Design Introduction
K. Craig
241
K. Craig
242
K. Craig
243
K. Craig
244
K. Craig
245
Fuzzy Control
A fuzzy controller can be designed to roughly
emulate the human deductive process (i.e., the
process whereby we successfully infer
conclusions from our knowledge). As shown in
the figure on the next slide, the fuzzy controller
consists of four main parts.
The rule base holds a set of if-then rules that
are quantified via fuzzy logic and used to
represent the knowledge that human experts
may have about how to solve a problem in
their domain of expertise.
K. Craig
246
Reference
Input
r(t)
Fuzzification
Fuzzy Controller
Inference
Mechanism
Inputs
Process
Rule
Base
u(t)
Outputs
y(t)
K. Craig
247
K. Craig
248
K. Craig
249
K. Craig
250
D(s)
V(s)
+
K(s)
K(s)G(s)
C(s)
T(s)
1 K(s)G(s) V(s)
1
C(s)
S(s)
1 K(s)G(s) D(s)
Control System Design Introduction
G(s)
C(s)
T(s) S(s) 1
K. Craig
251
K. Craig
252
log S(i) d 0
K. Craig
253
K. Craig
254
K. Craig
255
1 2
s
2
s
m 2 Mm
F
2 M
s s
g
2
3 12
g
s2
X
3
2
s
m 2 Mm
F
2 M
s s
g
2
3 12
K. Craig
256
K. Craig
257
e(t)dt 0
K. Craig
258