Professional Documents
Culture Documents
BodePlots PDF
BodePlots PDF
J. McNames
ECE 222
Bode Plots
Ver. 1.22
J. McNames
ECE 222
Bode Plots
Ver. 1.22
H(s)
y(t)
J. McNames
ECE 222
Bode Plots
Ver. 1.22
Bode Plots
x(t)
H(s)
y(t)
J. McNames
ECE 222
Bode Plots
Ver. 1.22
J. McNames
ECE 222
Bode Plots
Ver. 1.22
N (s)
D(s)
bm sm + bm1 sm1 + + b1 s + b0
an sn + an1 sn1 + + a1 s + a0
bm (s z1 )(s z2 ) . . . (s zm )
s
an
(s p1 )(s p2 ) . . . (s pn )
s
s
s
1 z1
1 z2 . . . 1 zm
k s
1 ps1
1 ps2 . . . 1 psn
J. McNames
ECE 222
Bode Plots
Ver. 1.22
Magnitude Components
Consider the expression for the transfer function magnitude:
|HdB (j)| = 20 log10 |H(j)|
s (1 s ) . . . (1 s )
z1
zm
= 20 log10 k
(1 ps1 ) . . . (1 psn )
= 20 log10 |k| |j|
|1
|1
s=j
j
j
|
.
.
.
|1
z1
zm |
j
j
|
.
.
.
|1
p1
pn |
J. McNames
ECE 222
Bode Plots
j
zm
j
pn
Ver. 1.22
+
20
log
10 1
z1
j
20 log10 1 p1 20 log10 1
j
zm
j
pn
J. McNames
ECE 222
Bode Plots
Ver. 1.22
40
20
0
(rad/sec)
-20
-40
The constant term, 20 log10 |k|, is a straight line on the Bode plot.
J. McNames
ECE 222
Bode Plots
Ver. 1.22
40
20
0
(rad/sec)
-20
-40
The linear term, 20 log10 ||, is a line on the magnitude plot with a
slope equal to 20 dB per decade.
The x-axis intercept occurs at = 1 rad/s.
J. McNames
ECE 222
1
s2 .
Bode Plots
Ver. 1.22
10
lim 20 log10 1
z 0
Thus, if
|z|
1, then 20 log10 1
j
z
j
z
=0
0.
j
z |
Thus, if |z|
1, then this term is linear (on a log scale) with a slope
of 20 dB per decade and an x-axis intercept at = |z|.
J. McNames
ECE 222
Bode Plots
Ver. 1.22
11
40
20
0
(rad/sec)
-20
-40
J. McNames
ECE 222
Bode Plots
Ver. 1.22
12
40
Mag (dB)
30
20
10
0
10
2
10
10
10
Frequency (rad/sec)
10
10
J. McNames
ECE 222
Bode Plots
Ver. 1.22
13
40
20
0
(rad/sec)
-20
-40
Consider two
conditions for a term containing a pole,
limiting
20 log10 1 j
p
J. McNames
ECE 222
Bode Plots
Ver. 1.22
14
Mag (dB)
10
20
30
40
50
2
10
10
10
Frequency (rad/sec)
10
10
J. McNames
ECE 222
Bode Plots
Ver. 1.22
15
J. McNames
ECE 222
Bode Plots
Ver. 1.22
16
J. McNames
ECE 222
Bode Plots
Ver. 1.22
17
30 k
Example 1: Workspace
|H(j)| (dB)
60
40
20
0
10
10
10
10
10
10
(rad/sec)
-20
-40
-60
J. McNames
ECE 222
Bode Plots
Ver. 1.22
18
Example 1: Solution
Bode Magnitude Example 1
60
Mag (dB)
40
20
0
20
40
1
10
J. McNames
10
10
10
10
Frequency (rad/sec)
ECE 222
10
Bode Plots
10
Ver. 1.22
19
.
.
.
1
z
z
z
N (s)
1
2
m
H(s) =
= k s
s
s
s
D(s)
1
1
... 1
p1
p2
pn
J. McNames
ECE 222
Bode Plots
Ver. 1.22
20
Phase Components
H(j)
= k
(j) (1
(1
j
z1 ) . . . (1
j
p1 ) . . . (1
j
zm )
j
pn )
j 2
( e )N1 ej1
. . . Nm ejm
H(j) = |k|e
D1 ej1 . . . Dn ejn
|| N1 . . . Nm
= |k|
D 1 . . . Dn
exp j(k + 2 + 1 + + n 1 n )
jk
where
J. McNames
(
0
k =
1
k>0
k<0
ECE 222
Bode Plots
Ver. 1.22
21
= k + 2 + 1 + + n 1 n
j
j
= k + 2 + 1
+ + 1
z1
zm
j
j
1
1
p1
pn
Thus the phase of H(j) is also a linear sum of the phases due to
each component
We will consider each of the four components in turn
Constant
Linear term
Zeros
Poles
J. McNames
ECE 222
Bode Plots
Ver. 1.22
22
0
(rad/sec)
90
180
J. McNames
ECE 222
Bode Plots
Ver. 1.22
23
0
(rad/sec)
90
180
J. McNames
ECE 222
1
s2 .
Bode Plots
Ver. 1.22
24
lim 1
Thus, if
|z|
1, then 1
j
z
j
z
= 0
0 .
where z = sign(z)
Thus, if
J. McNames
|z|
j
z
1, then 1
j
z
=
j
z
= z 90
z 90 .
ECE 222
Bode Plots
Ver. 1.22
25
0
(rad/sec)
90
180
J. McNames
ECE 222
Bode Plots
Ver. 1.22
26
Phase (deg)
80
60
40
20
0
2
10
10
10
Frequency (rad/sec)
10
10
J. McNames
ECE 222
Bode Plots
Ver. 1.22
27
0
(rad/sec)
90
180
If the zero is in the right half plane (i.e. Re{z} > 0), then the phase
approaches 90 asymptotically.
j
Plot the piecewise approximation of the term 1 z . Assume
that z is in the right half plane.
J. McNames
ECE 222
Bode Plots
Ver. 1.22
28
Phase (deg)
20
40
60
80
100
2
10
10
10
Frequency (rad/sec)
10
10
J. McNames
ECE 222
Bode Plots
Ver. 1.22
29
lim 1
j
p
= 0
lim
=
j
=
90
p
p
J. McNames
ECE 222
Bode Plots
Ver. 1.22
30
0
(rad/sec)
90
180
J. McNames
ECE 222
j
p
Bode Plots
. Assume
Ver. 1.22
31
Phase (deg)
20
40
60
80
100
2
10
10
10
Frequency (rad/sec)
10
10
J. McNames
ECE 222
Bode Plots
Ver. 1.22
32
60 k
270
180
90
10
10
10
10
10
10
(rad/sec)
90
180
-270
J. McNames
ECE 222
Bode Plots
Ver. 1.22
33
Example 2: Solution
50
Phase (deg)
50
100
150
10
J. McNames
10
10
10
10
Frequency (rad/sec)
ECE 222
Bode Plots
10
10
Ver. 1.22
34
j
j
= k + 2 + 1
+ + 1
z1
zm
j
j
1
1
p1
pn
J. McNames
ECE 222
Bode Plots
Ver. 1.22
35
Complex Poles
Complex poles can be expressed in the following form:
n2
C(s) = 2
=
2
s + 2n s + n
1
1+
2 sn
s
n
2
If < 0, the poles are in the right half plane (Re{p} > 0) and the
system is unstable
J. McNames
ECE 222
Bode Plots
Ver. 1.22
36
1
1 + 2 sn +
where
s
n
2 =
Q,
Note that if
1
2
1
1+
s
Qn
s
n
2
1
2
J. McNames
ECE 222
Bode Plots
Ver. 1.22
37
j
+
20 log10 |C(j)| = 20 log10 1
n
Qn
s
2
2
2
= 20 log10
+
1 2
n
Qn
For n ,
20 log10 |C(j)| 20 log10 |1| = 0 dB
For n ,
20 log10 |C(j)| 20 log10
2
= 40 log10
dB
n2
n
J. McNames
ECE 222
Bode Plots
Ver. 1.22
38
2
20 log10 |C(j)| = 20 log10
1 2
+
n
Qn
For = n ,
20 log10 |C(jn )| = 20 log10
J. McNames
1
= 20 log10 Q = QdB
Q
ECE 222
Bode Plots
Ver. 1.22
39
Q = 0.1
Q = 0.5
Q = 0.707
Q=1
Q=2
Q = 10
Q = 100
Mag (dB)
20
20
40
60
10
J. McNames
10
Frequency (rad/sec)
ECE 222
10
Bode Plots
Ver. 1.22
40
=
1
For n ,
1
2
j
Qn
C(j) 1 = 0
For n ,
C(j)
Q
n
Qn
= 1 = 180
For = n ,
C(j)
1
1
= = j = 90
Qj
j
J. McNames
ECE 222
Bode Plots
Ver. 1.22
41
Q = 0.1
Q = 0.5
Q = 0.707
Q=1
Q=2
Q = 10
Q = 100
20
Phase (deg)
40
60
80
100
120
140
160
180
10
J. McNames
10
10
Frequency (rad/sec)
ECE 222
10
Bode Plots
10
Ver. 1.22
42
Complex Zeros
Left half plane:
Inverted magnitude of complex poles
Inverted phase of complex poles
Right half plane:
Inverted magnitude of complex poles
Same phase of complex poles
This is the same relationship real zeros had to real poles
J. McNames
ECE 222
Bode Plots
Ver. 1.22
43
80
60
Mag (dB)
40
20
Q = 0.1
Q = 0.5
Q = 0.707
Q=1
Q=2
Q = 10
Q = 100
0
20
40
1
10
J. McNames
10
Frequency (rad/sec)
ECE 222
10
Bode Plots
Ver. 1.22
44
Phase (deg)
140
120
100
80
Q = 0.1
Q = 0.5
Q = 0.707
Q=1
Q=2
Q = 10
Q = 100
60
40
20
0
2
10
J. McNames
10
10
Frequency (rad/sec)
ECE 222
10
Bode Plots
10
Ver. 1.22
45
1+
|C(j)|
r
j
Qn
1
2
2
n
1
2
+
j
n
2
Qn
2
1
2
0.707
ECE 222
Bode Plots
Ver. 1.22
46
Complex zeros (in the left half plane) have the inverted magnitude
and phase of complex poles
J. McNames
ECE 222
Bode Plots
Ver. 1.22
47
R
+
vs(t)
200 nF
vo(t)
-
H(s) =
J. McNames
s2 +
1
LC
R
1
L s + LC
n2
n2
= 2 n
= 2
s + 2n s + n2
s + Q s + n2
ECE 222
Bode Plots
Ver. 1.22
48
Q =
1
= 10 k rad/s
LC
R
R
LC =
CL = R 0.001
2L
2
r
1 L
L 1
500
=
=
CR
R
LC R
R=5
= 0.005
Q = 100
R = 50
R = 707
= 0.05
= 1.41
Q = 10
Q = 0.707
Light Damping
Strong Damping
R = 1 k
=1
Q = 0.5
Critical Damping
R = 5 k
=5
Q = 0.1
Over Damping
J. McNames
ECE 222
Bode Plots
Ver. 1.22
49
Mag (dB)
0
20
40
60
80
100
120
2
10
J. McNames
R=5
R = 50
R = 707
R = 1 k
R = 5 k
R = 50 k
10
10
Frequency (rad/sec)
ECE 222
10
Bode Plots
10
Ver. 1.22
50
Phase (deg)
40
60
80
R=5
R = 50
R = 707
R = 1 k
R = 5 k
R = 50 k
100
120
140
160
180
2
10
J. McNames
10
10
Frequency (rad/sec)
ECE 222
10
Bode Plots
10
Ver. 1.22
51
R=5
R = 50
R = 707
R = 1 k
R = 5 k
R = 50 k
1.8
1.6
Output (V)
1.4
1.2
1
0.8
0.6
0.4
0.2
0
J. McNames
ECE 222
Bode Plots
0.01
Ver. 1.22
52
J. McNames
ECE 222
Bode Plots
Ver. 1.22
53
st = {};
w = logspace ( PL , PH ,N );
for cnt = 1: length (R ) ,
sys = tf ([1/( L *C )] ,[1 R( cnt )/ L 1/( L * C )]);
[m , p ] = bode ( sys , w );
mag = [ mag reshape (m ,N ,1)];
phs = [ phs reshape (p ,N ,1)];
stp (: , cnt ) = step ( sys , t );
end
% = = = = = = = = = = = = = = = = = = = = = = = = = = = == = = = == = = == = = == = = = == = = = = = = == = = = == = = == = = == = = = == = = == =
% Plot the Figures
% = = = = = = = = = = = = = = = = = = = = = = = = = = = == = = = == = = == = = == = = = == = = = = = = == = = = == = = == = = == = = = == = = == =
figure (1);
FigureSet (1 , Slides );
h = semilogx (w ,20* log10 ( mag ));
set (h , LineWidth ,1 .5 );
grid on ;
xlabel ( Frequency ( rad / sec ) );
ylabel ( Mag ( dB ) );
title ( Resonance Example );
box off ;
xlim ([ w (1) w ( end )]);
ylim ([ -120 45]);
AxisSet (8);
legend ( R = 5 \ Omega , R = 50 \ Omega , R = 707 \ Omega , R = 1 k\ Omega , R = 5 k \ Omega , R = 50 k\ Omega
J. McNames
ECE 222
Bode Plots
Ver. 1.22
54
figure (2);
FigureSet (2 , Slides );
h = semilogx (w , phs );
set (h , LineWidth ,1 .5 );
grid on ;
xlabel ( Frequency ( rad / sec ) );
ylabel ( Phase ( deg ) );
title ( Resonance Example );
box off ;
axis ([10^ PL 10^ PH -190 10]);
AxisSet (8);
legend ( R = 5 \ Omega , R = 50 \ Omega , R = 707 \ Omega , R = 1 k\ Omega , R = 5 k \ Omega , R = 50 k\ Omega
J. McNames
ECE 222
Bode Plots
Ver. 1.22
55
% = = = = = = = = = = = = = = = = = = = = = = = = = = = == = = = == = = == = = == = = = == = = = = = = == = = = == = = == = = == = = = == = = == =
% Post Processing
% = = = = = = = = = = = = = = = = = = = = = = = = = = = == = = = == = = == = = == = = = == = = = = = = == = = = == = = == = = == = = = == = = == =
fprintf ( fileIdentifier , % % = = = = = = = = = = = = = = = = = = = = = = = = = = = == = = = == = = == = = = == = = == = = = == = = == = = = == = = == = = == = = = == = = == \n
fprintf ( fileIdentifier , \\ newslide \ n );
fprintf ( fileIdentifier , \\ slideheading { Example \\ arabic { exc }: MATLAB Code }\ n );
fprintf ( fileIdentifier , % % = = = = = = = = = = = = = = = = = = = = = = = = = = = == = = = == = = == = = = == = = == = = = == = = == = = = == = = == = = == = = = == = = == \n
fprintf ( fileIdentifier , \ t \\ matlabcode { Matlab /% s.m }\ n , functionName );
fclose ( f i l e I d e n tif ier );
J. McNames
ECE 222
Bode Plots
Ver. 1.22
56
Poles
At low frequencies ( p) have no effect
At high frequencies ( p) cause a magnitude decrease
(attenuation) of 20 dB per frequency decade and a phase shift
of 90
Zeros
At low frequencies ( p) have no effect
At high frequencies ( p) cause a magnitude increase (gain)
of 20 dB per frequency decade and a phase shift of 90
Complex poles and zeros can cause peaking or resonance
ECE 222
Bode Plots
Ver. 1.22
57