8
8
Objectives:
The objectives of this experiment are to:
1. See the effect of the gain, damping ratio and natural frequency upon
the transient response and steady state error.
2. Evaluate the effect of adding the poles and zeros to the system on the
transient response.
Second Order system:
The dynamic behavior of the second-order system can be described in
terms of two parameters just as the time constant in the first order
system response. The two parameters are called damping ratio and
natural frequency.
Damping Ratio (𝜻): The parameter that describes the damped oscillations
of the second order response.
Natural Frequency (𝝎𝒏 ): The frequency of the oscillation of the system
without damping.
The block diagram of the general second order system shown in Figure 6.1.
Settling Time (𝑻𝒔 ): is the time required for the response curve to reach
and stay within (usually 2% or 5%) of the final value. The settling time is
related to the largest time constant of the control system. It is defined by:
4 4
𝑇𝑠 = 4𝜏 = =
𝜁𝜔𝑛 𝜎𝑑
Peak Time (𝑻𝑷 ): The peak time is the time required for the response to
reach the first peak of the overshoot. It is defined by:
𝜋 𝜋
𝑇𝑃 = =
𝜔𝑛 √(1 − 𝜁 2 ) 𝜔𝑑
Maximum Overshoot 𝑴𝑷 (𝑶𝑺%): is the maximum peak value of the
response curve measured from unity. If the final steady-state value of the
response differs from unity, then it is common to use the maximum
percent overshoot. It is defined by:
2
𝑀𝑃 (𝑂𝑆%) = 𝑒 (−𝜋𝜁/(√1−𝜁 ) × 100%
Also, we have:
Max Value − Final Value
𝑂𝑆% = × 100%
Final Value
Step Response
1.4
=0.5 (Underdamped)
1.2
=1 (Critically damped)
0.8
Amplitude
=1.2 (Overdamped)
0.6
0.4
0.2
0
0 1 2 3 4 5 6 7
Time (sec)
Figure 6.4: Unit step response curves for 𝜁 = 0.5, 1, and 1.2.
% 2. To obtain the response curves of the system for ζ=0.5, 1, and 1.2 for unit ramp
input on the same figure %
zeta=[0.5 1 1.2];
hold on
for i=1:3
num=4;
den=[1 4*zeta(i) 4];
t=0:0.1:10;
r=t;
lsim(num,den,r,t)
end
gtext('\zeta=0.5')
gtext('\zeta=1')
gtext('\zeta=1.2')
gtext('Input’)
=0.5
9
6
=1
Amplitude
Input
5
4
=1.2
3
0
0 1 2 3 4 5 6 7 8 9 10
Time (sec)
Figure 6.5: Unit ramp response curves for 𝜁 = 0.5, 1, and 1.2.
What is the effect of the damping ratio on the time response of the system?
% 1. To obtain step response of the system for 𝝎𝒏 = 𝟏, 𝟓, 𝐚𝐧𝐝 𝟏𝟎 𝐫𝐚𝐝/𝐬𝐞𝐜 on the same
figure %
omegan=[1 5 10];
hold on
for i=1:3
num=omegan(i)^2;
den=[1 omegan(i) omegan(i)^2];
roots(den)
step(num,den)
end
gtext('\omega_n=1')
gtext('\omega_n=5')
gtext('\omega_n=10')
Step Response
1.4
n=5 n=1
1.2
n=10 1
0.8
Amplitude
0.6
0.4
0.2
0
0 2 4 6 8 10 12
Time (sec)
% 2. To obtain the response curves of the system for 𝝎𝒏 = 𝟏, 𝟓, 𝐚𝐧𝐝 𝟏𝟎 𝐫𝐚𝐝/𝐬𝐞𝐜 for
unit ramp input on the same figure %
omegan=[1 5 10];
hold on
for i=1:3
num= omegan(i)^2;
den=[1 omegan(i) omegan(i)^2];
t=0:0.1:5;
r=t;
lsim(num,den,r,t)
end
gtext('\omega_n=1')
gtext('\omega_n=5')
gtext('\omega_n=10')
gtext('Input')
4.5
n=10
4
3.5
3
Amplitude
2.5 Input
n=5
n=1
2
1.5
0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Time (sec)
Example 6.3: The engine body and tires of a racing vehicle affect the
acceleration and speed attainable. The speed control of the car is
represented by the model shown in Figure 6.8.
1.2
K=50
1
Speed of the Car
0.8
0.6
K=20
0.4
K=10
0.2
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time (sec)
Figure 6.9: Unit step response curves for 𝐾 = 10, 20, 50, and 100.
Rise Time (TR ) 0.538 sec 0.357 sec 0.2 sec 0.13 sec
Peak Time ( TP ) 1.12 sec 0.749 sec 0.45 sec 0.315 sec
Settling Time ( Ts ) 0.81 sec 1.1 sec 1.08 sec 1.08 sec
Discuss the effect of increasing the system gain on the transient and steady
state responses.
Example 6.4: Consider the unity feedback system has the forward transfer
function is given by:
25
𝐺(𝑠) =
𝑠 2 + 4𝑠 + 25
Step Response
0.8
Pole at -5
0.7
Pole at -2
0.6
0.5
Amplitude
0.4
0.2
0.1
0
0 1 2 3 4 5 6 7
Time (seconds)
Figure 6.10: Closed loop step response curves with and without adding the poles.
Rise Time (TR ) 0.185 sec 0.357 sec 0.248 sec 0.189 sec
Peak Time ( TP ) 0.472 sec 0.852 sec 0.667 sec 0.515 sec
Settling Time ( Ts ) 1.95 sec 3.52 sec 4.63 sec 2.89 sec
What happen when adding the different values of pole on the system
performance?
% 1. and 3. To obtain step response of the system with and without adding zeros at
– 2, -5, and -10 %
s=tf('s');
G=25/(s^2+4*s+25);
T=feedback(G,1);
step(T)
pole(T)
Z=[2 5 10]
hold on
for i=1:3
GZ=25/Z(i)*(s+Z(i))/(s^2+4*s+25)
TZ=feedback(GZ,1);
step(TZ)
pole(TZ)
end
gtext('No Zero')
gtext('Zero at -2')
gtext('Zero at -5')
gtext('Zero at -10')
grid on
Step Response
0.8
Zero at -2
0.7 No Zero
0.6 Zero at -5
0.5
Amplitude
0.4
Zero at -10
0.3
0.2
0.1
0
0 0.5 1 1.5 2 2.5 3
Time (seconds)
Figure 6.11: Closed loop step response curves with and without adding the zeros.
Rise Time (TR ) 0.185 sec 0.0474 sec 0.111 sec 0.16 sec
Overshoot(OS%) 39.5 %
Peak Time ( TP ) 0.472 sec 0.192 sec 0.307 sec 0.383 sec
Settling Time ( Ts ) 1.95 sec 1.07 sec 0.923 sec 1.09 sec
What happen when adding the different values of zero on the system
performance?
Example 6.5: For the unity feedback system shown in Figure 6.12:
1. Find the values of 𝑲 and 𝜶 to yield a settling time of 0.2 second and
a 30% overshoot.
2. Use MATLAB to obtain the unit step response of the system and verify
the results in part (1).
Solution:
From Figure 6.12:
𝐾
𝐺(𝑠) = , and 𝐻(𝑠) = 1.
𝑠(𝑠 + 𝛼)
𝑌(𝑠) 𝐺(𝑠) 𝐾 𝜔𝑛2
= = = 2
𝑅(𝑠) 1 + 𝐺(𝑠)𝐻(𝑠) 𝑠 2 + 𝛼𝑠 + 𝐾 𝑠 + 2𝜁𝜔𝑛 𝑠 + 𝜔𝑛2
4 4
𝑇𝑠 = → 𝜔𝑛 = = 55.86 rad/sec.
𝜁𝜔𝑛 0.358 × 0.2
To find the values of 𝑲 𝐚𝐧𝐝 𝜶:
>> % To obtain the step response for the overall T.F of Example 8.5 %
>> a=3120;
>> x=tf(a,b);
>> step(x)
System: x
Peak amplitude: 1.3
Overshoot (%): 30 Step Response
1.4
At time (sec): 0.0603
1.2
System: x
Settling Time (sec): 0.195
1
0.8
Amplitude
0.6
0.4
0.2
0
0 0.05 0.1 0.15 0.2 0.25 0.3
Time (sec)
Figure 6.17: (a)Satellite Antenna , (b) Schematic of antenna for Assignment 6.5.
Suppose the applied torque is computed so that 𝜃 tracks a reference command
𝜃𝑟 according to the feedback law:
𝑇𝑐 = 𝐾(𝜃𝑟 − 𝜃)
1. Find the transfer function between 𝜃 and 𝜃𝑟 .
2. What is the maximum value of 𝐾 that can be used if you wish to have an OS%
< 10%?
3. What values of K will provide a rise time of less than 80 sec? (Ignore the
overshoot constraint).
4. Use MATLAB to plot the step response of the antenna system for K = 200, 400,
1000, and 2000. Find the overshoot and rise time of the four step responses
by examining your plots, and discuss the reasons for any discrepancies.