Sketching Bode Plots
Sketching Bode Plots
by Hand
MECH 3140
Lecture #
1
Recall what a bode plot is
∅ 𝜔𝜔 = ∠𝐻𝐻 𝑗𝑗𝑗𝑗 = ∠𝑛𝑛𝑛𝑛𝑛𝑛 𝑗𝑗𝑗𝑗 − ∠𝑑𝑑𝑑𝑑𝑑𝑑 𝑗𝑗𝑗𝑗 = ∠𝑎𝑎 𝑗𝑗𝑗𝑗 − ∠𝑏𝑏 𝑗𝑗𝑗𝑗 + ∠𝑐𝑐 𝑗𝑗𝑗𝑗 − ∠𝑑𝑑 𝑗𝑗𝑗𝑗
4
Bode Sketching Rules
• Draw your vertical and horizontal axis
– Label horizontal axis ω (rad/s)
– Label the top vertical axis Gain
– Label the bottom vertical axis Phase (or φ)
• Mark the magnitude of all zeros and poles on
the frequency axis
– It is sometimes helpful to draw the poles and zeros
on the s-plane (or at least calculate their
magnitudes and damping ratios if they are under-
damped)
5
Bode Sketching Rules (Gain)
• Start by sketching the asymptotes:
– Start from the DC Gain
• If the DC gain is 0 or ∞ then start with a line of correct
slope (depending on the number of zeros or poles at the
origin)
– Move in frequency until you hit the frequency (in
magnitude) of a pole or zero
• This is the absolute value of the pole or zero if it is real
• This is the ωn of the pole or zero if it is complex
– The slope then changes +1 for every zero and -1
for every pole
• Note this means the slope would change +2 for a
complex zero or -2 for a complex pole. 6
Bode Sketching Rules (Gain)
– Label the slope of the asymptotes
• Label the gain at DC and at the corners
– Use your slopes and start from the DC gain
• This requires you understand logarithmic plots (and
their “slopes”)
𝐺𝐺2 𝜔𝜔 𝜔𝜔
– �𝐺𝐺1 = (𝜔𝜔2)𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠 ∴ 𝐺𝐺2 = 𝐺𝐺1 ( 2)𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠
𝜔𝜔1
1
7
Bode Sketching Rules (Gain)
8
Bode Sketching Rules (Phase)
• Start with the phase at ω=0
– This will be zero unless there is a pole or zero at
the origin
• In which case the phase will be
90*z (where z is the number of zeros at the origin)
-90*p (where p is the number of poles at the origin)
– The phase changes +90/zero and -90/pole at the
magnitude of the zero or pole
• Half of the phase change (+45/zero, -45/pole) occurs at
the magnitude of the eigenvalue
9
Comments
10
Maxon DC16 Spec Sheet
https://www.maxongroup.com/medias/sys_master/root/8833376059422/19-EN-94.pdf 11
Example #1 (12 V Maxon DC 16 Motor)
𝜔𝜔(𝑠𝑠) 𝐾𝐾𝐼𝐼 0.015
= =
𝑉𝑉𝑠𝑠 (𝑠𝑠) 𝐿𝐿𝐿𝐿𝑠𝑠 2 + 𝐽𝐽𝐽𝐽 + 𝐿𝐿𝐿𝐿 𝑠𝑠 + (𝐾𝐾𝐼𝐼 𝐾𝐾𝑏𝑏 + 𝑅𝑅𝑅𝑅) 6.405𝑒𝑒 −11 𝑠𝑠 2 + 2.006𝑒𝑒 −6 𝑠𝑠 + 2.249𝑒𝑒 −4
-3.12e4 -112
12
Hand Sketch
13
>> bode(Ki,[J*L J*R+L*b Ki*Kb+R*b])
14
Example #2 (LRC Circuit)
𝐼𝐼(𝑠𝑠) 𝐶𝐶𝐶𝐶 0.01𝑠𝑠 L=1 H
= = R=100 Ω
𝑉𝑉(𝑠𝑠) 𝐿𝐿𝐿𝐿𝑠𝑠 + 𝑅𝑅𝑅𝑅𝑅𝑅 + 1 0.01𝑠𝑠 2 + 𝑠𝑠 + 1
2 C=10 mF
0.1𝑗𝑗 Im
𝐺𝐺 10 = = 0.01
10𝑗𝑗 + (1 − 1)
Re
-99 -1
15
Hand Sketch
16
>> bode([C 0],[L*C R*C 1])
17
Example #3 (PID Controller)
Im
Re
-10 -5
18
Hand Sketch
-1 +1
20
Example #4 (Random System)
50 50
𝐻𝐻 𝑠𝑠 = 2 = 3
(𝑠𝑠 + 2𝑠𝑠 + 100)(𝑠𝑠 + 1) 𝑠𝑠 + 3𝑠𝑠 2 + 102 + 100
Im
99
10
Re
-1
− 99
21
Hand Sketch
22
>>bode(50,[1 3 102 100])
23
Example #5 (1/4 Car Model)
m2 F
x2
k2
24
¼ Car Transfer Functions
𝑥𝑥1 (𝑠𝑠) 𝑘𝑘1
=
𝐹𝐹(𝑠𝑠) 𝑚𝑚1 𝑚𝑚2 𝑠𝑠 4 + (𝑚𝑚1 𝑘𝑘1 + 𝑚𝑚1 𝑘𝑘2 + 𝑚𝑚2 𝑘𝑘2 )𝑠𝑠 2 + 𝑘𝑘1 𝑘𝑘2
𝑥𝑥2 (𝑠𝑠) 𝑚𝑚1 𝑠𝑠 2 + 𝑘𝑘1
=
𝐹𝐹(𝑠𝑠) 𝑚𝑚1 𝑚𝑚2 𝑠𝑠 4 + (𝑚𝑚1 𝑘𝑘1 + 𝑚𝑚1 𝑘𝑘2 + 𝑚𝑚2 𝑘𝑘2 )𝑠𝑠 2 + 𝑘𝑘1 𝑘𝑘2
Im Im
60 60
6 6
Re Re
6 6
60 60
25
X1 Hand Bode Sketch (Car)
26
X2 Hand Bode Sketch (Wheel)
27
X1 Bode Plot (Car)
28
X2 Bode Plot (Wheel)
>>bode([m1 0 k1],[m1*m2 0 m1*(k1+k2)+m2*k2 0 k1*k2])
29
Effect of Wheel Imbalance
30
Effect of Wheel Imbalance
31
𝑥𝑥1 (Car position)
𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜
• Remember the Bode Plot is
𝑖𝑖𝑖𝑖𝑜𝑜𝑜𝑜𝑜𝑜
32
𝑥𝑥2 (Wheel position)
𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜
• Remember the Bode Plot is
𝑖𝑖𝑖𝑖𝑜𝑜𝑜𝑜𝑜𝑜
33
Calculating Gain & Phase Graphically
∅ 𝜔𝜔 = � ∅𝑧𝑧𝑧𝑧𝑧𝑧𝑧𝑧𝑧𝑧 − � ∅𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝
34
Graphical Example #1
Im
𝑠𝑠 + 4 4
𝐻𝐻 𝑠𝑠 = 4 2
𝑠𝑠 + 3 5
ϕ2 ϕ1 Re
-4 -3
Φ1=53
Φ2=45
4 2
𝐺𝐺 4 =
5
𝜙𝜙 4 = −7 𝑑𝑑𝑑𝑑𝑑𝑑
35
Graphical Example #2
Im
ϕ1
𝑠𝑠 + 3 4
𝐻𝐻 𝑠𝑠 = 2
𝑠𝑠 + 12𝑠𝑠 + 52 5
ϕ3 Re
-6 -3
10
ϕ2 Φ1=0
-4
Φ2=53
5
𝐺𝐺 4 = = 0.0833
6 ∗ 10 Φ3=53
𝜙𝜙 4 = 0 𝑑𝑑𝑑𝑑𝑑𝑑
36