Robin Assignment
Robin Assignment
12040328
21108
16/03/2015
Dr. Robin Tan
k
di(t)
R
1
i(t) 1 (t) u(t)
dt
L
L
L
d(t) k 2
i(t)
dt
J
by
where i(t) = armature motor current, R = armature resistance (5 ohms),
u(t) = input voltage, L = armature inductance (200mH),
(t) = motor
speed,
J = motor inertia (0.02 kgm2), k1 = back-emf constant (0.1 V/rad/s)
and
Q1 Answer
Q1 a)
Let
x 1 ( t )=i ( t )
1 ( t )=
di(t)
dt
---------------------------(a)
x 2 ( t )= ( t )
2 ( t )=
d (t)
dt
-----------------------------(b)
1 ( t )=
R
K1
1
i(t)
( t ) + u(t )
L
L
L
1 ( t )=
5
0.1
1
x 1(t)
x 2( t)+
u( t)
200 m
200 m
200 m
2 ( t )=
k2
i(t )
J
2 ( t )=
0.1
x 1(t ) -----------------------------(d)
0.02
[ ][
][ ] [ ]
1 ( t )
25 0.5 x1 ( t ) 5
=
+ u
5
0
2 (t)
x2 ( t ) 0
-----------------------------(c)
Q1 b)
y (t )= ( t )
[ ]
( t ) =[ 01 ] x 1 ( t )
x2 ( t )
State control M =
[ B : AB ]
][ ]
AB= 25 0.5 5
5
0
0
[ ]
125
25
M= 5 125
0
25
Det = 125
0
Output control M =
[ CB : CAB ]
[]
CB=[ 0 1 ] 5
0
=0
][ ]
CAB=[ 0 1 ] 25 0.5 5
5
0
0
= 25
M =[ 0 25 ]
Stability of system
G ( s )=C [ SI A]1 B
1
{[ ] [
]} [ ]
G ( s )=[ 0 1 ] S 1 0 25 0.5
0 1
5
0
[0 1]
{[ ] [
s 0 25 0.5
0 s
5
0
[ 0 1 ] S +25 0.5
5
S
[ SI A ] =
]} [ ]
5
0
]} [ ]
5
0
1
S 0.5
( s+25 ) ( s ) +2.5 5 S+ 25
1
S 0.5
s +25 s+2.5 5 S +25
s
s +25 s +2.5
5
2
s +25 s +2.5
5
0
0.5
s + 25 s+2.5
s +25
2
s + 25 s+2.5
s
s +25 s+2.5
G ( s )= [ 0 1 ]
5
2
s +25 s+2.5
25
s +25 s+2.5
5
s + 25 s+ 2.5
2
)
)[ ]
0.5
s +25 s+ 2.5 5
s+25
0
2
s +25 s+ 2.5
2
][ ]
s+ 25
5
s +25 s+2.5 0
2
Q1 C)
= Ax+ Bu
A
[ ][]
x1 + 5 u
0.25 0
][ ] [ ]
25 0.5 x1 + 5 u
5
0
0.25 0
[][
0 = 25 x 10.125+5 u
0
5 x1
5 x1=0
---- equation
x 1=0
25 x 10.125+5 u
= 0 --- equation
0.125+ 5u=0
u=0.025
feedback for comparison with the input. Therefore, an open-loop system is expected
to faithfully follow its input command or set point regardless of the final result.
Furthermore, open-loop system has no knowledge of the output condition so cannot
self-correct any errors it could make when the preset value drifts, even if the results in
large deviations from the preset value.
Q1 d)
= Ax+ Bu
Given:
y=x 2
(State equation)
so,
[ ]
( t ) =[ 01 ] x 1 ( t )
x2 ( t )
= Ax+ B(ky + v)
Ax + B(k x 2+ v )
Ax + B(kCx+ v )
Ax + BkCx+Bv
( A + BkC ) x+ Bv
new ( A+ BkC ) =
][]
25 0.5 5
+ k [ 0 1]
5
0
0
][ ]
25 0.5 + 5 k [ 0 1 ]
5
0
0
][
][ ] [ ]
( 25 0.5 + 0 5 k 5 k ) x 1
5
0
0 0 0 x2
][ ]
25 0.5+5 k x1
5
0
x2
[ ][
[ SI A ] =s 1 0 25 0.5+5 k
0 1
[ ][
s 0 25 0.5+5 k
0 s
5
0
[ SI A ] =
s+25 0.55 k
5
0
1
s +25 s +2.525 k
2
Rouths Criteriar
S2
2.5-25k
S1
25
S0
2.5 - 25k
2.525 k >0
k <0.1
Q1 e) 1st condition;
When k = 0.1
2nd condition;
When k > 0.1
3rd condition;
When k < 0.1
Q1 f)
Given:
= Ax+ Bu
= Ax+ B(kx + v)
Ax + Bkx+ Bv
( A+ Bk )x + Bv
][]
25 0.5 5
+ [ k 1 k 2 ]) x
5
0
0
][]
][
5 k 5 k2
( 25 0.5 + 1
)x
5
0
0
0
] []
25+5 k 1 0.5+5 k 2
x+ 5 v
5
0
0
[ ][
[ SI A ] =s 1 0 25+ 5 k 1 0.5+5 k 2
0 1
[ ][
25+5 k 1 0.5+5 k 2
s 0
0 s
5
0
[ SI A ] =
s+255 k 1 0.55 k 2
5
s
1
( s+255 k 1 ) ( s )[ (5 ) ( 0.55 k 2 ) ]
1
s+
255
k
(
s
)
[
(5 ) ( 0.55 k 2 ) ]
(
1)
1
s + (5 k 1 +25 ) s+ ( 2.525 k 2 )
2
Rouths Criteriar
S2
2.5 - 25k2
S1
-5k1+25
S0
2.5 - 25k2
5 k 1+25 >0
k 1 <5
2.525 k 2> 0
k 2 <0.1
Comment:
Q1 g)
Set K1=4.5 (constant) , K2 as adjustable variable to observe the system respond.
1st condition;
Comment: From the result of simulink had a stable system because according to the
stable state is when K1<5 and k2<0.1. In other words, when k2 decrease, the result also
decrease. Therefore, the higher the value, the system is more stable.
2nd condition;
3rd condition;
Commment: The system is unstable when K2 > 0.1, since the K2 <0.1 in calculation.
4th condition;
5th condition;
6th condition;
H(s)
Y(s)
50
U(s) s s 250
f) For T=0.1s, calculate the value of v(n) such that the value of y(n)
converges to 5 in steady state. Validate your result using Simulink.
(10 marks)
Q2 Answer
Q2a)
Q2b)
H (s)=
Y (S)
50
=
S + 250 S U (S)
2
d 2 y (t ) dy (t)
+(
)250
dt
dt 2
x 1(t)= y (t )
x 2(t)= x1=
dy (t)
dt
d 2 y (t )
x 2(t)=
dt 2
x 1( t)=x 2 (t)
x 2(t)=250 x2 (t )+50 u (t)
[ ][
][ ] [ ]
1 ( t )
0
1
x1 ( t )
=
+ 0 u
2 (t) 0 250 x 2 ( t ) 50
[ ]
[ y (t)] = [1 0 ] x 1 ( t )
x2 ( t )
e A =L1 {( sI A) }
Q2c)
[ ][
1
sI A= s 0 0
0 s
0 250
s
1
0 s +250
s+ 250
s (s +250)
[ sI A ] =
1
s
0
1
s( s+250)
1
(s +250)
1
s(s+ 250)
s
s(s+ 250)
Partial faction,
1
A
B
= +
s (s +250) s s+250
1= A( s+ 250)+ Bs
Let,
s = -250
1 = -250B
s=0
1 = 250A
B = -1/250
{(sI A ) }=
1
F=e At =
e At B=
1
0
][ ]
BdT =
15 dT 15 e250 T dT
0
50 e250T dT
0
[[ ]]
[
1
(1e250 T ) 0
250
50
e250 T
1 1 250T
e
5 5
50 e250T
1
(1e250T )
250
0
e250T
[
[
1
( 1e250T )
250
e250T
1
(1e250T )
5
50 e250 T
At
A = 1/250
1
1 250 T
T+
e
5
1250
1
e250T
5
T
0
T
0
[
[
1
1 250 T
1
T+
e
1250
1250
5
1 250T 1
e
+
5
5
1
1
250T
T+
(e
1)
5
1250
=G
1
250T
(e
+1)
5
][
X 1 ; n+ 1 =
X 2 ; n+ 1
Q2d)
1
0
[ ][
][
][ ] [ ]
1 ( t ) = 0
1
x1 ( t ) + 0 u
2 (t) 0 250 x 2 ( t ) 50
[ y ( t ) ]=[ 1 0 ]
1
1
1 250T
T+
(e250T 1)
(e
1) X 1 ; n
1250
250
+ 5
Un
1
250T
X2; n
250T
(e
+1)
e
5
[ ]
x1 ( t )
x2 ( t )
State control M = [ B : AB ]
][ ]
1
0
AB= 0
0 250 50
[ ]
125
25
50
M= 0
50 12500
Det = -2500
0
For stability,
s ( s+ 250 ) , s=0 , s=250
Q2 e)
Q2 f)