Umm Al-Qura Universtiy, Makkah Department of Electrical Engineering
Control (802331) Term 2; 2016/2017
Solution Final Exam
Dr. Waheed Ahmad Younis Student name:
May 22, 2017 Student ID:
Max Marks: 80 Section 1 or 2
Q1. [4, 6] Consider the system shown. Find:
a. The damping ratio and undamped natural frequency (for above figure).
b. To improve the damping, the system is changed into (figure below). Find the value of K such that the new damping ratio is 1/2.
Solution:
a.
C(s)
R(s)= G(s) 1+G(s)H(s)=
10 s(s+1) 1+ 10
s(s+1)
= 10
s(s+1)+10= 10
s2+s+10= (
√
10)2s2+2
(
2√
110) √
10s+(√
10)2Hence ωn=
√
10=3.16rad/s∧ξ= 12
√
10=0.158b. Consider the inner loop first: G(s) 1+G(s)H(s)=
10 s+1 1+10K
s+1
= 10
s+1+10K
Now consider the outer loop:
C(s)
R(s)= G(s) 1+G(s)H(s)=
10 s(s+1+10K)
1+ 10
s(s+1+10K)
= 10
s(s+1+10K)+10= 10
s2+(1+10K)s+10= (
√
10)2s2+2
(
1+102√
10K) √
10s+(√
10)2Hence ξ=1+10K
2
√
10 =0.5⇒K=√
10−110 =0.216
Q2. [1, 3, 6] Consider an unstable system G(s)= 1
s2−1 . Your goal is to design a controller such that the undamped natural frequency be ωn=
√
2rad/s and damping ration be ξ=1/√
2 .a. Find the required pole location.
b. Can this goal be achieved by a simple controller Gc(s)=K ? c. Design a PD controller Gc(s)=K(s−z) to achieve this goal.
Solution:
a. Required pole location: −ξ ωn± jωn
√
1−ξ2=−1√
2 (√
2)± j√
2√
1−( √
12)
2=−1± jb. Assume
Gc(s)=K . The root locus does not pass through the required poles. So, this goal cannot be achieved by simple adjustment of gain K.
c. Let the controller be Gc(s)=K(s−z) .
180=∠Gc(s)G(s)H(s)=∠
[
Ks(s−2−1z)]
=∠K+∠(s−z)−∠(s−1)−∠(s+1)=∠(−1+j−z)−∠(−1+j−1)−∠(−1+j+1)=tan−1−1−1 z−153.43−90-5 -4 -3 -2 -1 0 1 2
-3 -2 -1 0 1 2 3
x
x Root Locus
Real Axis (seconds-1) Imaginary Axis (seconds-1 )
tan−1 1
−1−z=180+90+153.43=423.43≡63.43
z= −1
tan 63.43−1=−1.5 Hence Gc(s)=K(s+1.5)
Now we will find the value of K which will achieve the goal.
|
Gc(s)G(s)H(s)|
=1⇒|
(s+K1)(s+1.5s(s−1))|
=1⇒K=
|
(s+1s+1.5)(s−1)|
=|
(−1+−1+j+1) (−1+j+1.5j−1)|
=|
(j)(−20.5++jj)|
=√ √
0.522+2+1122=2Hence Gc(s)=2(s+1.5)
The root locus for this controller
Root Locus
Real Axis (seconds-1) Imaginary Axis (seconds-1)
-5 -4 -3 -2 -1 0 1 2
-3 -2 -1 0 1 2 3
System: sys Gain: 2.01 Pole: -1.01 + 1i Damping: 0.709 Overshoot (%): 4.25 Frequency (rad/s): 1.42
Q3. [6, 2, 1]
Consider the liquid flow system shown. The transfer function from in-
flow-rate qi(t) to out-flow-rate qo(t) is found to be Qo(s)
Qi(s)= 1
R1C1R2C2s2+
(
R1C1+R2C2+R2C1)
s+1Assume R1=R2=1s/m2,C1=1m2, C2=0.25m2 . The in-flow-rate of 1m3/s started at t=0. Find a. Find the out-flow-rate as a function of time.
b. Find the out-flow-rate after 2 sec.
c. Find the steady-state value of the out-flow-rate.
Solution:
a. Qo(s)
Qi(s)= 1
R1C1R2C2s2+
(
R1C1+R2C2+R2C1)
s+1=1
0.25s2+2.25s+1= 4
s2+9s+4 . Hence ξ=2.25>1
Qo(s)= 4
s2+9s+4Qi(s)= 4
s(s+8.531)(s+0.469) Using the table to find inverse Laplace transform:
1
ab
[
1+a−b1(
b e−at−a e−bt) ]
s(s+a1)(s+b)qo(t)= 4
(8.531) (0.469)
[
1+8.531−0.4691(
0.469e−8.531t−8.531e−0.469t) ]
¿1+0.0582e−8.531t−1.0582e−0.469t
b. qo(10)=1+0.0582e−8.531(2)−1.0582e−0.469(2)=0.586m3/s c. qo(∞)=1m3/s
Q4. [3, 3, 4] Consider the system shown. Plot the root locus. Find all important parameters.
Solution:
G(s)H(s)= s+1
s
(
s2+2s+6) (
s+11)
=s(
s2+12s+6)
=s(s+1+j√
51) (s+1−j√
5)We have 3 poles and no zeros. So 3 asymptotes.
Center of asymptotes: σc=
∑
p−∑
zn−m =(0−1+j
√
5−1+j√
5)−(0)3−0 =−2
3
Angles of asymptotes: β=180,±60
Angle of departure: θD=180+∠GH=180+∠
[
s(s+1+j√
51) (s+1−j√
5)]
¿180−∠s−∠(s+1+j
√
5)−∠(s+1−j√
5)=180−∠(−1+j√
5)−∠(−1+j√
5+1+j√
5)−∠(−1+j√
5+1−j√
5)=180−114.09−90=−24.09-5 -4 -3 -2 -1 0 1 2 -5
-4 -3 -2 -1 0 1 2 3 4 5
x
x
x
Q5. [10] Again consider the system of Q4. Using Routh’s stability test, find the range of K for the system to be stable.
Solution:
The close-loop transfer function will be C(s)
R(s)= G(s) 1+G(s)H(s)=
K(s+1) s
(
s2+2s+6)
1+ K(s+1)
s
(
s2+2s+6) (
s+11)
=
K(s+1) s
(
s2+2s+6)
1+ K
s
(
s2+2s+6)
= K(s+1)
s
(
s2+2s+6)
+K= K(s+1) s3+2s2+6s+Ks3 1 6
s2 2 K
s1 6-K/2
s0 K
Hence K>0 and 6-K/2>0 or 12>K 0<K<12
Q6. [6, 4] Consider a PID controller with kp=2,kI=1∧kD=3 . The error signal is a combination of step and ramp: e(t)=2u(t)+t u(t) . Find the control signal generated by the PID controller.
Solution:
Transfer function of the PID controller: W(s)
E(s)=kP+kI
s +kDs=2+1 s+3s E(s)=2
s+1
s2 . W(s)=
(
2+1s+3s) (
2s+s12)
=6+7s+s42+1 s3 . Control signal: w(t)=6δ(t)+(
7+4t+0.5t2)
u(t)Q7. [4, 2, 4] Consider
a. What will be the output of the following MATLAB commands?
n=[1 0 1];
d=[1 2 3 0];
k=0:10;
y=step(n, d, k);
y
b. What is the difference between following two MATLAB commands?
1. n=[1 0 1];
2. n=[1 0 1]
c. Consider the following system:
G(s)= s+2
s(s+1)3, H(s)=1
Write MATLAB command to plot the root locus of this system.
Solution:
a. First 2 lines will define the numerator and denominator of a transfer function: G(s)= s2+1 s3+2s2+3s Third line will generate a vector k=[0 1 2 3 4 5 6 7 8 9 10].
Forth line will compute the step response of the system G(s) at times t=0, 1, … , 10 and store the output in ‘y’.
Last line will print the calculated values of the step response on the screen. No plot will be generated.
b. Command in the first line will make a vector n=[1 0 1] but do not print it on the screen.
Command in the second line will make a vector n=[1 0 1] and echo it on the screen.
c. Here
G(s)H(s)= s+2
s(s+1)3= s+2
s
(
s3+3s2+3s+1)
=s+2 s4+3s3+3s2+s Hence the following command will do the job:
rlocus([1 2], [1 3 3 1 0]);
Q8a. [5] Compare open-loop system with close-loop system. Give at least 3 points.
Ans.
Open loop control system Close loop control system
Cheaper Simple Less accurate
Easier/cheaper to maintain No issue of stability
Expensive Complicated More accurate
Difficult/expensive to maintain Stability is an important issue
Q8b. [5] Give at least 3 examples of open-loop systems and close-loop systems.
Ans.
Open loop control system Close loop control system
Speed control of DC motor without velocity feedback.
Open loop system for position control.
Toaster
Washing machine
Speed control of DC motor using velocity feedback.
Position control of DC motor using position feedback.
Position control of DC motor using position and velocity feedback.
Temperature control using thermostat.
Laplace transform
f (t) F(s)
Unit impulse: δ(t) 1
Unit step: 1 1
s
Unit ramp: t 1
s2 tn−1
(n−1)!(n=1,2, 3,⋯) 1
sn
tn(n=1, 2, 3,⋯) n!
sn+1
e−at 1
s+a 1
a
(
1−e−at)
1s(s+a)
t e−at 1 (s+a)2
1
a2
(
1−e−at−at e−at)
1s(s+a)2
sinωt ω
s2+ω2
cosωt s
s2+ω2
1−cosωt ωn2
s
(
s2+ωn 2)
1− e−ξ ωnt
√
1−ξ2sin(
ωn√
1−ξ2t+cos−1ξ)
(0<ξ<1) ωn2
s
(
s2+2ξ ωns+ωn2)
1
a2
(
1−e−at−at e−at)
1s(s+a)2 1
ab
[
1+a−b1(
b e−at−a e−bt) ]
s(s+a)(s+1 b)sinωnt ωn
s2+ωn2
ωn
√
1−ξ2e−ξωnt
sin
(
ωn√
1−ξ2t)
(0<ξ<1) ωn2
s2+2ξ ωns+ωn2
t e−at 1
(s+a)2 1
b−a
(
e−at−e−bt)
1(s+a)(s+b)
Close loop system with feedback: C(s) R(s)= G
1+GH
For root locus:
o Center of asymptotes:
σc=
∑
i=1 npi−
∑
i=1 m
zi n−m
Angles of asymptotes:
β=180+360k n−m
o Break-away/break-in point:
∑
i=1
n 1
σb−pi=
∑
i=1
m 1
σb−zi
o Departure/arrival angles: θD=180+∠GH ; θA=180−∠GH