Lecture 9: Design with frequency
domain criterias
1
Control problems
▪ Stabilization ▪ Disturbance attenuation
▪ Changing the behaviour of system ▪ Minimization of cost functions
as desired;
✓ Transient response
✓ Steady state response
Why Feedback?
uncertainties
disturbances noises
Non-linear terms
Reasons for using feedback
➢ The need to decrease effects of ➢ The need to decrease affects of
disturbances and noises modelling errors and uncertainties
2
Control Techniques- Summary
Design Purposes of Control Systems
➢ Decreasing tracking errors (steady state errors)
➢ Increasing stability margins of the system
➢ Improving (changing) the transient performance of the
systems
➢ Rendering systems less sensitive to parameter changes
➢ Robustifying systems against the external disturbances
3
Design Techniques
Direct digital controller design methods
•
• Design in frequency domain criterias
4
Classical control- Discrete time
REAL
SYSTEM
Equivalent
system
? DESIGN
MODEL
5
Design Techniques
G(s) D(s)
G(z) D(z)
6
Frequency Domain: What is frequency response?
Example: RL circuit
INPUT; Voltage OUTPUT; Current
Transfer Function
7
Frequency Domain: What is frequency response?
Solve for I(s)
8
Steady state response in continuous time.
9
Result:
Let solve the problem with a different
approach
10
Result: When
by solving differential equation
From transfer function
System H(s) amplifies the magnitude of the inputs at
frequency of w=2 rad/s with a ratio of 0.0894 and shifts
the phase by -63.4349o. Namely, the output becomes
11
Input u(t) Output c(t)
12
13
In semi-logarithmic axis
14
In complex plane
15
In low frequencies, the magnitute In high frequencies the magnitude
response is big: Thus, for the response is small: Thus, system output
inputs at these frequencies, system will be small, even zero for high
output will be also big. frequency inputs .
16
Magnitute=0.2
Low Pass System
Magnitute=0.02
Low Pass System
17
Frequency Domain: Frequency response-Definition
Input Convolution Integral
Output
18
Frequency Domain: Frequency response-Definition
Fourier Transform of
FREQUENCY RESPONSE
19
Frequency Domain: Frequency response-Definition
20
Frequency Domain: Frequency response-Definition
If the inputs of the LTI systems are sinusoidal, the
outputs are also sinusoidal with SAME FREQUENCY.
Magnitute of the signal is changed by
and phase is chaged by
21
Frequency Response
-plane Complex numbers in
polar coordinates
NYQUIST DIAGRAM
22
Frequency Response
Semi logarithmic
graph
BODE
DIAGRAM
23
Bode diagram: Asymptotic Behavior
24
Bode diagram: Real Behavior
25
Bode diagram
NYQUIST DIAGRAM
Drawing in polar coordinates
where 0≤ w≤ ∞.
and
BODE DIAGRAMS
In semi-logarithmic axis
and
26
Minumum Phase Systems
✓ System doesn’t have any ZERO
and POLE in right half s-plane
and on jw axis (except s=0).
✓ While w changes in -∞˂w˂∞, the
change of phase (angle) is
minumum.
✓ While w changes in -∞˂w˂∞, the
phase shift has same sign ;if |G| is
known, ∠ G is also known.
27
Bode diagram: Real Behavior
MAGNITUTE OF
THE RESPONSES
ARE THE SAME
Non-minimum phase system
Minimum phase system
28
Frequency Response: Criterions (specifications)
✓ For open loop system frequency response
GAIN MARGIN and PHASE MARGIN
✓ For closed loop system frequency response
PEAK MAGNITUTE, PEAK FR. , BANDWITH
29
Gain and Phase margins- Nyquist Diagram
Gain Margin
Phase margin
30
Gain and Phase margins- Bode Diagrams
Gain margin
Phase cut off
Gain cut off frequency
frequency
Phase margin
G.M.
31
GAIN MARGIN and PHASE MARGIN: Interpretation
G.M.
P.M.
If system is minumum phase, the conditions G.M. > 1
and P.M.>0 are necessary and sufficient condition to
determine the stability.
NOT: If only one of them satisfied, system is not
stable.
32
GAIN MARGIN and PHASE MARGIN: Interpretation
If system is minumum phase
Forbidden region for G.M.
Unstable
Stable
Forbidden region for P.M.
33
Stability Margins
uncertainties
disturbances noises
Non-linear terms
✓ Assume that there exist model uncertainties or dynamics that are
not modeled and denote it as ΔG(jω). Let we know the upper
bounds of │ΔG(jω)│ and ∠ΔG(jω).
✓ Is it possible to make closed loop system remain stable even in
this case?
34
GAIN MARGIN and PHASE MARGIN: Interpretation
G.M.
P.M.
G.M and P.M. : A measure of that how much gain and phase of open loop
system can be incerased such that closed loop system is still stable.
Besides, a measure for how much model uncertainity ∆G(jw) the system
G(jw)*∆G(jw) is still stable; If | ∆G(jw) |<G.M. and ∆G(jw) < F.P then
system is still stable.
35
Frequency Response: Criterions (specifications)
✓ For open loop system frequency response
GAIN MARGIN and PHASE MARGIN
✓ For closed loop system frequency response
PEAK MAGNITUTE, PEAK FR. , BANDWITH
Resonans peak magnitute, rezonans frequency,
bandwith
36
Closed Loop Frequency Response: CRITERIONS (Specifications)
Rezonance peak frequency, resonance frequency bandwidth
37
Closed Loop Frequency Response: CRITERIONS (Specifications)
Resonance peak
magnitude
Resonance frequency Big Mr means large
overshoot (Mp)
38
Closed Loop Frequency Response: CRITERIONS (Specifications)
Big B.W. Small Tr
means
Band width fast response
39
Closed Loop Frequency Response: CRITERIONS (Specifications)
B.W.
B.W.
O.L. Fr. Response C.L. Fr. Response
G.M. P. M. Mr. wr B. G.
40
Frequency Response: DISCRETE TIME SYSTEMS
DISCRETE-TIME Fourier Transform of
FREQUENCY RESPONSE
41
Frequency Response: DISCRETE TIME SYSTEMS
WHY?
42
Frequency Response: DISCRETE TIME SYSTEMS
Since there isn’t asympotical characteristics, it is difficult to do controller
design in z-domain, but MATLAB etc. can be used.
43
Direct Digital Design: Frequency Domain
Since the asymptotic behavior doesn’t seen in z-domain, the design
is performed in w-plane which is similar to the s-plane.
The design in w-plane is exactly the SAME with the continuous
time design.
The compensator D(w) is designed using the continuous time design
method
44
Direct Digital Design: Frequency Domain
Relations between z-plane and w-plane
45
Direct Digital Design: Frequency Domain
Linear with respect to ω Not linear
46
Direct Digital Design: Frequency Domain
It is approximately linear with
respect to w, it can be assumed
47
Direct Digital Design: Frequency Domain
48
Direct Digital Design: Frequency Domain
Poles - -
Zeros
K is the same in w-plane and s-plane
49
Direct Digital Design: Frequency Domain
COMPANSATORS
Phase lead;
Knowns; To be calculated
50
Direct Digital Design: Frequency Domain
Phase lead;
K, and determinded by design specifications
Example: PD controller
51
Direct Digital Design: Frequency Domain
Phase lag;
Example: PI controller
52
Phase lead+ Phase lag Example PID
53
Direct Digital Design: Frequency Domain
Since the asymptotic behavior doesn’t seen in z-domain, the design
is performed in w-plane which is similar to the s-plane.
The design in w-plane is exactly the SAME with the continuous
time design.
The compensator D(w) is designed using the continuous time design
method
54
Direct Digital Design : Exmaple in Frequency Domain
55
Direct Digital Design : Exmaple in Frequency Domain
Specifications
2 P.M. G.M.
Compansator
56
Direct Digital Design : Exmaple in Frequency Domain
that makes 2
57
Direct Digital Design : Exmaple in Frequency Domain
Bode diagram of G(w) for
G.M.
F.M.
58
Direct Digital Design : Exmaple in Frequency Domain
P. M.
The angle need to be added,
The compensator will change the magnitute plot, as a
result; P. M will decrease, therefore an extra 8o-10o degrees
should be considered to be added in addition to above
calculated angle
59
Direct Digital Design : Exmaple in Frequency Domain
Magnitude contribution of the
compensator at ω=ωmax
60
Direct Digital Design : Example in Frequency Domain
The frequency that the phase needed to be added is the
frequency where (0dB) (The frequency where
P.M is determined). Thus, the frequency where the magnitute
response of the uncompensated system is -4.425 dB is needed
to be find.
61
Direct Digital Design : Exmaple in Frequency Domain
Let select
Compensator
62
Direct Digital Design : Exmaple in Frequency Domain
Compansator
Compansator
63
Direct Digital Design : Exmaple in Frequency Domain
64
Direct Digital Design : Example in Frequency Domain
Compensator
65
Direct Digital Design : Exmaple in Frequency Domain
66