Tutorial6 Delay Aware Controller Design Sol
Tutorial6 Delay Aware Controller Design Sol
Change in the
Speed, Position of a
Vehicle
−𝑏 1
𝑥ሶ = 𝑣ሶ = 𝑣 + 𝑢
𝑚 𝑚
𝑦= 1 𝑣
−𝑏 1
𝐴= ;𝐵 = ; 𝐶 = 1 ; 𝐷 = [0]
𝑚 𝑚
DC Motor Speed: System Modelling
R armature resistance
L armature inductance
K electromotive force constant
J moment of inertia
b friction co-efficient
i current
V voltage is the input and
Ɵሶ rotational speed of the shaft is the output
𝐽𝜃ሷ + 𝑏𝜃ሶ = 𝐾𝑖
𝑑𝑖
𝐿 + 𝑅𝑖 = 𝑉 − 𝐾 𝜃ሶ
𝑑𝑡
Q1. Model the State-space equations for the DC Motor Speed Control System?
DC Motor Speed: System Modelling
State space model format:
𝑥ሶ = 𝐴𝑥 + 𝐵𝑢
𝑦 = 𝐶𝑥 + 𝐷𝑢
Q1. Model the State-space equations for the DC Motor Speed Control System
V voltage is the input and
Sol. Ɵሶ rotational speed of the shaft is the output
𝐽𝜃ሷ + 𝑏𝜃ሶ = 𝐾𝑖
𝑏ሶ 𝐾 𝑏 𝐾
⇒ 𝜃 = − 𝜃ሶ + 𝑖
ሷ 𝑑 𝜃ሶ − 0
𝐽 𝐽 𝐽 𝐽 𝜃ሶ
= + 1 𝑉
𝑑𝑖 𝑑𝑡 𝑖 𝐾 𝑅 𝑖
𝐿 + 𝑅𝑖 = 𝑉 − 𝐾 𝜃ሶ − − 𝐿
𝑑𝑡 𝐿 𝐿
𝑑𝑖 −𝐾 𝑅 1 𝜃ሶ
⇒ = 𝜃ሶ − 𝑖 + 𝑣 𝑦 = 10
𝑑𝑡 𝐿 𝐿 𝐿 𝑖
DC Motor Speed: System Modelling
V voltage is the input and
Ɵሶ rotational speed of the shaft is the output
𝑏 𝐾
𝑑 𝜃ሶ − 0
𝐽 𝐽 𝜃ሶ
= + 1 𝑉
𝑑𝑡 𝑖 𝐾 𝑅 𝑖
− − 𝐿
𝐿 𝐿
𝜃ሶ
𝑦 = 10
𝑖
Q2. Consider the following values of the constants and comment on the stability of the continuous-time system
J = 0.01;
b = 0.1;
K = 0.01;
R = 1;
L = 0.5;
DC Motor Speed: System Modelling
V voltage is the input and
Ɵሶ rotational speed of the shaft is the output
𝑏 𝐾
𝑑 𝜃ሶ − 0
𝐽 𝐽 𝜃ሶ
= + 1 𝑉
𝑑𝑡 𝑖 𝐾 𝑅 𝑖
− − 𝐿
𝐿 𝐿
𝜃ሶ
𝑦 = 10
𝑖
Q2. Consider the following values of the constants and comment on the stability of the continuous-time system
J = 0.01; b = 0.1; K = 0.01; R = 1; L = 0.5;
Sol. Real part of the poles must on left-side for the system to be stable. Poles are nothing but the eigen values of the
system matrix A. Using the above constants, we get,
𝑏 𝐾
−
𝐽 𝐽 −10 1
𝐴= =
𝐾 𝑅 −0.02 −2
− −
𝐿 𝐿
And, Eigen values of A are -10, -2. Therefore, the system is stable.
DC Motor Speed: System Modelling
V voltage is the input and
Ɵሶ rotational speed of the shaft is the output
𝑏 𝐾
𝑑 𝜃ሶ − 0
𝐽 𝐽 𝜃ሶ
= + 1 𝑉
𝑑𝑡 𝑖 𝐾 𝑅 𝑖
− − 𝐿
𝐿 𝐿
𝜃ሶ
𝑦 = 10
𝑖
Q3. Consider the following values of the constants and implement a pole-placement based controller using
Ackerman’s Method [poles at -12].
DC Motor Speed: System Modelling
Q3. Consider the following values of the constants and implement a pole-placement based controller using
Ackerman’s Method [poles at -12].
Sol.
2 2
𝐴 ℎ
𝐴𝑑 = 𝑒 𝐴×ℎ = 𝐼 + 𝐴ℎ + + … ≈ 𝐼 + 𝐴ℎ
2!
ℎ ℎ 2𝑠2
𝐴
𝐵𝑑 = න 𝑒 𝐴×𝑠 𝐵 𝑑𝑠 = න 𝐵(𝐼 + 𝐴𝑠 + + … ) 𝑑𝑠 ≈ 𝐵ℎ
0 0 2!
Sol.
2 2
𝐴 ℎ
𝐴𝑑 = 𝑒 𝐴×ℎ = 𝐼 + 𝐴ℎ + + … ≈ 𝐼 + 𝐴ℎ
2!
ℎ ℎ 2𝑠2
𝐴
𝐵𝑑 = න 𝑒 𝐴×𝑠 𝐵 𝑑𝑠 = න 𝐵(𝐼 + 𝐴𝑠 + + … ) 𝑑𝑠 ≈ 𝐵ℎ
0 0 2!
−5 0.6 0
𝜙= Γ=
−0.012 −0.2 1.2
DC Motor Speed: System Modelling
Q5. Implement a pole-placement based controller using Ackerman’s Method [poles at 0.2]
Sol.
Discrete-time system matrices:
−5 0.6 0
𝜙= Γ=
−0.012 −0.2 1.2
DC Motor Speed: System Modelling
Q5. Implement a pole-placement based controller using Ackerman’s Method [poles at 0.2]
Sol.
Discrete-time system matrices:
−5 0.6 0
𝜙= Γ=
−0.012 −0.2 1.2
Step 1: Controllability check
𝛾 = Γ 𝜙Γ 𝜙 2 Γ … 𝜙 𝑛−1 Γ
DC Motor Speed: System Modelling
Q5. Implement a pole-placement based controller using Ackerman’s Method [poles at 0.2]
Sol.
Discrete-time system matrices:
−5 0.6 0
𝜙= Γ=
−0.012 −0.2 1.2
Step 1: Controllability check
𝛾 = Γ 𝜙Γ 𝜙 2 Γ … 𝜙 𝑛−1 Γ
0 0.72
= Γ 𝜙Γ =
1.2 −0.24
Rank(𝛾) = 2 The discrete system is controllable
DC Motor Speed: System Modelling
Q5. Implement a pole-placement based controller using Ackerman’s Method [poles at 0.2]
Sol.
Discrete-time system matrices:
−5 0.6 0
𝜙= Γ=
−0.012 −0.2 1.2
Step 1: Controllability check
𝛾 = Γ 𝜙Γ 𝜙 2 Γ … 𝜙 𝑛−1 Γ
0 0.72
= Γ 𝜙Γ =
1.2 −0.24
Rank(𝛾) = 2 The discrete system is controllable
Step 2: Apply Ackermann’s formula
𝐾 = − 0 0 0 … 1 𝛾 −1 𝐻(𝜙)
DC Motor Speed: System Modelling
Q5. Implement a pole-placement based controller using Ackerman’s Method [poles at 0.2]
Sol.
Discrete-time system matrices:
−5 0.6 0
𝜙= Γ=
−0.012 −0.2 1.2
Step 1: Controllability check
𝛾 = Γ 𝜙Γ 𝜙 2 Γ … 𝜙 𝑛−1 Γ
0 0.72
= Γ 𝜙Γ =
1.2 −0.24
Rank(𝛾) = 2 The discrete system is controllable
Step 2: Apply Ackermann’s formula
𝐾 = − 0 0 0 … 1 𝛾 −1 𝐻(𝜙)
𝐻 𝜙 = 𝜙 − 𝛼1 𝐼 𝜙 − 𝛼2 𝐼 … (𝜙 − 𝛼𝑛 𝐼) where 𝛼1 , 𝛼2 , … , 𝛼𝑛 are closed loop poles
DC Motor Speed: System Modelling
Q5. Implement a pole-placement based controller using Ackerman’s Method [poles at 0.2]
Sol.
Discrete-time system matrices:
−5 0.6 0
𝜙= Γ=
−0.012 −0.2 1.2
Step 1: Controllability check
𝛾 = Γ 𝜙Γ 𝜙 2 Γ … 𝜙 𝑛−1 Γ
0 0.72
= Γ 𝜙Γ =
1.2 −0.24
Rank(𝛾) = 2 The discrete system is controllable
Step 2: Apply Ackermann’s formula
𝐾 = − 0 0 0 … 1 𝛾 −1 𝐻(𝜙)
𝐻 𝜙 = 𝜙 − 𝛼1 𝐼 𝜙 − 𝛼2 𝐼 … (𝜙 − 𝛼𝑛 𝐼) where 𝛼1 , 𝛼2 , … , 𝛼𝑛 are closed loop poles
27.0328 -3.36
𝐻 𝜙 = 𝜙 − 0.2𝐼 𝜙 − 0.2𝐼 =
0.0672 0.1528
0.2778 0.8333
𝛾 −1 =
1.3889 0
𝐾 = [37.5456 − 4.6667]
DC Motor Speed: System Modelling
Q6. Derive a feed forward Gain
Sol.
DC Motor Speed: System Modelling
Q6. Derive a feed forward Gain
Sol.
1
𝐹 = 𝐶 𝐼 −𝜙−𝜏𝐾 −1𝜏 (note: C=[1 0])
DC Motor Speed: System Modelling
Q6. Derive a feed forward Gain
Sol.
1
𝐹 = 𝐶 𝐼 −𝜙−𝜏𝐾 −1𝜏 (note: C=[1 0])
𝐹 = 19.1311
DC Motor Speed: System Modelling
Q6. Derive a feed forward Gain
Sol.
1
𝐹 = 𝐶 𝐼 −𝜙−𝜏𝐾 −1𝜏 (note: C=[1 0])
𝐹 = 19.1311
Q7. Consider a delay of 0.3 sec and derive the state-space model of the delayed system
Sol.
DC Motor Speed: System Modelling
Q7. Consider a delay of 0.3 sec and derive the state-space model of the delayed system
Sol.
DC Motor Speed: System Modelling
Q7. Consider a delay of 0.3 sec and derive the state-space model of the delayed system
Sol.
𝜙 ≈ 𝐼 + 𝐴ℎ Γ1 𝐷𝑐 = 𝐷𝑐 𝐵 Γ0 = ℎ − 𝐷𝑐 𝐵
DC Motor Speed: System Modelling
Q7. Consider a delay of 0.3 sec and derive the state-space model of the delayed system
Sol.
𝜙 ≈ 𝐼 + 𝐴ℎ Γ1 𝐷𝑐 = 𝐷𝑐 𝐵 Γ0 = ℎ − 𝐷𝑐 𝐵
−5 0.6 0 0
𝜙𝑎𝑢𝑔 = −0.012 −0.2 0.6 Γ𝑎𝑢𝑔 = 0.6 𝐶𝑎𝑣𝑔 = [1 0 0]
0 0 0 1
DC Motor Speed: System Modelling
Q7. Consider a delay of 0.3 sec and derive the state-space model of the delayed system
Sol.
𝜙 ≈ 𝐼 + 𝐴ℎ Γ1 𝐷𝑐 = 𝐷𝑐 𝐵 Γ0 = ℎ − 𝐷𝑐 𝐵
−5 0.6 0 0
𝜙𝑎𝑢𝑔 = −0.012 −0.2 0.6 Γ𝑎𝑢𝑔 = 0.6 𝐶𝑎𝑣𝑔 = [1 0 0]
0 0 0 1
Q8. Derive a pole-placement based controller gain for the delayed system with poles at 0.2.
Follow the same steps and formula as discrete controller design only instead of 𝜙 and Γ, use 𝜙𝑎𝑢𝑔 and Γ𝑎𝑢𝑔 . Also, note
that, now the system’s dimension has increased by 1.
DC Motor Speed: System Modelling
Q7. Consider a delay of 0.3 sec and derive the state-space model of the delayed system
Sol.
𝜙 ≈ 𝐼 + 𝐴ℎ Γ1 𝐷𝑐 = 𝐷𝑐 𝐵 Γ0 = ℎ − 𝐷𝑐 𝐵
−5 0.6 0 0
𝜙𝑎𝑢𝑔 = −0.012 −0.2 0.6 Γ𝑎𝑢𝑔 = 0.6 𝐶𝑎𝑣𝑔 = [1 0 0]
0 0 0 1
Q8. Derive a pole-placement based controller gain for the delayed system with poles at 0.2.
Follow the same steps and formula as discrete controller design only instead of 𝜙 and Γ, use 𝜙𝑎𝑢𝑔 and Γ𝑎𝑢𝑔 . Also, note
that, now the system’s dimension has increased by 1.
Sol. Controllability matrix 𝛾𝑎𝑢𝑔 = [0 0.3600 -1.5120; 0.6000 0.4800 -0.1003; 1.0000 0 0]
−1 𝐻 𝜙
𝐾 = − 0 0 1 𝛾𝑎𝑢𝑔 𝑎𝑢𝑔 = [18.7800 -2.4184 0.4510]