Professional Documents
Culture Documents
Control Systems
Control System Design Procedure
1. Differential equation
2. Transfer function
3. State-space
3. Steady-state error
Control System Analysis: Example 1
▪ When the fourth-floor button is pressed on the first floor, the elevator rises
to the fourth floor with a speed and floor-leveling accuracy designed for
passenger comfort.
▪ The push of the fourth-floor button is an input that represents our desired
output, shown as a step function in Figure above. The performance of the
elevator can be seen from the elevator response curve in the figure.
Control System Analysis: Example 2
Antenna Positioner: https://www.youtube.com/watch?v=JIluQV0NzOY
Figure: Antenna azimuth position control system
Figure: Antenna azimuth position control system
Figure: Response of a position control system, showing effect of high
and low controller gain on the output response
The Laplace Transform and
Transfer Function
What is Laplace Transform?
Laplace Transform Definition: F ( s) =
0−
f (t )e − st dt
dy dy
= a zero initial condition = a with zero initial condition
dt dt
t Taking Laplace Transform
y (t ) = adt = at t0 = at
dy
L = L[ a ]
0 dt
a
sY ( s ) =
s
a
Y (s) = 2
s
Taking Inverse Laplace Transform
a
L−1[Y ( s )] = L−1 2
s
y (t ) = at
Example of Laplace Transform technique?
F (s) =
0
0
f (t )e − st dt = Ae − at e − st dt = A e − ( s + a )t dt
0
A − ( s + a )t A
F ( s ) = − e =
s + a 0 s + a
Example of Laplace Transform technique?
By linearity theorem
𝐿[𝑘𝑓(𝑡)] = 𝑘𝐹(𝑠)
Therefore:
𝐴
𝑓(𝑡) = 𝐴𝑒 −𝑎𝑡 𝑢(𝑡) → 𝐹(𝑠) =
𝑠+𝑎
What is Transfer Function Model?
dc(t ) C ( s) 1
+ 2c(t ) = r (t ) =
dt R( s ) s + 2
dc(t )
+ 2c(t ) = r (t )
dt
sC ( s ) + 2C ( s ) = R ( s )
C (s) 1
=
R(s) s + 2
Converting differential equation to transfer function:
s 3C ( s) + 3s 2C ( s) + 7 sC ( s) + 5C ( s) = s 2 R( s) + 4sR( s) + 3R( s)
C ( s )(s 3 + 3s 2 + 7 s + 5) = R( s)(s 2 + 4s + 3)
C ( s) s 2 + 4s + 3
= 3
R( s) s + 3s 2 + 7 s + 5
Converting transfer function to differential equation:
2s + 1
C (s)
G(s) = 2 =
s + 6s + 2 R( s)
C ( s)[s 2 + 6s + 2] = R( s)[2s + 1]
C ( s) s 2 + C ( s)6s + 2C ( s) = R( s)2s + R( s )
d 2 c(t ) dc(t ) dr (t )
+6 + 2c(t ) = 2 + r (t )
dt 2 dt dt
What is State Space Model?
What is State Space Model?
What is State Space Model?
What is State Space Model?
1. System variables: Select a subset of all possible system variables as states and
determine inputs & outputs.
2. State differential equations: Write n simultaneous, first-order DEs of the
states in terms of the states and inputs for an nth-order system.
3. Initial conditions: If we know the initial conditions of all the states at t0 as well
as the inputs for t ≥ t0, we can solve the simultaneous DEs for the states for
t ≥ t0.
4. Output-state relation equations: Write linear relations of the outputs in terms
of the states and inputs for t ≥ t0.
5. State space (SS) representation: The state and output equations represent a
viable representation of the system.
What is State Space Model?
▪ Inputs & outputs: Single-input, single-output (SISO) systems are a unique case
of general multiple-input, multiple-output (MIMO) systems. The output and
input of a SISO system are represented by scalar quantities. The outputs and
inputs of a MIMO system are represented by vector quantities.
What is State Space Model?
What is State Space Model?
Transfer Function of Translational
Mechanical System
Friction Models for Translational Systems
Viscous Friction
Static Friction
Coulomb Friction
Example 1:
K x(t)
f(t)
fv1
M
fv2
Modeling Steps:
K x(t)
x(t )
kx(t )
f(t)
f v1 x (t )
fv1 Mx(t ) M f (t )
M
fv2
f v 2 x (t )
Step 3: The frequency response representation
x(t ) X (s )
kx(t )
kX (s )
f v1 x (t )
f (t ) f v1 sX ( s )
Mx(t ) M M F (s )
2
Ms X ( s )
f v 2 x (t ) f v 2 sX ( s )
Step 3: The frequency response representation
X (s )
kX (s )
f v1sX ( s )
M F (s )
Ms 2 X ( s )
f v 2 sX ( s )
Output Input
Ms 2 X ( s ) + ( f v1+ f v 2 ) sX ( s ) + kX ( s ) = F ( s )
Step 4: Transfer Function
Ms 2 X ( s ) + ( f v1+ f v 2 ) sX ( s ) + kX ( s ) = F ( s )
If the position of the mass is the interested output: x(t ) → X ( s )
X ( s) 1
G( s) = =
F ( s) Ms 2 + ( f v1 + f v 2 ) s + k
Ms 2 X ( s ) + ( f v1+ f v 2 ) sX ( s ) + kX ( s ) = F ( s )
X ( s) s 1
G( s) = =
F ( s) 1
Ms + ( f v1 + f v 2 ) + k
s
Step 4: Transfer Function
Ms 2 X ( s ) + ( f v1+ f v 2 ) sX ( s ) + kX ( s ) = F ( s )
X (s)s 2 1
G (s) = =
F (s) 1 1
M + ( f v1 + f v 2 ) + k 2
s s
Example 2:
Modeling Steps:
Position, velocity or
Input variable: f (t ) Output variable:
acceleration of the mass
Step 2,3 and 4: The free body diagram, the frequency response
representation and the transfer function equation – Mass M1
x1 (t )
f v3 X 1 ( s) s f v3 X 3 ( s) s
M 1 X 1 (s)s 2
k 2 X 1 (s)
k1 X 1 ( s ) M1
f v1 X 1 ( s ) s k 2 X 2 (s)
(M s
1
2
)
+ f v1s + f v3 s + k1 + k 2 X 1 ( s ) − f v3 X 3 ( s ) s − k 2 X 2 ( s ) = 0
Step 2,3 and 4: The free body diagram, the frequency response
representation and the transfer function equation – Mass M2
x2 (t )
f v 4 X 2 (s)s
f v 4 X 3 (s)s
M 2 X 2 (s) s 2 F (s )
M2
k 2 X 2 (s) k 2 X 1 (s)
f v 2 X 2 (s)s
(M 2 s 2
)
+ f v 2 s + f v 4 s + k 2 X 2 ( s ) − f v4 X 3 ( s ) s − k 2 X 1 ( s ) = F ( s )
Step 2,3 and 4: The free body diagram, the frequency response
representation and the transfer function equation – Mass M3
x3 (t )
f v3 X 3 ( s) s f v 4 X 3 (s)s
M 3 X 3 ( s)s 2 f v3 X 1 ( s) s
M3 f v 4 X 2 (s)s
(M s
3
2
)
+ f v3 s + f v 4 s X 3 ( s) − f v3 X 1 ( s) s − f v 4 X 2 ( s) s = 0
Step 2,3 and 4: The free body diagram, the frequency response
representation and the transfer function equation – Mass M1,
M2 and M3
(K 1 + K 2 + f v3 s + f v1s + M 1s 2 ) X 1 ( s) (− K 2 )X 2 ( s) (− f v3 s ) X 3 (s) = 0
(− K 2 ) X 1 ( s) (K 2 + f v 2 s + f v 4 s + M 2 s 2 )X 2 ( s) (− f v4 s ) X 3 ( s) = F (s )
(− f v3 s ) X 1 ( s) (− f v4 s ) X 2 (s) (f v3 s + f v4 s + M 3s 2 ) X 3 (s) = 0
Step 4: Transfer Function
s 2 M 1 + s ( f v1 + f v3 ) + (k1 + k 2 ) − k2 − sf v3 X1 0
− k2 s 2 M 2 + s( f v 2 + f v 4 ) + k 2 − sf v 4 X 2 = F
− sf v3 − sf v 4 s 2 M 3 + s ( f v3 + f v 4 ) X 3 0
s 2 + 2s + 2 −1 − s X1 0
−1 s + 2s + 1
2
− s X 2 = F
−s −s s 2 + 2 s X 3 0
Step 4: Transfer Function
s 2 + 2s + 2 −1 − s X1 0
− 1 s 2
+ 2 s + 1 − s X 2 = F
−s −s s 2 + 2 s X 3 0
If we are interested to control the position of the mass M2, then solve for X2.
Cramer’s rule:
s 2 + 2s + 2 0 −s
−1 F −s
−s 0 s 2 + 2s
X2 =
s 2 + 2s + 2 −1 −s
−1 s 2 + 2s + 1 −s
−s −s s 2 + 2s
Step 4: Transfer Function
Using MATLAB
s 2 + 2s + 2 0 −s
−1 F −s
−s 0 s 2 + 2s F (4 s 3 + 16s 2 + 20s + 16)
X2 = =
s + 2s + 2
2
−1 −s s 5 + 6 s 4 + 13s 3 + 16s 2 + 8s + 2
−1 s 2 + 2s + 1 −s
−s −s s 2 + 2s
X 2 ( s) 4s 3 + 16s 2 + 20s + 16
G( s) = = 5
F ( s) s + 6s 4 + 13s 3 + 16s 2 + 8s + 2
Example 3:
Transfer Function of Rotational
Mechanical Systems
without Gearing
Figure: Torque-angular velocity, torque-angular displacement, and impedance rotational
relationships for springs, viscous dampers, and inertia
Example 1:
Modeling Steps:
k 2 1
Terms related to θ1
J 11
K1
Step 2: The free body diagram J2
Step 3: The frequency response representation
K1 2
Terms related to θ2
J 22
K 2
Step 2: The free body diagram J3
Step 3: The frequency response representation
3
Terms related to θ3
J 33
D22
J3 J 33 + D23 + D33 − D22 = 0
D23
D33
Step 4: Transfer Function
Inertial 2: s 2 J 2 2 ( s ) + sD 2 2 ( s ) + K 2 ( s ) − sD 2 3 ( s ) − K1 ( s ) = 0
Inertial 3: s J 3 3 ( s ) + sD 2 3 ( s ) + sD3 3 ( s ) − sD 2 2 ( s ) = 0
2
s 2 J1 + sD1 + K −K 0 1 T
−K s 2 J 2 + sD2 + K − sD2 2 = 0
0 − sD2 s 2 J 3 + s ( D2 + D3 ) 3 0
Step 4: Transfer Function
s 2 J1 + sD1 + K −K 0 1 T
−K s J 2 + sD2 + K − sD2 2 = 0
2
0 − sD2 s 2 J 3 + s ( D2 + D3 ) 3 0
If we are interested to control the position of the mass J3, then solve for θ3.
Cramer’s rule:
s 2 J 1 + sD1 + K −K T
−K s 2 J 2 + sD2 + K 0
0 − sD2 0
3 =
s 2 J1 + sD1 + K −K 0
−K s 2 J 2 + sD2 + K − sD2
0 − sD2 s 2 J 3 + s ( D2 + D3 )
Step 4: Transfer Function
Using MATLAB
s 2 J1 + sD1 + K −K T
−K s 2 J 2 + sD2 + K 0
0 − sD2 0
3 (s) =
s 2 J1 + sD1 + K −K 0
−K s 2 J 2 + sD2 + K − sD2
0 − sD2 s 2 J 3 + s ( D2 + D3 )
Example 2:
Modeling Steps:
Input variable:
Step 2: The free body diagram of J
Step 3: The differential equation of J
2
J2
N2
T1
N1 J
D2
K 2
N2
J2 + D2 + K 2 = T1
N1
N2
( Js 2 + Ds + K ) 2 = T1
N1
Step 4: Transfer Function – θ2(t) as output
N2
Inertial J: J2 + D2 + K 2 = T1
N1
By Laplace Transform
N2
Inertial J: s 2 J 2 ( s ) + sD 2 ( s ) + K 2 ( s ) = T1
N1
2 ( s) N2
=
T1 ( s ) N1 ( Js 2 + Ds + K )
Step 4: Transfer Function – θ1(t) as output
N2
Inertial J: J 2 + D 2 + K 2 = T1
N1
N1
Gear system
relationship
2 = 1
N2
N2
( s 2 J + sD + K ) 2 ( s ) = T1 ( s 2 J + sD + K )1 ( s )
N1 N
= T1 2
N1 N2 N1
1 ( s ) 1
= 2 2 2
T1 ( s ) N1 N1 N1
(
N Js 2
+
N
Ds +
N K)
2 2 2
Step 4: Transfer Function – θ1(t) as output
1 ( s ) 1
= 2 2 2 Gearing system causes
T1 ( s ) N1 N1 N1
(
N Js 2
+
N
Ds +
N K) impedance transfer
2 2 2
2
N Destination
K Destination = K Source
N Source
2
N1
K S1 = KS2
2
N
Step 4: Transfer Function – θ1(t) as output
1 ( s ) 1
= 2 2 2
T1 ( s ) N1 N1 N1
(
N Js 2
+
N
Ds +
N K)
2 2 2
Step 4: Transfer Function – θ1(t) as output
1 ( s ) 1
= 2 2 2
T1 ( s ) N1 N1 N1
(
N Js 2
+
N
Ds +
N K)
2 2 2
Example 2:
2 (s)
Find Transfer Function?
T1 ( s )
Shaft 1 - Source
Shaft 2 - Destination
2
N2
De = D2 + D1 N2 because destination
N1 is shaft 2
2
N2
J e = J 2 + J1 N2 because destination
N1 is shaft 2
There is no rotational
spring at shaft 1
Ke = K2
2
J e2
N2
T1
N1
Je
De2
K e 2
N2
J e 2 + De 2 + K e 2 = T1
N1
Transfer Function of Passive
Electrical Networks
What is the meaning of single loop and multi-loop electrical network?
Input:
Supply voltage v(t)
Output:
Capacitor voltage vc(t)
Step 2: Convert into frequency domain
Table Conversion
between Time
Domain and
Frequency Domain
Step 2: Convert into frequency domain
1
V ( s) = ( Ls + R + ) I ( s)
Cs
Step 4: Obtain transfer function between output and input
Steps:
1. Decide input and output
2. Convert to frequency domain
3. Obtain relationship between
voltage and current (Ohm’s
law)
4. Obtain transfer function
between output and input
Step 1: Decide input and output
Input v(t )
Output i2 (t )
Step 2: Convert to Frequency domain
Step 3: Relationship between voltage and current
Loop 1:
R1 I1 ( s ) + LsI 1 ( s ) − LsI 2 ( s ) = V ( s )
1
R2 I 2 ( s ) + I 2 ( s) + LsI 2 ( s) − LsI1 ( s) = 0
Cs
R1 + Ls − Ls I ( s ) V ( s )
1
=
+ Ls I 2 ( s ) 0
1
− Ls R2 +
Cs
Step 4: Obtain transfer function
Let R1 = 1; R2 = 1; L = 1; C = 1
1 + s − s I ( s ) V ( s )
s 2 + s + 1 1 =
−s I 2 ( s) 0
s
Step 4: Obtain transfer function
V (s) −s
1 + s V (s)
s2 + s +1
0 −s 0
I1 ( s ) =
s I 2 (s) =
1+ s −s 1+ s −s
s2 + s +1 s + s +1
2
−s −s
s s
Step 4: Obtain transfer function
1 + s V (s)
−s 0 V (s)s
I 2 (s) = =
1+ s −s (1 + s )(s 2 + s + 1)
s2 + s +1 + s2
−s s
s
s 2V ( s )
I 2 (s) =
s 3 + ( s + 1)(s 2 + s + 1)
Step 4: Obtain transfer function
s 2V ( s)
I 2 ( s) =
s 3 + ( s + 1)(s 2 + s + 1)
s 2V ( s )
I 2 ( s ) s 3 + ( s + 1)(s 2 + s + 1) s2
G ( s) = = = 3
V ( s) V (s) s + ( s + 1)(s 2 + s + 1)
Creating transfer function of multi-loop electrical network
Steps:
1. Decide input and output
2. Convert to frequency domain
3. Obtain relationship between
voltage and current (Ohm’s
law)
4. Obtain transfer function
between output and input
Step 1: Decide input and output
Input:
Supply voltage V(s)
Output:
Capacitor voltage Vc(s)
Step 2: Convert into frequency domain
Step 3: Obtain relationship between voltage and current (Ohm’s Law)
Loop 1:
(2 + 2 s ) I1 − (1 + 2 s ) I 2 − (1) I 3 = V ( s )
Method
1. Sum impedances around
loop
2. Minus impedances share
with other loops
Step 3: Obtain relationship between voltage and current
(Ohm’s Law)
Loop 2:
− (1 + 2 s ) I1 + (1 + 9 s ) I 2 − (4 s ) I 3 = 0
Method
1. Sum impedances around
loop
2. Minus impedances share
with other loops
Step 3: Obtain relationship between voltage and current
(Ohm’s Law)
Loop 3:
1
− (1) I1 − (4s ) I 2 + (4s + + 1) I 3 = 0
s
Method
1. Sum impedances around
loop
2. Minus impedances share
with other loops
Step 3: Obtain relationship between voltage and current
(Ohm’s Law)
(2 + 2 s ) I1 − (1 + 2s ) I 2 − (1) I 3 = V ( s )
−(1 + 2 s ) I1 + (1 + 9 s ) I 2 − (4 s ) I 3 = 0
1
− (1) I1 − (4s ) I 2 + (4s + + 1) I 3 = 0
s
(2 s + 2) − (2 s + 1) −1 I1 V ( s )
− (2s + 1) (9 s + 1) − 4s I = 0
2
−1 (4s + s + 1) I 3 0
2
− 4s
s
Step 4: Obtain transfer function between output and input
Input = V ( s ) 1
Vc ( s ) = I 3 ( s )
Output = Vc ( s) s
(2 s + 2) − (2 s + 1) −1 I1 V ( s )
− (2s + 1) (9 s + 1) − 4s I = 0
2
−1 (4s + s + 1) I 3 0
2
− 4s
s
Step 4: Obtain transfer function between output and input
(2 s + 2) − (2 s + 1) −1 I1 V ( s )
− (2s + 1) (9 s + 1) − 4s I = 0
2
−1 (4s 2 + s + 1) I 3 0
− 4s
s
(2 s + 2) − (2 s + 1) V ( s )
− (2 s + 1) (9 s + 1) 0
−1 − 4s 0
I s (s) =
(2 s + 2) − (2 s + 1) −1
− (2 s + 1) (9 s + 1) − 4s
(4 s + s + 1)
2
−1 − 4s
s
110