Professional Documents
Culture Documents
CS EE380 Lec06 Expt5
CS EE380 Lec06 Expt5
Lecture 6: Experiment 5
EE380 (Control Systems)
Contents
1 Announcements 3
5 What is a trackable id ? 7
8 Discretization 10
JJ
9 Simulate; LW: C code, Implement, Analyze 11 II
J
I
Back
Forward
Close
3/11
Announcements
• Before doing an experiment, download latest versions of sup-
porting documents from Brihaspati.
• Latest version of program listings are on Brihaspati.
• Turn off power supply to board when not programming dsPIC or
taking readings.
• After completion of experiment
– Shut down PC, FG, PS.
– Remove PICkit 2 from dsPIC board.
JJ
II
J
I
Back
Forward
Close
4/11
Kb
id + u + 1 i T + 1 ω
Ki ( s ) sL+ RΣ Kt Js+ B
− − −
TL
Kb
id + + 1 i T + 1 ω
Ki ( s ) sL+ RΣ Kt Js+ B
− − −
TL
Kb
Ki ( s )
iex
• i tracks id − iex , not id alone. i is called well-regulated if it tracks id nicely. Nice track- JJ
ing won’t happen while iex dominates. ∴ choose Ki (s) to supress iex . Two choices for II
Ki (s) are P and PI.
J
• P gives same gain in transient and SS ⇒ large demand on u. PI places small demand I
on u in transient and acceptable demand in SS. Also, ∃ current filter to reject noise in
Back
isens . ⇒ Choose PI.
Forward
Close
6/11
Is bi ≈ i1.8
sens 1 a good approximation?
− 30
• From Exp-t 4 saw that don’t have an accurate relationship i = f (isens ).
−1
b R Σ 7 − Kb ω b ss7 7
• Need to review the derivation that leads to = ×α
a R Σ 9 − Kb ω b ss9 9
TL (s)
U (s) + 1
I (s) T (s) + − 1
ω (s)
RΣ Kt Js+ B
−
Kb
1/a
b
a 1( t ) − +
What is a trackable id ?
We define a trackable id as one that does not need u to go into
saturation. In our case u saturates at about 9 – 10 V. So, let us find
id that needs u ≤ 9 V for the applied TL .
• L ≈ 0 (see, e.g., Exp-t 4) ⇒ u = RΣ i + E ⇒ u = RΣ i + Kb ω .
Kt i − TL
• At ωss, ω̇ = 0 ⇒ T = Kt i = TL + Bω ⇒ ω = B .
• From the two boxed equations, write an equation in terms of
u, i, TL by eliminating ω:
Kb Kb Kt
u + TL = RΣ + i JJ
B B
II
• For u = 9 V, TL = 0, find id1. For u = 9 V, TL = 0.003 Nm, find J
id2. These are max. trackable currents. I
Back
• The min. trackable currents are obtained from i = TL /Kt . Forward
Close
8/11
Choose PI controller for ts = 0.5 s Track 90%id1 and 90%id2 . id2 provided by
1.5 kg weight hanging from pulley.
Determine max. values of id1 & id2
While pulley rotating, in both
cases stall and release pulley
Simulate CL sys using modified
easysim.m for id1 & id2 JJ
Take plots in both cases before and after II
application of additional TL J
Plot i1 vs. t & i2 vs. t on one figure. I
Plot u1 vs. t & u2 vs. t one one figure. Comment on dist. rej. & tracking.
Back
Forward
Close
10/11
Discretization
a1 s + a0
s2 + b1 s + b0
Simulation
diagram
ẋ1 = x2
ẋ2 = −b0 x1 − b1 x2 + u
y = a0 x1 + a1 x2
Euler’s
approximation
JJ
x1(k+1) = x1(k) + ∆t x2(k) II
x2(k+1) = −b0 ∆t x1(k) + (1 − b1 ∆t) x2(k) + ∆t uk J
y k = a 0 x 1( k ) + a 1 x 2( k ) I
Back
Forward
Close
11/11