Assignment 4 Alcisto Instrumentation and Control
Assignment 4 Alcisto Instrumentation and Control
I. I NTRODUCTION Mesh 2:
di2 (t)
v1 (t) − L2 − u2 (t) − R1 i2 (t) = 0
dt
In this paper, we create a state space model for the di2 (t)
given system shown in Figure 1. We define the transfer L2 = v1 (t) − u2 (t) − R1 i2 (t) (2)
dt
functions that relates the output y(t) to the input u(t) di2 (t) R1 1 1
from the state space model. We also represent the state = − i2 (t) + v1 (t) − u2 (t)
dt L2 L2 L2
space model into its phase variable.
Current across capacitor 1
dv1 (t)
i3 (t) = C1 ; where i3 (t) = i1 (t) − i2 (t)
dt
dv1 (t)
i1 (t) − i2 (t) = C1 (3)
dt
dv1 (t) 1 1
= i1 (t) − i2 (t)
dt C1 C1
Current across capacitor 2
dv2 (t)
i1 (t) = C2
dt
(4)
Fig. 1: Electrical Circuit for the Given System dv2 (t) 1
= i1 (t)
dt C2
The system consists of a voltage inputs, u1 (t) Then, we set the ouput equations:
and u2 (t), a resistor, R1 , inductors, L1 and L2 , and di1 (t) di1 (t)
capacitors, C1 and C2 . The current and voltages across y(t)L1 = L1 ; where = eqn. 1
dt dt
each elements are shown in Figure 1. The goal is to get y(t)L1 = −v1 (t) − v2 (t) + u1 (t) (5)
the output y(t) of all the circuit elements. The values
di2 (t) di2 (t)
of each elements are R1 = 10Ω, L1 , L2 = 2H, C1 , y(t)L2 = L2 ; where = eqn. 2
C2 = 10µF , V1 , V2 = 10V . dt dt
y(t)L2 = −R1 i2 (t) + v1 (t) − u2 (t) (6)
y(t)C1 = v1 (t) (7)
We apply mesh analysis to obtain the first-order
differential equations: y(t)C2 = v2 (t) (8)
y(t)R1 = R1 i2 (t) (9)
Mesh 1: II. S TATE S PACE M ODEL
In this paper, we define the state variables
di1 (t) di1 (t)
u1 (t) − L1 − v1 (t) − v2 (t) = 0 x1 = i1 (t) ẋ1 =
dt dt
di1 (t) di2 (t)
L1 = u1 (t) − v1 (t) − v2 (t) (1) x2 = i2 (t) ẋ2 =
dt dt
di1 (t) 1 1 1 dv1 (t)
= − v1 (t) − v2 (t) + u1 (t) x3 = v1 (t) ẋ3 = (10)
dt L1 L1 L1 dt
dv2 (t)
x4 = v2 (t) ẋ4 =
dt
EE-PC 4117: INSTRUMENTATION AND CONTROL
− L11 − L11
1
0 0
L1 0
0 −R 1
L2
1
L2 0 1
; B = 0 − L2
A=
1 1
C1 − C1 0 0 0 0
1
C2 0 0 0 0 0
0 0 −1 −1 1 0
0
−R1 1 0
0 −1
0
C= 0 1 0 ; D= 0 0
0 0 0 1 0 0
0 R1 0 0 0 0
(21)
We obtain a state space model with numerical values A. Solving the Inverse of (sI - A)
by substituting the values of each circuit element in The inverse of (sI - A) is defined by
Section I. The state space model is defined as iT
−1 1 h
−1
(sI − A) = adjoint (sI − A) .
ẋ1 0 0 −0.5 −0.5
det (sI − A)
ẋ2 0
= 8 −5 0.5 0 (26)
ẋ3 10 −108 0 0
ẋ4 108 0 0 0 Initially, we solve for the value of (sI - A) and get
x1 (t) 0.5 0 s 0 0 0 0 0 −0.5 −0.5
x2 (t) 0 −0.5 u1 (t) 0 s 0 0 0 −5 0.5 0
· + · (sI − A) = 0 0 s 0 − 108 −108
x3 (t) 0 0 u2 (t) 0 0
x4 (t) 0 0 0 0 0 s 108 0 0 0
x1 (t) s 0 0.5 0.5
x2 (t) 0 s + 5 −0.5 0
y(t)L1 = 0 0 −1 −1 · = −108 108
(27)
x3 (t) s 0
x4 (t) −108 0 0 s
u1 (t) Next, we calculate the determinant of (sI - A) and acquire
+ 1 0 ·
u2 (t)
s + 5 −0.5 0
x1 (t) det(sI − A) = (s) · det 108 s 0
x2 (t)
0 0 s
y(t)L2 = 0 −10 1 0 · x3 (t)
x4 (t) 0 −0.5 0
− (0) · det −108 s 0
u1 (t) −10 8
0 s
+ 0 −1 ·
u2 (t)
0 s+5 0
x1 (t) + (0.5) · det −108 108 0
x2 (t) u1 (t) −108 0 s
y(t)C1 = 0 0 1 0 · x3 (t)
+ 0 0 ·
u2 (t)
x4 (t) 0 s + 5 −0.5
− (0.5) · det −108 108 s
x1 (t) −108 0 0
x2 (t) u1 (t)
y(t)C2 = 0 0 0 1 ·
x3 (t)
+ 0 0 ·
u2 (t) det(sI − A) = s4 + 5s3 + 1.5 × 108 s2 + 5 × 108 s + 2.5 × 1015
x4 (t) (28)
x1 (t)
x2 (t) u1 (t)
y(t)R1 = 0 10 0 0 ·
+ 0 0 ·
x3 (t) u2 (t)
x4 (t)
(23)
III. T RANSFER F UNCTION
The transfer function G(s) is a ratio of output Y(s)
and input U(s) of the system. We can derive the transfer
function from the state space equation (20). Initially, we
apply Laplace transform to the state space equation (20)
and set the initial condition for system equal to zero.
The state space equation in phase domain is defined as
sX(s) = AX(s) + BU (s)
Y (s) = CX(s) + DU (s). (24)
We equate the equations in (24) and define the transfer
function as
Y (s) −1
G(s) = = C (sI − A) B + D. (25)
U (s)
where I is an identity matrix.
EE-PC 4117: INSTRUMENTATION AND CONTROL
s 0 0.5
A43 = −det 0 s+5 0
−108 108 0
s 0 0.5
A44 = +det 0 s+5 −0.5
−108 108 s
Fig. 5: Matrix A
Fig. 6: Matrix B
Fig. 13: Matrix C for Inductor 2 Fig. 17: Capacitor 1 Transfer Function
IV. C ONCLUSION
In electrical engineering, transfer functions are es-
sential for both circuit analysis and design. By cre-
ating a link between input and output signals, they
help engineers understand how external stimuli affect
a system’s behavior. Without the need for complex
mathematical models, engineers can accurately predict
circuit behavior and expedite the design process by
employing transfer functions. Transfer functions also aid
in determining system parameters and provide assistance
during troubleshooting, which ultimately improves the
dependability of electrical systems. Their versatility en-
compasses a wide range of disciplines, including control
theory, communication systems, and signal processing.
Furthermore, by taking into account state variables and
their derivatives, the idea of state space enhances transfer
functions by offering a thorough comprehension of a
system’s internal dynamics. This all-encompassing per-
spective encourages progress in fields such as robotics.