System Analysis and Control
System Analysis and Control
Matthew M. Peet
Illinois Institute of Technology
Plant:
• Input: Throttle Position, θe .
• Output: Real Velocity, vr .
• Dynamics: A simple proportional
gain (no dynamics).
vr = 10 · θe
Gas
Control Engine
Desired System
Speed
Speed
Actuator: Throttle
Controller:
• Input: Desired Velocity, vd .
• Output: Throttle, θe .
Because the plant is simple, we will use a simple controller based on our
understanding of the plant.
1
θe = vd
10
- Gas
Control Engine
Desired System
Speed
Speed
Actuator: Throttle
Sensor: Real Velocity
Controller:
• Input: Error in Velocity, ev = vr − vd .
• Output: Throttle, θe .
Our controller is static and uses no knowledge of the plant. It simply amplifies
the error signal by a factor k. Any positive value of k will work.
θe = −k · ev = −k · (vr − vd )
M. Peet Lecture 2: Control Systems 5 / 30
Closed Loop vs. Open Loop
Open Loop: Two relations:
1
vr = 10 · θe and θe = vd
10
we have
1
vr = 10v d = vd
10
So there is no error in the open-loop control
vr = 10 · θe and θe = −k (vr − vd )
10 · k
vr = vd → vd .
1 + 10 · k
I Error can be eliminated entirely using a dynamic controller.
vr = 11 · θe
∆θe = −.5 · id
.5
θe
Control 11
System
vd vr
vr = 11(θe − .5 · id )
1
θe = vd = 5
10
we have
vr = 11(5 + .5) = 60.5mph
Which is NOT ACCEPTABLE!!!.
M. Peet Lecture 2: Control Systems 8 / 30
Impact of Error and Disturbances
Closed Loop
Where
• This is a first-order differential equation
• u(t) is the input
• y(t) is the output
• x is a state variable.
I position, heading, velocity, etc.
ẋ = ax(t)
where
• a is a constant scalar.
• in this case f (x) = ax.
Linear equations are preferable because
• The motion of linear systems is much easier to visualize.
• Stability of linear systems is easy to determine
I ẋ = ax is stable if a < 0 and unstable if a ≥ 0.
ẋ = ax + bz
ż = cx + dz
where
• The motion of x affects the motion of y and vice-versa.
Be higher order:
ẍ = aẋ + bx
where
• Commonly obtained from Newton’s Second law.
F = ma
or, in other words
ẍ = F/m.
M. Peet Lecture 2: Control Systems 13 / 30
Dynamic Model: Suspension System
Mass-Spring Model
Definition 1.
A system with one input and one output is single-input, single-output (SISO).
A system with more than one input or more than one output is multi-input
multi-output (MIMO)
M. Peet Lecture 2: Control Systems 14 / 30
Dynamic Model: Suspension System
Mass-Spring Model
Fs (t) = −Kx(t)
System Model:
K fv 1
ẍ(t) = − x(t) − ẋ(t) + f (t)
m m m
y(t) = x(t)
x1
Now, we add the dynamics of the wheel. mc
x1
mc
x2
mw
x1
mc
x2
mw
x1
mc
x2
mw
mw ẍ2 (t) = K1 (x1 (t) − x2 (t)) − K2 (x2 (t) − u(t)) + c(ẋ1 (t) − ẋ2 (t))
mc ẍ1 (t) = −K1 (x1 (t) − x2 (t)) − c(ẋ1 (t) − ẋ2 (t))
x1 (t)
y(t) =
x2 (t)
These are combined with standard voltage laws such as voltage drop across a
resister, inductor and capacitor:
d 1 d 1
Vr (t) = Rir (t) iL (t) = VL (t) Vc (t) = ic (t)
dt L dt C
ẋ1 = −x1 + x3
ẋ2 = 2x1
ẋ3 = −x2 + x3
ẋ = ax + by
ẏ = cx + dy
When we have multiple coupled equations, the best option is: Convert to
State-Space:
d x a b x
=
dt y c d y