Академический Документы
Профессиональный Документы
Культура Документы
Lecture 4
Contents
I Presentation 1
1 Frequency Explanations 1
1.1 Bandwidth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Resonance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 Undamped Natural Frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Compensation Design 2
2.1 Continuous System - Time Domain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.2 Control Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.3 Dynamic Compensator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Part I
Presentation
1 Frequency Explanations
1.1 Bandwidth
The bandwidth of a system is denoted ωBW . It is defined as the maximal frequency where an output
of a system can track an input sinusoid in a satisfactory manner. Using a reference sinusoid signal r
as input to a system will result in the output y being attenuated to 0.707 at the bandwidth frequency
(corresponds to -3dB).
Usually we also use the term crossover frequency ωc when talking bandwidth as it is given as the frequency
at which the -3dB margin is reached.
Blackboard example 1:
Draw frequency response and mark bandwidth
We can talk about bandwidth for a system when we talk about the closed-loop system. In contrast when
we analyze phase and gain margins we always plot the frequency response of an open-loop system.
1
Bandwidth is a measure of the speed of a system and thus relates to the rise-time and settling time of a
system.
1.2 Resonance
The resonance frequency ωr is the frequency at which the closed-loop system has a maximum peak.
This only makes sense for systems with damping smaller than 0.7 (ζ < 0.7) as there is otherwise no
oscillations to generate a resonance peak. When we do have a resonance peak it also means that the
actual bandwidth is higher than for a corresponding system with ζ = 0.7 since the peak moves the
amplitude towards the right.
Blackboard example 2:
Draw frequency response of system with resonance peak and compare with corresponding system with
damping ζ = 0.7 (fig 6.5 in FC pp. 323)
Blackboard example 3:
Draw frequency response with damping 0.7 and lower (fig 6.3 in FC pp. 322)
The natural frequency can also be seen in the phase plot as the frequency at which the phase is 90◦ .
Lowering the damping will cause the slope of the phase for the closed loop system to be steeper, but it
will always cross 90◦ at ωn .
Blackboard example 4:
Draw phase of frequency response from example 3
It is worth mentioning how the overshoot, phase margin and the damping are uniquely related (Mp vs.
ζ fig 3.21 pp 118, Mp vs. PM fig 6.37 pp 357), so once one of the values has been set the others are
also set. That also means that we can interpret the frequency plot of the closed-loop system using phase
margins. As such, a damping of 0.7 corresponds to a phase margin of 90◦ and thus when we have a phase
margin of 90◦ we have that the bandwidth is identical to the undamped natural frequency (ωBW = ωn ).
As the phase margin is decreased (the damping is lowered) the bandwidth of the closed-loop system is
increased, but usually not above 2ωn .
2
Discarding the disturbances Td gives the transfer function:
Θ(s) 1
= s
U (s) s a +1
B Tc (t)
where a = J = 0.1 and u(t) = B .
Design Specifications:
impulse(tf(1,[10 1 0]))
step(tf(1,[10 1 0]))
Impulse Response
Step Response
1
1500
0.9
0.8
0.7
1000
0.6
Amplitude
Amplitude
0.5
0.4
500
0.3
0.2
0.1
0 0
0 10 20 30 40 50 60 0 500 1000 1500
Time (sec) Time (sec)
1.8
• Rise time tr tr ≈
ωn
• Settling time ts 4.6 4.6
Second order system: ts ≈ =
ζωn σ
• Overshoot Mp
− √ πζ
Mp ≈ e 1−ζ2 , 0 ≤ ζ ≤ 1
• Peak time tp π p
tp = , ωd = ω n 1 − ζ 2
ωd
ωn2
H(s) =
s2 + 2ζωn + ωn2
3
”Good” Steady-State Response (FC 176-182)
• Laplace transform Z ∞
F (s) = f (t)e−st dt
0−
1 − T (s)
ess = lim
s→ sk
– Position-error constant (type 0)
– Velocity-error constant (type 1)
– Acceleration-error constant (type 2)
Constant gain
+
K G(s)
−
Feedforward controller
+
KD(s) G(s)
−
Feedback controller
+
G(s)
−
KD(s)
4
+
D1 (s) G(s)
−
D2 (s)
+
K G(s)
−
Gain Controller
For antenna example:
1
G(s) =
10s2 +s
sys=tf(1,[10 1 0]);
rlocus(sys)
Root Locus
0.1
0.1
0.64 0.5 0.38 0.28 0.17 0.08
0.08
0.08 System: sys
0.8 Gain: 0.099
Pole: −0.05 + 0.086i
Damping: 0.503 0.06
0.06 Overshoot (%): 16.1
Frequency (rad/sec): 0.0995
0.04
0.04
0.94
0.02
Imaginary Axis
0.02
−0.02
0.02
0.94
−0.04
0.04
−0.06
0.06
0.8
−0.08
0.08
0.64 0.5 0.38 0.28 0.17 0.08
−0.1
−0.1 −0.09 −0.08 −0.07 −0.06 −0.05 −0.04 −0.03 −0.02 −0.01 0.1 0
Real Axis
5
The response is then given by:
syscl1=feedback(0.1*sys,1)
step(syscl1)
bode(syscl1)
Bode Diagram
Step Response
20
1.4
0
System: syscl1
1.2
Magnitude (dB)
Frequency (rad/sec): 0.1
Magnitude (dB): −0.049
−20
1 −40
−60
Amplitude
0.8
−80
0
0.6
−45
System: syscl1
Phase (deg)
Frequency (rad/sec): 0.1
0.4 Phase (deg): −90.3
−90
0.2
−135
0 −180
−3 −2 −1 0 1
0 20 40 60 80 100 120 10 10 10 10 10
Time (sec) Frequency (rad/sec)
1 + KD(s)G(s) = 0
Lead/Lag Compensation:
• Lead compensation acts mainly to lower rise time and decrease the transient overshoot:
s+z
D(s) = , z<p
s+p
6
Bode Diagram
20
15
10
Magnitude (dB)
5
−5
−10
−15
−20
90
45
Phase (deg)
−45
−90
−2 −1 0 1 2 3
10 10 10 10 10 10
Frequency (rad/sec)
1 + D(s)G(s) = 0
PD Controller
D(s) = 10s + 1
sysd=tf([10 1],1)*sys;
syscl2=feedback(sysd,1)
step(syscl2)
bode(syscl2)
7
Bode Diagram
Step Response
0
1
System: syscl2 −5
Time (sec): 4.57
0.9 Amplitude: 0.99
−10
Magnitude (dB)
−15
0.8
−20
0.7 −25
−30
0.6
Amplitude
−35
0.5 −40
0
0.4
Phase (deg)
0.3
−45
0.2
0.1
0 −90
−2 −1 0 1 2
0 1 2 3 4 5 6 10 10 10 10 10
Time (sec) Frequency (rad/sec)
Lead Controller
10s + 1
D(s) =
s+1
1.4 20
System: syscl3
Time (sec): 3.65 0
Amplitude: 1.16
1.2
Magnitude (dB)
−20
1 −40
System: syscl3
Time (sec): 8.75
Amplitude: 0.99
−60
Amplitude
0.8
−80
0
0.6
−45
Phase (deg)
0.4
−90
0.2
−135
0 −180
−2 −1 0 1 2
0 2 4 6 8 10 12 10 10 10 10 10
Time (sec) Frequency (rad/sec)
Step 1
Design the low frequency gain K with respect to the steady-state error specification
8
Antenna system case: K = 1
Step 2
Determine the needed phase lead
sys=tf(1,[10 1 0]);
margin(sys)
PM=18 at ω = 0.308
Step 3
Using lead contribution of φmax = 45 should result in PM=63 which is 8 more than needed.
Step 4
Determine:
1 − sin φmax 1 − sin 45
α= = = 0.1716
1 + sin φmax 1 + sin 45
Step 5
1 1 2
T = √ = ωn √ = √ = 5.248
ωmax α 2 α 0.92 α
Giving a zero in s = − T1 = 0.19 and a pole in 1
s = − αT = 1.11.
Step 6
Draw the compensated frequency response, check PM
Using the formulation:
Ts + 1
D(s) =
αT s + 1
we use:
Step 7
Step 7: Iterate on the design until all specifications are met
9
Bode Diagram
Gm = Inf dB (at Inf rad/sec) , Pm = 56.3 deg (at 0.505 rad/sec) Step Response
40 1.4
20 System: untitled1
Time (sec): 5.77
1.2 Amplitude: 1.16
Magnitude (dB)
0
System: untitled1
Time (sec): 13.4
−20 Amplitude: 1.01
1
−40
−60
Amplitude
0.8
−80
−90
0.6
Phase (deg)
0.4
−135
0.2
−180 0
−2 −1 0 1 2
10 10 10 10 10 0 5 10 15 20 25
Frequency (rad/sec) Time (sec)
20 1.4
0 System: sysCL
Time (sec): 4.01
1.2 Amplitude: 1.15
Magnitude (dB)
−20
−40 1
System: sysCL
Time (sec): 8.74
Amplitude: 0.99
−60
Amplitude
0.8
−80
0
0.6
−45
Phase (deg)
0.4
−90
0.2
−135
−180 0
−2 −1 0 1 2
10 10 10 10 10 0 5 10 15 20 25
Frequency (rad/sec) Time (sec)
Exercises
1. Repeat the antenna control design. The design should meet the following design specifications:
10