Escolar Documentos
Profissional Documentos
Cultura Documentos
2.004 Spring 13
Problem
Wind loading of skyscrapers causes tall building sway.
Upper floor occupants suffer from motion sickness when the building sways in the wind
since people are sensitive to accelerations as small as 0.05 m/s2 (0.005 g).
Too much building sway can also lead to long-term structural damage.
The Hancock Tower in Boston had a problem with falling windows. (The Hancock Tower
now has two passively controlled 300 ton sliding masses on the 58th floor.)
2.004 Spring 13
2.004 Spring 13
Wind force,
Fw(t)
Spring
Damper
Passive Damper
(Tuned Mass Damper)
Ground
2.04A Spring 13
Skyscrapers
Burj Khalifa Skyscraper became the tallest building (828 meters or
2,717 feet) in the world when it was officially opened on 4th
January 2010.
TIME Diagram by Joe Lertola Time, Inc. All rights reserved. This content is excluded from our
Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.004 Spring 13
Burj Khalifa
Taipei 101
2.004 Spring 13
2.004 Spring 13
2.004 Spring 13
sensor
Spring
actuator
Wind force, Fw(t)
Damper
2.004 Spring 13
Experimental System
air-bearings
voice-coils
wire spring
accelerometer
2.004 Spring 13
tall building
10
2.004 Spring 13
11
B1 and K1
2.004 Spring 13
Damper Response
B2 and K2
12
x1
x1
1
ln
= ln
=
x2
N 1 xN
Damped period
2.004 Spring 13
13
2.004 Spring 13
14
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
Magnet in place
for eddy current
damping
Magnet in
storage
location
Copper Flywheel
The hardware described here was developed by Prof. E Sachs. These notes are based upon notes
prepared by Prof. Sachs.
1
In the experiments we will add linear (viscous) damping to the system using a
phenomenon knows as eddy-current damping. When a permanent magnet (see Fig.
1above) is moved across the surface of an electrical conductor it induces internal
currents in the material (eddy currents), which in turn create a magnetic field that
opposes the original field (re-read Lenzs law from 8.02). The result is a force on the
magnet proportional to the relative velocity of magnet and metal, in a direction which
opposes the motion. It therefore requires work to maintain motion between the magnet
and the conductor. Energy is dissipated in the conductor as heat (i2R losses), and the
effect is that the eddy-current forces appear as a dissipative frictional force.
Our flywheel is made of copper, for several reasons:
1) Copper is highly electrically conductive, and therefore large eddy-currents can be
induced in it,
2) Copper is non-magnetic which is important because ferromagnetic forces would
overwhelm the eddy-current forces, and,
3) Copper has a high physical density with the result that our flywheel is massive (has
a large moment of inertia).
You will be provided with several magnets, which may be placed under the rim of the
flywheel to achieve a range of damping coefficients.
The dimensions of the copper flywheel are shown below In Fig. 2. All dimensions are
in inches. The density of copper is 8,230 kg/m3.
Encoder
Figure 2. The rotary encoder for measuring angular velocity and position of the flywheel.
The Gear Train: The flywheel will be driven by a dc electric motor through a stepdown gear train, as shown in Fig. 4. A large gear wheel, with 180 teeth, is attached to
the flywheel shaft, and is driven by a smaller gear with 44 teeth from the electric motor
shaft.
The Electric Motor: The system is driven by a permanent magnet dc motor (Maxon
148867). This is a high-quality low-friction 150w, 24 v. dc permanent magnet motor. A
specification sheet for the motor is attached. A flexible shaft coupling is used to
connect the motor to the drive-shaft to minimize the effects of any shaft misalignment.
Electric cable
Electric motor
Encoder output
Flexible coupling
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
2.04A
System Dynamics and Control
Spring 2013
G. Barbastathis
02/05/2013
System
Input
y(t)
May be scalar or vector
Usually can be defined by
the user
It is subject to noise (or errors)
Mechanical,
electrical, etc.
elements
Output
x(t)
May be scalar or vector
Usually the user specifies
a desired form
Sometimes it can be measured,
others it can not
If the ODEs operate on the output as well, then we refer to it as a feedback system
Can be linear or nonlinear
Speed Control
Head-Disk Tracking
Courtesy of Robert Scholten. Used with permission.
02/05/2013
Youtube user jpstanley0. This work is shared under a Creative Commons Attribution-NonCommericial-NoDerivs 2.5 License.
This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
02/05/2013
Speed Control
Stability Control
http://www.segway.com/
Segway. All rights reserved. This content is excluded from our Creative Commons
license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
02/05/2013
http://www.youtube.com/watch?v=iwIzPjS5L6w
KUKA Robotics/Headland Machinery. All rights reserved. This content is excluded from our
Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
02/05/2013
System Classifications
Single vs Multiple Inputs / Single vs Multiple Outputs
SIMO
MISO
MIMO
Feed-forward vs feedback
Linear vs nonlinear
02/05/2013
Feedforward vs feedback
Feedforward: acts without taking the output
into account
Example: your dishwasher does not measure the
cleanliness of plates during its operation
Plant
x(t)
Controller
02/05/2013
Michael L. Workman. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
02/05/2013
IEEE. All rights reserved. This content is excluded from our Creative Commons
license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
02/05/2013
10
2.003/2.03
We will review these here as necessary; but please refer back to your
materials from these classes, anticipating the topics that we cover
02/05/2013
11
3-062
2.678
N
2.672
02/05/2013
12
Oscilloscope
DC Power Supply
Function Generator
Power Amp
PC
Data Acquisition Hardware:
National Instruments PCI-6221
Tachometer
Rotational Plant
13
Time Varying
Frequency Dependent
Input
Dynamic
System
Output
Time Varying
Frequency Dependent
Modeling
Linear System
Theory
02/05/2013
Control System
Design
14
Hardware
BMW. All rights reserved. This content is excluded from our Creative Commons
license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
System Control
02/05/2013
Desired
response
15
Mechanical
Electrical
Fluid
Thermal
Electromechanical
Mechano-fluid
Electro-thermal
Electromechanicalfluidthermal
02/05/2013
16
Circuit-Like Analysis:
source unknown. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
02/05/2013
17
Input
Dynamic
System
Output
Modeling
Linear System
Theory
02/05/2013
Control System
Design
18
Linear Systems
Suppose
y1 (t)
x1 (t)
x2 (t)
y2 (t)
Corollary
ay1 (t)
02/05/2013
ax1 (t)
and
y1 (t) + y2 (t)
x1 (t) + x2 (t)
19
Modeling
y(t)
Hardware
x(t)
m1
m2
b
BMW. All rights reserved. This content is excluded from our Creative Commons
license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
x + a2 x + a1 x = b2 y + b1 y
mathematical representation
ODE
or
x1
or
a12
x1
a21 a22
x2
a11
b1
y(t)
X(s)
2 n s + n2
= 2
Y (s) s + 2 n s + n2
x
time domain
equation(s) of motion
Laplace domain
transfer function
x2
b2
State Space
y(t) = c1 c2
x1
2
02/05/2013
20
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
Force balance
8
2
d
>
System ODE : < m x
dt2
(2nd order ordinary
FK
>
:
linear differential
Fdv
2 x
Equation of motion:
02/07/2013
Mg
Mg
FK0
FK0
Model
equation)
=) m
dt2
FK + Fv
=
=
-K(x - u)
-fv (x - u )
Kx + Ku
d2 x
=) m 2 =
dt
force due to
viscous damping
Kx + Ku
fv x + fv u
fv x +=)
fv u m d x + Kx + f x = Ku + f u
v
v
dt2
d2 x
=) m 2 + Kx + fv x = Ku + fv u
dt
general solution:
02/07/2013
Im(s)
Re(s)
02/07/2013
step(t) =
0,
1,
Ramp
function
ramp(t) =
t < 0;
t > 0.
0,
t,
t < 0;
t > 0.
= t step(t)
Sinusoidal
function
0,
t < 0;
f (t) =
sin(!t), t 0.
= sin(!t) step(t)
02/07/2013
(t)
Impulse
(aka delta-function
or Dirac function)
t [sec]
viscous
damping
force
one time constant
Impulse response:
equivalent to setting an initial condition v(t=0)
v(t = 0) = v0
v(t) = v0 e
t/
0. 368 e
t>0
time constant =
M
b
Step response:
f(t) is the step function (or Heaviside function)
f (t) = F0 step(t) =
v(t = 0) = 0
02/07/2013
0,
F0 ,
t < 0;
t > 0.
F0
v(t) =
1
b
t/
t>0
steady state
(final value)
0.632 1
2.004 Fall 07
Figure John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
02/07/2013
02/07/2013
Table John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
02/07/2013
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
Rotational Plant
**Read the Description of the Experimental Rotational Plant**
DC motor
Power cable
Encoder output
Gear set
Flex coupling
Gear set
Copper flywheel
Flywheel
11/28/13
J 3 10
kg m2
Table John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
Figure John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
Gear transformations
Figure John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
Figure John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
02/07/2013
Damping Model
Viscous Damping
Coulomb Damping
Coulomb damping results from the sliding of two
dry surfaces. The friction generated by the relative
motion of the two surfaces is a source of energy
dissipation. It is opposite to the direction of motion
and is independent of surface area, displacement or
position, and velocity
2/13/2013
Kinetic
Static
Coulomb friction
velocity
friction
friction
velocity
Viscous friction
velocity
friction
friction
velocity
11/28/13
In-class experiment
Familiarize with the laboratory equipment and software
tools
Study the frictional characteristics of the motor, gear train,
and bearings in the flywheel system
Explore the effect of damping on the flywheel system
10
Optical Encoders
Regular phase
Quadrature phase
Hewlett Packard. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
11/28/12
source unknown. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
11/28/12
V0 (t)
!(t) =
Kt
13
Procedure
Spin the flywheel by hand, and record the angular velocity decay !(t), using the computer-based
Chart Recorder(VI),(Remember to convert the Chart Recorder output to angular velocity.)
Repeat the same procedure with one and two magnets (damper) on the flywheel
Generate clearly labeled plots and indicate, for each case, which kind of friction dominate the
damping behavior. For viscous damping, also compute the time constant . (J 3 10
kg m2 )
Extra credit: Can you determine the damping coefficient for each viscous case and torque due to
Coulomb friction (Assume the eect of Coulomb damping is significantly smaller than the eect
of viscous damping)
Courtesy of The MathWorks, Inc. Used with permission. MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See www.mathworks.com/trademarks
for a list of additional trademarks. Other product or brand names may be trademarks or registered trademarks of their respective holders.
11/28/13
15
= Text (t)
Tc (t)
+ Jb !(t) = 0
For pure viscous damping: J !(t)
( Jb )t
16
Slope method
2/13/2013
2/13/2013
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
2.04A Spring 13
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
Electrical resistance
2.04A Spring 13
Capacitance /1
2.04A Spring 13
Capacitance /2
2.04A Spring 13
Inductance
2.04A Spring 13
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
10
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
11
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
12
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
13
+
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+ + +
+ +
+
+
+
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
14
2.04A Spring 13
15
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
16
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
17
DC Motor as a system
Transducer:
Converts energy from one domain (electrical)
to another (mechanical)
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
18
Faraday law:
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
19
multiple windings N:
continuity of torque
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
20
multiple windings N:
continuity of torque
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
21
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
22
dissipation
(resistance of windings)
dissipation
(viscous friction
in motor bearings)
load
(inertia)
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
23
dissipation
(resistance of windings)
dissipation
(viscous friction
in motor bearings)
load
(inertia)
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
24
dissipation
(resistance of windings)
dissipation
(viscous friction
in motor bearings)
load
(inertia)
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
2.04A Spring 13
25
Open-loop
Signal
CH1
Generator
ACH
1
DC motorflywheel
system
Power
Amplifier
PC Data-
ACH2
ETACH2
Acquisition
2.004 Spring 13
26
Procedure
Make sure all devices are powered off; connect function generator, power amplifier, flywheel
system and PC data acquisition system as shown in the previous slide.
Add one magnet to the flywheel damper, open Chart Recorder to record ACH1 and ACH2;
turn on function generator, power amplifier and start experiment.
Obtain system response for a ramp function with Freq: 0.2 Hz, Amp: 0.5 V, offset: 0 V. Repeat
experiment using a sine function with same parameters. Record your response. Referring to
materials we learned from last lecture, comment on the behavior of DC motor- flywheel
system.
Use a DC signal with 0.2 V offset. Start experiment and record DC motor transient response
data. Convert voltage signal to motor speed (you will need to make use of gear ratio).
Generate appropriate plots of motor speed & amplified current V.S time. Compute mechanical
power of the DC motor.
Set your function generator to generate a square function(SQUA), set frequency to 0.04 Hz,
amplitude to 0.200V and offset to 0.100V. Collect a full period of flywheel response and
function generator signal. (You can take a screen shots of the plot in Chart Recorder)
2.004 Spring 13
27
Some Hints
Gear Ratio:
F
Gear 1
Gear 2
Unit Conversion:
44
n1
=
180
n2
Power Conservation:
2.004 Spring 13
= T (t) (t)
= Km i(t) (t)
28
2.04A Spring 13
29
2.04A Spring 13
30
0,72SHQ&RXUVH:DUH
KWWSRFZPLWHGX
$6\VWHPVDQG&RQWUROV
6SULQJ
)RULQIRUPDWLRQDERXWFLWLQJWKHVHPDWHULDOVRURXU7HUPVRI8VHYLVLWKWWSRFZPLWHGXWHUPV
Todays plan
Linearization
from pendulum equation to the harmonic oscillator
2.004 Spring 13
2.004 Spring 13
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
Steady-state
Note that as t, the exponential decays away, and the step response
tends to 1, i.e. the value of the driving force.
More generally, if we consider a flywheel-like viscously damped system with
equation of motion expressed as 1st order linear time-invariant ODE
J! (t) + b!(t) = f (t)
f (t) = F0 step(t)
F0
1
!(t) =
b
t/
!1 =
t>0
J
=
b
F0
b
2.004 Spring 13
It turns out that we can predict the steady state of a system directly
in the Laplace domain by using the following property known, for
obvious reasons, as the final value theorem:
limt!1 g(t) = lims!0 sG(s).
which holds generally if g(t) and G(s) form a Laplace transform pair.
F (s) =
lims!0 s(s) =
1
(s)
=
F (s)
Js + b
F0
F0
) (s) =
s (Js + b)
s
F0
b
in agreement with the result for the steady state of this system
in the previous page
2.004 Spring 13
A word on zeros
Transfer function
with a zero
H(s) =
1
1
s+z
=s
+z
D(s)
D(s)
D(s)
Derivative
operator
Amplification
(gain)
H0 (s) =
2.004 Spring 13
1
s+p
H(s) =
s+z
s+p
U (s) =
1
s
F0 (s)
1
H0 (s) =
s+p
) f0 (t) =
F (s)
s+z
H(s) =
s+p
Example:
1.8
1.6
1
1
p
pt
1
s
1
s+p
Please verify
yourselves this
partial-fraction
expansion!
t > 0.
) f (t) =
d
f0 (t) + zf0 (t) = e
dt
without
zero
2.5
1.4
1.2
f0 [a.u.]
p = 0.5;
z = 1.0
1
1 1
=
F0 (s) =
s s+p
p
0.8
pt
z
1
p
pt
t > 0.
with
zero
f [a.u.]
1
U (s) =
s
1.5
0.6
-0.5
0.4
-1
-0.5
0.5
0.2
0
2
2.004 Spring 13
4
t [sec]
10
0
2
4
t [sec]
10
0.9
0.25
0.6
0.2
f [a.u.]
0.4
0.5
0.2
0.3
0.4
0.2
0.6
0.1
0.8
4
t [sec]
Example:
2
1.8
1.6
p = 0.5;
1.4
1
2
10
2.5
1.2
f0 [a.u.]
without
zero
(lhs)
1.0
0.4
-0.5
0.6
0.7
0
2
0.8
0.8
4
t [sec]
with
zero
(lhs)
10
f [a.u.]
-0.5
0.8
f [a.u.]
1.5
0.6
-0.5
0.4
-1
-0.5
0.5
0.2
0
2
2.004 Spring 13
4
t [sec]
10
0
2
4
t [sec]
10
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.004 Spring 13
2.004 Spring 13
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.004 Spring 13
10
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.004 Spring 13
11
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.004 Spring 13
12
forced response,
sets steady state
2.004 Spring 13
13
2.004 Spring 13
14
2.004 Spring 13
15
Linearization
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.004 Spring 13
16
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.004 Spring 13
17
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
Today we will
change the flywheel output so it becomes a 2nd order system
employ a feedback scheme such that we can tune the 2nd order
system response from overdamped to undamped
!(t)
R(s)
(s)
J !(t)
+ b!(t) = r(t)
1
(s)
=
R(s)
Js + b
(t) =
!(t0 )dt0
1
s
2.004 Spring 13
1
(s)
=
R(s)
s(Js + b)
Schematically,
r(t)
(t)
R(s)
(s)
+ b(t)
= r(t)
J (t)
1
(s)
=
R(s)
s(Js + b)
b/J
(s)
1
=
R(s)
s(Js + b)
has two poles: one at b/J (same as the 1st order system we had considered
earlier, when angular velocity was the output) and one at the origin. The pole at
the origin results from the integrator, i.e. the integral operation that converts
angular velocity !(t) to angular position (t).
To make the flywheel response look more like the standard 2nd order system,
we can introduce feedback. This is physically implemented by connecting the
function generator to the positive inlet of the amplifier and the output of the
position meter to the negative inlet and specifying a feedback gain K in the
computer interface. Without going into the details of the derivation (we will
do that extensively in the following weeks) the transfer function of the system
with feedback becomes
(s)
K
=
R(s)
Js2 + bs + K
The purpose of the lab is to observe experimentally that at low gain, i.e.
small values of K, the response is overdamped; whereas at high gain, i.e. for
large values of K, the response becomes underdamped.
We will verify these observations with mathematical rigor in the following weeks.
For now, please consider K as a knob which you can turn to tune the response
from overdamped to underdamped. More details will come, we promise!
b/J
b/J
2.004 Spring 13
Lab procedure
First, please read carefully the previous three introductory pages, and make sure you are
comfortable with the flywheel as a 2nd order system (now that weve defined the angular position
as output) and the role of gain K in tuning the transfer function.
Derive the roots of the polynomial Js2+bs+K=0 and verify that for small values of K they are both
real, whereas for large values of K they form a complex pair (i.e. both have the same real part,
and the imaginary parts have equal magnitude but opposite signs).
With help from your TA, verify all the connections in your system, especially where the inputs and
outputs are applied. Identify the definition of K in your digital interface.
Now use a step function as input to the flywheel, and try different values of K. Record at least two
overdamped responses (for two low values of K) and two underdamped responses (for two high
values of K) and the values of K for which you observed them.
For the underdamped responses, estimate the values of damping ratio and damped oscillation
frequency d (you will find definitions of these quantities in Lecture 07.)
Hand in printouts of your results (or email in digital form) to the TA at the end of the lab.
2.004 Spring 13
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
Todays goal
2.04A Spring 13
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
G(s) =
N (s)
D(s)
KG(s)
KN (s)
Gclosed (s) =
=
1 + KG(s)
D(s) + KN (s)
1 + KG(s) = 0
More generally: D(s) + KN (s) = 0
2.04A Spring 13
Root locus is all values of s that satises the system characteristic equation:
1 + KG(s) = 0 or more generally: D(s) + KN (s) = 0
G(s) =
0.3162
s+2
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.04A Spring 13
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.04A Spring 13
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.04A Spring 13
Root
Locus
2.04A Spring 13
Caveat: K>0
(i.e., negative
feedback)
2.04A Spring 13
Break-in
point
Breakaway
point
Real-axis
segment
RL imaginary axis
intercept
Breakaway
point
Asymptote
angle
Departure/Arrival
angles
Branches
Asymptote
real-axis
intercept
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.04A Spring 13
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.04A Spring 13
Example
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.04A Spring 13
10
2.04A Spring 13
11
2.04A Spring 13
12
2.04A Spring 13
13
2.04A Spring 13
14
system response
contains undamped
terms at this point
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.04A Spring 13
15
system response
contains undamped
terms at this point
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.04A Spring 13
16
2.04A Spring 13
17
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.04A Spring 13
18
Practice 2:
2.04A Spring 13
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
19
In-class Experiment 4
What Is Root Locus Design?
A common technique involving iterating on a design by
manipulating the compensator gain, poles, and zeros in the root
locus diagram.
As system parameter k varies over a range of values, the root locus
diagram shows the trajectories of the closed-loop poles of the
feedback system.
SISO Design Tool in MATLAB:
A graphical-user interface that allows the user to tune control
parameters from root locus design and system response simulation.
12/03/13
20
System Modeling
Km /N
Js + B
Ka
Kt
G(s)
21
System Parameters
22
Procedures
C(s) = a2 + b2 s,
C(s) = a3 + b3 /s
12/03/13
23
>> B=0.014;J=0.03;N=44/180;ka=2;km=0.0292;kt=0.016;
>> G=tf([ka*km/N],[J,B]);
Transfer function:
Setup transfer function
0.2389
--------------0.03 s + 0.0872
12/18/12
24
Tips 1
In the command window type in sisotool tool open the SISO
Courtesy of The MathWorks, Inc. Used with permission. MATLAB and Simulink are registered trademarks of The
MathWorks, Inc. See www.mathworks.com/trademarks for a list of additional trademarks. Other product or
brand names may be trademarks or registered trademarks of their respective holders.
12/03/13
25
Tips 2
Under Compensator Editor tab, create general form of
K
K
s2 + K s + K
controller model (e.g : Kd s + Kp + Ki /s = Kd
)
s
12/03/13
Courtesy of The MathWorks, Inc. Used with permission. MATLAB and Simulink are registered trademarks of The
MathWorks, Inc. See www.mathworks.com/trademarks for a list of additional trademarks. Other product or
brand names may be trademarks or registered trademarks of their respective holders.
2.004 Spring 12'
26
Tips 3
Select design plots you want to use and click on show design
27
Tip4
Select Step for Plot 1, check closed loop r to y. Show analysis plot
under Analysis Plot tab generates a real-time step response of your system.
(You can also look at other plots)
Courtesy of The MathWorks, Inc. Used with permission. MATLAB and Simulink are registered trademarks of The
MathWorks, Inc. See www.mathworks.com/trademarks for a list of additional trademarks. Other product or
brand names may be trademarks or registered trademarks of their respective holders.
28
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
Todays goal
2.04A Spring 13
Y (s)
X(s)
1
G(s) =
s+2
X(s)
Y (s)
OL
Open-Loop
pole
1
s+2
j!
Y (s) +
1
G(s) =
s+2
X(s)
Y (s)
Root Locus
K=1
CL
K
s+2+K
Open-Loop
pole
j!
K=0
As K varies from 0 to 1
2.04A Spring 13
X(s)
...
2
0.4
0.3
X(s)
Y (s)
0.2
OL
1
=
s+2
0.2
0.15
0.1
0
0.1
X(s)
Y (s)
OL
s+5
s+2
1 branch
0.05
0
0.05
to the left of
the single pole
0.2
0.1
0.15
0.3
0.4
8
0.1
1 branch
j (seconds )
j (seconds1)
Root Locus
2.04A Spring 13
4
3
(seconds1)
0.2
6
to the left of
the pole
3
2
(seconds1)
K
X(s)
=
Y (s) CL
s + (K + 2)
closedloop
= (K + 2) ! 1, as
pole
K!1
X(s)
Y (s)
closedloop
pole
CL
0.3
X(s)
Y (s)
0.2
OL
1
=
s+2
0.15
0.1
K=0
K=1
0
0.1
5,
as
K!1
X(s)
Y (s)
OL
s+5
s+2
1 branch
0.05
0
K=0
K=1
0.05
to the left of
the single pole
0.2
0.1
0.15
0.3
0.4
8
0.1
1 branch
1
j (seconds1)
0.2
5K + 2
!
K +1
Root Locus
j (seconds )
0.4
K (s + 5)
(K + 1) s + (5K + 2)
2.04A Spring 13
4
3
(seconds1)
0.2
6
to the left of
the pole
3
2
(seconds1)
Root Locus
2
1.5
P
finite poles
finite zeros
P
#finite poles # finite zeros
(2m + 1)
P
#finite poles # finite zeros
Root Locus
1
G(s)
=
4
(s + 1) (s + 2) (s + 3)
1
G(s) =
(s + 1) (s + 3)
3
2
0.5
j (seconds )
j (seconds1)
a = /2
0
0.5
2
3.5
2.5
2.04A Spring 13
1.5
1
(seconds1)
0.5
0.5
a = /3
1.5
4
5
8
4
3
(seconds1)
1
b
zn
X
q
1
b
pq
Root Locus
Root Locus
2
1.5
1
G(s)
=
4
(s + 1) (s + 2) (s + 3)
1
G(s) =
(s + 1) (s + 2)
3
2
0.5
j (seconds )
j (seconds1)
a = /2
0
0.5
b
2
3.5
2.5
2.04A Spring 13
1.5
1
(seconds1)
0.5
0.5
a = /3
1.5
4
5
8
1.423
4
3
(seconds1)
KG (j!x ) =
Root Locus
5
1
G(s)
=
4
(s + 1) (s + 2) (s + 3)
K = 60
!x 3.32
3
2
1
j (seconds )
a = /3
0
1
2
3
4
5
8
2.04A Spring 13
1.423
4
3
(seconds1)
Root Locus
Root Locus
j (seconds1)
1
G(s)
=
4
(s + 1) (s + 2) (s + 3)
p 2
0.5
K = 60
K = 2p
2
2
1
1.5
1
G(s) =
(s + 1) (s + 2)
j (seconds )
0
0.5
p 0
2 p 5
1
1
0
11
p 12
1
2
3
1.5
2
3.5
4
3
2.5
2.04A Spring 13
1.5
1
(seconds1)
0.5
0.5
5
8
4
3
(seconds1)
Because of Rule 4
Therefore, adding a zero makes the response
faster
stable
Root Locus
Root Locus
15
G(s) =
10
j (seconds1)
j (seconds )
s+5
G(s) =
(s + 1) (s + 3)
10
3
16
14
12
10
2.04A Spring 13
8
6
(seconds1)
s+5
(s + 1) (s + 2) (s + 3)
15
6
3
2
(seconds1)
2.04A Spring 13
10
Practice 2:
Are these Root Loci valid? If not, correct them
2.04A Spring 13
11
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
Gp (s)
plant
compensator
R(s)
C(s) +
s+z
K
s
Proportional (P)
plant
R(s)
Gp (s)
Proportional-Integral (PI)
compensator
C(s) +
K s+z
plant
Gp (s)
compensator
R(s)
Proportional-Derivative (PD)
speeds up response
improves stability (RL moves to the left)
may worsen steady state error
noisy
C(s) +
(
K2
K s+z +
s
plant
R(s)
Gp (s)
Proportional-Integral-Derivative (PID)
complete transient specification
(rise time & overshoot)
no steady-state error
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.004 Spring 13
Integral action
eliminates steady-state error; but,
by itself, the integrator slows down
the response;
therefore, a zero (derivative action)
speeds the response back up
to match the response speed
of the uncompensated system
Derivative action
speeds up the transient response;
it may also improve the steady-state error;
but
differentiation is a noisy process
(we will deal with this later
in two ways: the lead compensator
and the PID controller)
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.004 Spring 13
Example
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.004 Spring 13
Gc (s) = K(s + 3)
Gc (s) = K
(proportional)
K=23.7
%OS=23.2
Tr=0.688 sec
K=35.3
%OS=27.5
Tr=0.236 sec
K=51.4
%OS=25.4
Tr=0.197 sec
K=20.86
%OS=27.2
Tr=0.305 sec
Gc (s) = K(s + 2)
(pole-zero
cancellation)
Gc (s) = K(s + 4)
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.004 Spring 13
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.004 Spring 13
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.004 Spring 13
(
)
K s+z
pc+
0.3162
s (s + 2)
j
O
S=
co
ns
ta
nt
135
pc
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.004 Spring 13
K s+z
0.3162
s (s + 2)
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.004 Spring 13
K s+z
0.3162
s (s + 2)
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.004 Spring 13
(
)
K s+z
0.3162
s (s + 2)
PD compensator
zero
closed-loop poles
2.004 Spring 13
10
Experiments
Closed-loop position control with derivative control action:
Experiment #1: P and PD Control of Position
Experiment #2: Compare your results with a Simulink Simulation
Deliverables:
Properly annotated plots showing your results
Comments and discussions on your observations and results
3/5/2013
11
200,000x magnification
3/5/2013
12
Reset Button
VRXUFHVXQNQRZQ$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH
3/5/2013
13
P, PI and PD Controllers
P Controller
(t)
R(s)
Encoder
Kpos
R(s)
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
3/5/2013
14
Ka Km /N
(s)
=
Vc (s)
Jeq s + Beq
position to velocity:
1
(s)
=
(s)
s
TF voltage to position:
3/5/2013
Gp (s) =
(s)
1 (s)
Ka Km /N
=
=
s Vc (s)
s (Jeq s + Beq )
Vc (s)
15
Let
P Control:
GCL (s) =
KKp
(s)
=
R(s)
Js2 + Bs + KKp Kpos
Common form
PD Control:
3/5/2013
GCL (s) =
s2 + 2!n s + !n2
K (Kp + Kd s)
(s)
=
Js2 + (B + Kd KKpos ) s + KKp Kpos
R(s)
16
System Parameters
J 0.03 N-m2
B 0.014 N-m-s/rad
Ka = 2.0 A/V
Km 0.0292 N-m/A
V
s
1rev
)(60 min
)( 2rad
) = 0.153 V/(rad/s)
Kt = (0.016 rev/min
N=
44
180
= 0.244
Ke 1.5 V/rad
17
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
3/5/2013
18
3/5/2013
19
Procedure EX1
Connect the computer-based as before except we need to use the EDAC2
instead of ETACH2. The set-up is very similar. Install one magnet.
Important: ALWAYS RESET EDAC2 BEFORE EACH TRIAL
(The flywheel could go out of control, be ready to stop the loop at any time.)
Before starting the experiment, spin the flywheel so that the position mark on
the flywheel is observable and define an initial position.
Set the function generator to output a DC signal with 1.0 V offset. Set Kp to 2,
3, 4 and start experiment. Record a transient response for each case.
Spin the wheel back to its initial position. Set Kp to 2 and Kd to 1. Repeat the
experiment. Try two other (reasonable) combinations of Kp and Kd control
parameters. Compare P and PD control results.
Select your favorite combination of PD control parameters, run experiment as
before after the plant reaches steady state, continuously change your DC
offset by pressing the up or down button; observe controlling of the plant.
3/5/2013
20
Procedure EXP2
Define a Matlab SISO model to represent the flywheel with voltage as
input and position as output. Simulate a P control with Kp = 2.
Change your controller design to PD. Choose 2 combinations of Kp
and Kd values from EXP1 and run simulation.
Compare your simulation with results from EXP1 and comment on
agreement or discrepancy between theory and experiment.
3/5/2013
21
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
2.04A Spring 13
2.04A Spring 13
PI compensator TF:
where
K2
=
K1 +
s
K
K1 ,
K1
K2
s+
K1
s
K2
K1
K(s + z)
=
s
Another implementation is the lag compensator, which you can learn about
in more advanced classes (e.g., 2.14.)
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.04A Spring 13
2.04A Spring 13
COMPENSATED
(PI controller)
Transient:
UNCHANGED!
Steady-state error=0
FIXED!
Nise Figure 9.7
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.04A Spring 13
In-class experiments
Elimination of steady-state error through the use of integral (I), and
proportional plus integral (PI) control.
Experiment #1: Pure Integral Control & PI Control
Experiment #2: Compare your results with a Simulink Simulation
Hand in:
Properly annotated plots showing your results.
Comments and discussions on your observations and results. (How do the
P, I, and PI control actions look and feel like?)
2.04A Spring 13
2.04A Spring 13
2.04A Spring 13
PI Controller
P Controller
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.04A Spring 13
P, I, and PI Comparison
P Control: steady-state error
I Control: overshoot, longer transient, integrator windup
Set-point
2.04A Spring 13
10
1
N
P Control:
Vss
PI Control:
A
Kp KKt
= lim = Gcl (s) = A
s!0
S
Js + B + Kp KKt
A real zero
Gcl (s) =
Vss = lim
s!0
2.04A Spring 13
(Kp s + Ki )KKt
Vt (s)
=
R(s)
Js2 + (B + Kp KKt )s + Ki KKt
A
Gcl (s)
s
(Kp s + Ki )KKt
Vt (s)
=
=A
=A
2
R(s)
Js + (B + Kp KKt )s + Ki KKt
11
Procedures
EXP1: Connect the computer-based controller same as Lab 5, install one magnet
Make function generator to produce a DC with offset = 1.0 V. Set Kp = 0, Ki = 0.5
and 0.2. Make sure power amplifier break is turned on and record system response
for 4 to 5 seconds for each case.
Set Kp = 2, and Ki = 1 and record your response data. Compute steady-state error.
Compare this result with pure integral control and pure proportional control from
Lab 5. Change Kp and Ki both to 3, repeat experiment. Discuss your results, pay
attention to the motion of flywheel when the in square wave drops down to 0.
What effect does a integrator have on system performance?
EXP2:
Modify the controller design in your Simulink model from Lab 5 to have a
Kp +of
Ki s
form
12
System Parameters
John Wiley & Sons. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.
2.04A Spring 13
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
2.04A Spring 13
Problem
Wind loading of skyscrapers causes tall building sway.
Upper floor occupants suffer from motion sickness when the building sways in the wind
since people are sensitive to accelerations as small as 0.05 m/s2 (0.005 g).
Too much building sway can also lead to long-term structural damage.
The Hancock Tower in Boston had a problem with falling windows. (The Hancock Tower
now has two passively controlled 300 ton sliding masses on the 58th floor.)
2.04A Spring 13
2.04A Spring 13
Wind force,
Fw(t)
Spring
Damper
Passive Damper
(Tuned Mass Damper)
Ground
2.04A Spring 13
Taipei 101
2.04A Spring 13
Taipei Financial Center Corp. All rights reserved. This content is excluded
from our Creative Commons license. For more information,
see http://ocw.mit.edu/help/faq-fair-use/.
2.04A Spring 13
sensor
Spring
actuator
Wind force, Fw(t)
Damper
2.04A Spring 13
Experimental System
air-bearings
voice-coils
wire spring
accelerometer
2.04A Spring 13
tall building
System Modeling
Air Bearings
Relative Velocity
Sensor:
Voice Coil
Actuator:
Voice Coil
Accelerometer
Spring
Sliding
mass
Building
2.04A Spring 13
w(t)
desired
v1
v2 - v1
v1
v2 _ v1
+
-
u=
Controller
Tower
Observer
(sensors)
a(t)
3
x1
6 v1 7
7
q6
4 x2 5
v2
q = Aq + Bu
y = Cq + Du
error
3
x1
6 v1 7
6
7
4 x2 5
v2
w(t)
a(t)
(state vector)
y=
v1
v2
v1
v1
v 2 V v1
measured
(observation vector)
w(t)
a(t)
We will attempt to control the Tower using only the v2-v1 signal as input to a PID controller. Thus, we can apply all
that we learnt on SISO controllers in the class so far; performance, however, will be limited.
Using both output signals as input to the controller constitutes what is known as state-space control. It is the most
powerful of all, but falls outside the scope of our introductory class. Next week we will play around with a statespace controller to see what it can do, without going too much into the details.
2.04A Spring 13
10
Procedure #1
where
u=
y=
x1
6 v1 7
7
q6
4 x2 5
v2
w(t)
a(t)
v1
v2
(state vector)
v1
(observation vector)
11
Procedure #2
The PID_template.m code template provideGXQGHU$GdLWLRQDO
0DWHULDOVLQWKH/HFWXUH1RWHV /DEVFontains all system physical
parameters the
and it allows you to convert
system state-space transfer
function
each
to transfer functions of
output respect to each input.
parameters
Numerical values for the system
are on the last page of this
handout.
Download the template file and make sure you understand its
contents compared to the mathematical state-space representation.
Enter your A, B, C, D state-space matrices into the template and
comment on the open-loop system response to an impulse in w(t)
[abrupt and very brief knock by a wind gust.]
2.04A Spring 13
12
that equivalently models this MIMO system [we will help you.]
2.04A Spring 13
13
2.04A Spring 13
14
2.04A Spring 13
15
System Parameters
m1
m2
k1
k2
b1
b2
Kact
Ksensor
Ka
2.04A Spring 13
=
=
=
=
=
=
=
=
=
5.11 kg
0.945 kg
1120 N/m
75 N/m
0.87 N-sec/m
8.4 N-sec/m
7.1 N/A
7.1 Volts-sec/m
2 Amp/Volt
16
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
a) Derive the inverted pendulums equation of motion; then linearize the equation
that you derived by assuming that the angle is very small ( 1rad).
Answer: From the following free body diagram, the equation of motion can be
found by torque balance between the torque due to gravity, mg l; inertial torque
and the externally applied torque T (t). We nd
ml2 ;
g (t) = T (t) .
(t)
l
ml
b) With the angle as output and torque T as input, and using numerical values
l = 1.09m, m = 0.8417kg, derive the transfer function of the inverted pendulum
system.
1
(s)
1/ml2
= 2
.
T (s)
s g/l
Using the given numerical values and g = 9.81(m/s2 ), we nd the transfer func
tion as
(s)
1
1
= 2
=
.
T (s)
s 9
(s + 3)(s 3)
Note that these questions are identical to Practice Problem Set 1, Problem 3,
except here we are neglecting dissipation b.
c) Deduce from the transfer function that the inverted pendulum system is unstable.
Describe an experiment you could do with everyday objects to verify this result.
Answer: The transfer function has a pole in the righthand plane, thus the system
is unstable.
Just like the example during lectures, stabilizing a stick so that it stands vertically
without falling is a good example of an unstable system. The point is that if
the stick were to stand perfectly vertical, it would not fall; but the slightest
angular perturbation away from the vertical position (e.g. due to wind or slight
motion of your hand, etc.) will grow rapidly causing the stick to fall from its
vertical position. Because of its extreme sensitivity to perturbation the inverted
pendulum is the archetypal unstable system.
Notice that if we tried a longer stick, the unstable pole + g/l would move
closer to the real axis, i.e. the time constant would increase. This means that
the transient response become slower and easier to control! Try this with two
pens, one longer than the other and you will be convinced.
d) We will now perform a sequence of attempts to stabilize and control the inverted
pendulum. First we consider proportional (P) control. Draw the block diagram
of the proportional control system, indicating clearly and thoroughly the signals
owing over the arrows and the transfer functions of the blocks in your diagram.
Answer: The block diagram with P controller is
e) Using the root locus technique, argue that with proportional control we cannot
stabilize this system; at best, we can make it marginally stable.
Answer: The root locus of the system is as follows:
2
Root Locus
4
Imaginary Axis
4
4
0
Real Axis
As the gain K increases, the closedloop poles start moving from s = 3 along the
real axis. After they meet at s = 0, they start moving along the imaginary axis.
When the poles are on the real axis, the system is unstable. When the poles are
on the imaginary axis, the system is marginally stable. Thus this system cannot
be stabilized with a proportional (P) controller.
f ) Next we consider proportionalderivative (PD) control. Draw the modied block
diagram and root locus, and argue that the inverted pendulum system can now
be stabilized with appropriate choice of gain.
Answer: The block diagram with PD controller.
To move the closedloop poles into the lefthand plane, we need want to add a
zero in lefthand plane. There are two possibilities:
Imag Axis
5
10
Real Axis
0.8
0.6
0.4
Imag Axis
0.2
0.2
0.4
0.6
0.8
1
10
2
Real Axis
To understand why this is useful, consider the following: suppose that the error
is big, but decreasing due to previous control input, then you can aord to use
smaller control input because you dont want to generate huge overshoot. Con
versely, if the error is increasing because of a disturbance, the PD controller will
detect the fast increase as well as the rate that the error is growing and succeed
in compensating the error much better than the proportional (P) controller that
take into account the error alone.
h) Let us now design the PD controller for the following transient specications:
peak time Tp = 1.61sec and overshoot 20%. Interpret these specications as the
locations of the desired closedloop dominant poles on the splane. What is the
natural frequency of the desired (compensated) system?
Answer: From Tp = 1.61(sec) and 20% OS specication,
=
ln(%OS/100)
2
= 0.4559, and
+ ln (%OS/100)
Tp =
= 1.61(s).
n 1 2
Thus, the natural frequency n = 2.1924(rad/s), the damped natural frequency
d = n 1 2 =1.9513(rad/s), and = n = 0.9766. The desired pair of
poles are s = jd = 0.9766 j1.9513.
i) Find the location of the PD controllers zero and gain K that meet our transient
specications.
Answer: There is a systematic way of carrying out this design, and it is described
in detail in the textbook, section 9.3. We will skip this geometrical derivation
(however, if you are seriously interested in control as subject for further study,
then you should pay more attention to it; and you will see it again in more ad
vanced control electives.) We will use Matlab to carry out the design. Note,
however, that in Matlab we should dene the plant transfer function (two real
poles at s = 3) separately from the controller transfer function. To avoid con
fusion with the gain, change the following option in the Control and Estimation
Tools Manager : in the menu EditSISO Tool Preferences..., select the
tab Options and under Tuned parameters select the Zero/Pole/Gain option.
This way, Matlab will display the controllers transfer function in a manner
compatible to our notation in class.
With these steps, we nd the approximate zero location as zD 7 and closed
loop gain K 2 (Matlab gives the more accurate value 1.9519.)
j) Now get Matlab to display the step response of the PDcompensated inverted
pendulum. Explain why the overshoot is slightly higher and the peak time slightly
shorter than our design targets.
Answer: From Matlabs sisotool, the step response is as follows:
5
Step Response
3.5
Amplitude
3
2.5
2
1.5
1
0.5
0
0
Time (sec)
Note that Tp = 1.41(s) and %OS is 21.8%. This is because the damping ratio
and natural frequency n are computed by approximation of the actual system as
a 2nd order system whose poles are equal to the dominant poles of the actual sys
tem. The actual system has an additional zero due to the PD controller; therefore,
we expect the exact response to be slightly dierent: derivative action will cause
the peak time to become slightly shorter (faster) than the approximated system,
and the overshoot to become slightly larger than the approximated system.
k) What is the steadystate error? Calculate it directly from the closedloop transfer
function of your PDcompensated inverted pendulum and then verify your result
using Matlab.
Answer: The steady state value ss can be found as follows:
1
KG(s)
7.0455K
() = lim s
=
= 2.8939,
s0
s 1 + KG(s)
9 + 7.0455K
s + 7.0455
and K = 1.9519. Therefore, the steady state error
s2 9
e() = 1 y() = 1.8939 or 189.39%. Notice that the exact step response
found from Matlab in question (k) agrees well with our estimate.
where G(s) =
l) As a nal eort to correct this system, let us attempt to eliminate the steadystate
error by PID compensation without degrading the transient, if at all possible.
We maintain the same derivative term that we found from the previous questions
(since the desired transient has already been achieved) and cascade an integral
controller. Use a safety factor of 10 for the relative size of the integral controllers
zero relative to the plants stable pole. Verify with Matlab that indeed the PID
controller has eliminated the steadystate error.
Answer: We add a PI controller. The block diagram is as follows:
I
Note that the transfer function of the PI controller is s+z
not pure integrator.
s
Since the question requires to use a safety factor of 10, zI = 0.3.
(s + zI ) 1
s s2 9 = 1.
(s + zI ) 1
1 + K(s + zD )
s
s2 9
K(s + zD )
3.5
3
Amplitude
2.5
2
1.5
1
0.5
0
0
6
Time (sec)
10
12
m) Now use Matlab to adjust the gain such that the peak time requirement is met.
What goes horribly wrong when you do that? This seems to suggest that the
PID controller does not work as advertised in this case, i.e. it does not leave the
transient response unchanged. Can you explain why this system is dierent than
the PID control example that we saw in class?
Answer: At the gain K = 1.52, the step response is as follows:
Step Response
Amplitude
4
0
100
200
300
Time (sec)
400
500
600
As we try to get the desired peak time as decreasing gain K, the overshoot
becomes huge. Also when we decrease the gain more, then the system becomes
unstable.
The reason for the excessive overshoot in the PIDcompensated system is as
follows: We note that the breakaway point of the PDcompensated system (before
cascading the PI compensator) is at a very small negative value. This means that
the root locus passes very close to the origin. Therefore, the usual PI controller
assumption that the PI zeropole pair does not have a signicant total angular
contribution to the (uncompensated) root locus is no longer true. Compare the
schematics below.
Root Locus Editor for Open Loop 1 (OL1)
8
Imag Axis
8
20
15
10
Real Axis
n) Suggest a strategy to get around this problem with the same PID controller but
dierent gains, now interpreting the peak time and overshoot requirements as
upper bounds: achieve peak time less than Tp,max = 1.61sec and overshoot no
more than 20%. Calculate the nal PID controllers gains K1 , K2 , K3 (notation
same as in the Nise textbook and Lecture 33).
8
1 2
Imag Axis
10
20
15
10
Real Axis
Step Response
1.2
Amplitude
1
0.8
0.6
0.4
0.2
0
0
0.1
0.2
0.3
0.4
0.5
Time (sec)
0.6
0.7
0.8
10
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
(1)
where we used the relationship ve = Kv for the motors backemf and we have
neglected the inductance. In the Laplace domain, this equation becomes
Vs (s) = I(s)R + Kv (s).
(2)
Next we must write the mechanical equation of motion as torque balance on the
motors shaft. The motors torque is provided by the electrical current through the
windings, and is Km i(t). There are three torques counteracting the motor: (i) the
pinion inertia J, (ii) the rotational viscous damper D, and (iii) the torque exercised
by the translational elements (mass M and translational viscous damper fv ) via the
pinion gear. Since at the moment we do not know how to express torque (iii), let us
denote it by Tp . The timedomain equation of motion of the motor shaft then becomes
Km i(t) = J (t) + D(t) + Tp (t).
(3)
(4)
(5)
(6)
We can now relate the pinion torque Tp to the pinion force Fp and the angular velocity
to the translational velocity v. Assuming that the pinion is perfectly cylindrical and
neglecting backlash or other nonlinearities due to the gears, then in the timedomain
we have
Tp (t) = rFp (t),
v(t) = r(t).
(7)
(8)
(9)
(10)
Finally, we need to collect all the above results towards a plant transfer function of
the form V (s)/Vs (s) (Laplace transform of the output velocity v divided by the Laplace
transform of the input voltage vs .) To do this, we must eliminate the intermediate
dynamical variables I(s), (s), Tp (s), and Fp (s). This is done by rst substituting (6),
Km I(s) = (Js + D)
I(s) =
(11)
Now that we have a relationship between current I(s) and translational velocity V (s),
we substitute it in (2) along with (10) to obtain
Vs (s) =
J + r2 M
D + r 2 fv
s+
rKm
rKm
RV (s) + Kv
V (s)
.
r
(12)
We are basically done; all thats left is to rewrite (12) in proper transfer function form,
clearly indicating the location of the pole:
rKm
R J + r2 M
V (s)
=
.
Vs (s)
D + r2 fv + Km Kv /R
s+
J + r2 M
(13)
m/sec
.
V
(14)
Vref
v(t)
Vtach
1
(16)
The motor circuit does not load the opamp (the reason we use the opamp in the
rst place is that it produces a voltage independent of the loadagain, under ideal
conditions.) Therefore, the source voltage applied to the DC motor in the feedback
conguration is
R2
Vs (s) =
(Vref Vtach ) K (Vref Vtach ) ,
(17)
R1
where we have denoted K R2 /R1 . We will refer to K as the feedback gain, as we
saw in Lecture 10.
Collecting the above results from the plant and the feedback loop analysis, we can
see that the feedback system is adequately represented as shown in Figure 2. The box
labeled as plant & controller represents the cascade of the opamp with the plant.2
The box labeled feedback represents the tachometer.
1
In real life we should be prepared to reproduce the units associated with each equation as needed,
and occasionally use them as sanity check!
2
The plant transfer function is particularly simple yet it includes the electrical and mechanical
dynamics of the DC motor including the rotational part (shaft with pinion) and the translational part
(rack geared to the pinion and carrying the mass load.)
Using the closedloop transfer function that we derived in class and is shown again
in Figure 2, we obtain
V (s)
0.3162K
=
.
(18)
Vref (s)
s + 2 + 0.3162K
Interpretation of the feedback transfer function
To appreciate the eect of feedback in system behavior, we start by comparing the
closedloop transfer function (18) to the plant (openloop) transfer function (14). We
observe the following:
1. The plants pole is at 2rad/sec; whereas the closedloop pole depends on the
feedback gain K and is located at 2 0.3162K. Therefore, the plants time
constant is = 0.5sec whereas the closedloop systems time constant is =
1/ (2 + 0.3162K) sec. In this system, as we increase the gain K the closedloop
system pole moves to the left on the splane; therefore, the closedloop system
response becomes faster.
2. The plants steady state value is v = 0.1581m/sec; whereas the closedloop
systems steadystate value also depends on the feedback gain K and is v =
0.3162K/ (2 + 0.3162K). In this system, as we increase the gain K the closed
loop systems steadystate value approaches 1; therefore, for large K the output
velocity is numerically approximately equal to the reference voltage Vref .
The rst observation means that we can specify (control) the feedback systems
time constant (speed) by changing the gain K. The second observation means that,
for large K, the feedback system acts to approximately match its output (velocity)
to the reference input (voltage.) In other words, if we apply a step function voltage
Vref = V0 u(t) and wait for a few time constants, the feedback systems output will
match (numerically) our reference voltage amplitude V0 . With some thought, you can
convince yourselves that, in fact, any time we change Vref externally, the system will
race to approximately match the velocity v to our new reference; and it will do so at
very high speed because high gain K also implies very small closedloop time constant.
It is important to note that, even though for large feedback gain K the closedloop
systems steady state is approximately equal to unity, it is not exactly so; the dierence
is called the steady state error and in this case it is
e = 1
0.3162K
2
=
.
2 + 0.3162K
2 + 0.3162K
(19)
Table 1 illustrates the trends described above. The feedback gain K is specied by
changing the resistance R2 . In practice, one might use a variable resistor (trimmer)
to make feedback gain adjustments more conveniently.
Its worthwhile to question the physical origin of the steadystate error (19) in
the velocity feedback system. Recall that the output of the dierential amplier, as
function of the voltages applied to the input terminals is given by (16). This can be
rewritten as
R2
Vs (s) =
E(s),
(20)
R1
5
R1 [k]
1
1
1
1
1
R2 [k]
1
2
5
10
100
K
1
2
5
10
100
[sec]
0.4317
0.3799
0.2793
0.1937
0.0297
e (%)
86.35
75.98
55.85
38.74
5.95
Table 1: Time constant, steadystate velocity and steadystate error for the velocity
control system.
where E(s) represents the Laplace transform of the error signal (see Figure 2.) In
other words, the motor is driven by a voltage proportional to the dierence between the
reference voltage and the (transduced) velocity. In response to vs , the DC motor draws
as much current as necessary from the opamp to drive the rotational/translational
loads.
Now consider a motor that is initially at rest and the sequence of events after Vref
is turned on: Since v(t = 0) = 0, the error signal at the dierential ampliers input
is initially equal to Vref . This produces a voltage vs and, in turn, provides current to
the motor to overcome the loads inertia and friction and start rotating the shaft. The
shaft rotation causes the rack to translate (via the pinion gear coupling) and, since
v(t) is now increasing, the feedback signal Vtach at the opamps terminal begins
to increase as well. This causes the error signal to decrease and, in turn, vs decreases
as well. This sequence continues until the load has reached steadystate, which in
this case we can also call terminal velocity. At steady state, there is no acceleration,
i.e. the terms , v in (3), (5) vanish. However, from these two equations we can see
that some residual torque is still required to overcome the rotational and translational
friction in the system. The dierence between the voltages at the input terminals of
the dierential amplier must, therefore, remain equal to e to provide the requisite
voltage (and current) to the DC motor so that it can keep the shaft rotating at constant
velocity despite the friction. The unfortunate outcome is that the output velocity
never reaches the numerical value of Vref ; this is, of course, undesirable, but it is an
unavoidable property of the feedback topology that we chose here. Well learn later
that other feedback topologies, e.g. the PID controller circuit that we will learn
about later, can correct this problem.
The physical description of the previous paragraph explains the origin of the terms
reference voltage and error signal. Moreover, we can also understand why the
steadystate error diminishes as the feedback gain K grows larger: the voltage vs
applied to the motor is K times the error signal; therefore, if K increases, then a
smaller error signal can drive the DC motor with a suciently large voltage vs to
overcome friction at steady state. The terminal velocity would then inch up to a
numerical value closer to Vref .
To conclude, we have plotted the unit step response of the system in openloop
conguration and feedback (closedloop) conguration sidebyside for comparison in
6
1
0.9
0.8
0.8
0.7
0.7
0.6
0.6
v [m/sec]
v [m/sec]
1
0.9
0.5
0.4
0.3
0.3
0.2
0.2
0.1
0.1
0.5
1
t [sec]
1.5
0
0
0.6
e [V]
0.7
0.5
0.4
0.3
0.2
0.1
1
t [sec]
1.5
K=1
K=2
K=5
K=10
K=100
0.8
0.5
1.5
0.9
0
0
1
t [sec]
K=1
K=2
K=5
K=10
K=100
0.5
10
i [A]
0.5
0.4
0
0
K=1
K=2
K=5
K=10
K=100
0
0
ClosedLoop current
0.5
1
t [sec]
1.5
Figure 3. The gure also includes the evolution of the current through the DC motor
and the error signal applied between the opamps terminals. We can verify the trends
described above, especially the time constant and steady state error of the closedloop
step response as we vary the feedback gain K.
We might wish, ideally, to have K because in this limit the steadystate error
is eliminated and, moreover, the systems response is speediest. In practice, this is not
possible or even desirable because of several reasons:
a) We can see from (11) that the current through the DC motor includes a term
proportional to the derivative of the translational velocity. If the velocity changes
very fast, its derivative becomes large, which means that the motor must draw
a large current from the opamp. Even though in our ideal model the opamp
can produce as much current as wed like, real life opamps can produce a limited
maximum current. If we select the feedback gain K to be large enough to require
the DC motor to draw more than the opamps available maximum current, the
opamp will saturate. This is a nonlinear eect that weve neglected in our
analysis.
b) We recall from Lecture 6 that the DC motor has a nite inductance L which we
7
can neglect if the systems response is slow enough. If we select the feedback
gain K to be large enough to require a response of time constant comparable
to the time constant due to L, then L will limit the response speed. This is
a linear eect that weve neglected in our analysis. In Problem Set 3, we ask
you to modify the model to include L, which will allow you to explore feedback
dynamics in a secondorder system.
c) There are other phenomena that weve neglected: e.g., the internal gain and input
resistance of the opamp were both assumed to be innite in the dierential
amplier model; the DC motor itself has nonlinearities (e.g. dead zone), etc.
Finally, not to mince words, we must always be mindful that if we drive too
much current through an opamp or DC motor, we might burn either or both of
them!!
The above caveats do not reduce the value of our simplied model; they just serve as a
warning that simple models, powerful as they can be with the intuitive understanding
of the physical world that they provide us with, they are limited by their inherent
assumptions. A good Engineer must know which is the minimum complexity required
to deal eectively with each given situation, and use just that amount of complexity.
(This rule is known as Occams razor.)
The last question (and perhaps the most relevant one) is: why use feedback at all?
From our analysis above, it is clear that by using feedback we can get the system to
behave in ways that its natural (openloop) physics do not allow, e.g. we can get a
faster response than the openloop system. It is also convenient that we can set the
desired output (velocity) as an external reference voltage Vref and then have the system
race to match the output to our reference input. In many cases, the most important
reason for using feedback is disturbance cancelation. We have not yet developed the
necessary tools to analyze this eect; but it is important to emphasize even now that
if the system is subject to a disturbance beyond our control, e.g. electrical noise,
mechanical vibrations, etc. which might cause the output to deviate from the desired
value Vref , then the feedback loop will act to cancel that disturbance.
A cars cruise control option is a good example of feedback action canceling distur
bances; if you have ever used cruise control, you probably know already its utility and
its limitations (e.g., if the car needs to climb a steep hill while on cruise control, the
engine might not be able to provide enough torque, and the speed then drops or the
engine might even stall.) We will examine in detail disturbance cancelation in the near
future.
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
1. For each one of the following systems, argue if in your opinion it is openloop
or closedloop. In your argument, include your definitions of the systems inputs
and outputs. Briefly describe how feedback is effected in the systems which you
decide are closedloop.
a) Washing machine.
b) T Green line subway car.
c) Audio speaker.
d) Air conditioner.
e) Manual gear train in an automobile.
f ) Automatic gear train in an automobile.
2. Write (but dont solve) the equations of motion for the following mechanical
systems, and state if the systems are linear or nonlinear.
a) An inertia J of radius r attached to a fixed axis of rotation A as shown
on the next page. The inertia is in contact with a mass M attached via a
spring of stiffness K to a fixed wall. The inertiamass contact is subject to
viscous friction of coefficient fv . The motion of the mass with respect to the
horizontal floor is subject to the same viscous friction coefficient fv . The
system input is a horizontal force f (t) on the mass M and the output is the
rotation (t) of the inertia.
J
fv
f(t)
M
fv
external
force
(input)
m
gravity
3. Given below are the equations of motion for several systems. f (t) denotes the
external force (i.e., input). Which of these systems are linear? Include a brief
justification based on the definition of linear systems from Lecture 1.
a) 7x + 0.5x + 5 sin 2
t
x = f (t).
10
b) 7x + 0.5x + 5(1 + 0.1x)x = f (t).
c) 7x + 0.5x + 5x + 5 = f (t).
d 1
d) dt
mx 2 + 21 kx2 = 0.
2
4. Consider the basic flywheel rotating in bearings that we use in the Lab, as shown
in Fig. 1 of the handout Description of the Experimental Rotational Plant. Assume that the flyywheel, spinning with angular velocity (t), is driven by a
2
time-varying torque source T (t), and that a general friction torque Tf (), is a
combination of Coulomb friction due to the contact between the bearings and
viscous friction due to eddycurrent damping, according to
Tf () = TC + b,
where TC and b are constants with the appropriate units.
a. Derive the equation of motion for the flywheel under these conditions.
b. Consider the case when the applied torque is zero, and the flywheel is spun
down from at initial angular velocity (0) = 0 . Solve the equation of
motion.
c. Sketch the angular velocity response derived in the previous step, and discuss
what happens after a long time t elapses.
5. Given the moment of inertia of the flywheel is J = 3.0 102 kg m2 , use
the data from your experiment to determine the Coulomb frictional torque and
viscous friction coefficient TC and b, respectively. (Hint: slides 17 and 18 from
Lecture 3 show you some simple techniques to estimate fixed system parameters
from experimental data. In 2.671, you will learn more rigorous ways of measurements and instrumentation.)
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
4
_;
_
s2 s2 + 4
s3 3s2 + s + 2
H(s), where H(s) is a wellbehaved function of s,
s
1.c) F3 (s) =
2. Obtain the transfer function of problem 2.a in the Problem Set #1 by Laplace
transforming the equations of motion that you derived previously. (If you dont
have copy of your solution, you can nd the equations on motion in the solutions
to Problem Set #1) The input to the system is the force f(t) and the output the
rotation angle (t).
3. Consider the resistorcapacitor (RC) circuit drawn below, where the input is a
voltage source vi (t) and the output is the voltage vC (t) across the capacitor. Our
purpose in this problem is to establish the analogy between this system and the
ywheel system (with torque as input and angular velocity as output.)
3.a) Using the voltagedivider principle, derive the RC systems transfer func
tion VC (s)/Vi (s).
3.b) Using the transfer function, derive the impulse response and the step re
sponse of the RC system in the time domain.
3.c) Compare with the respective ywheel responses, and identify equivalent
quantities.
3.d) Now we change the system so that its output is the voltage vR (t) across the
resistor. What is the new transfer function VR (s)/Vi (s)?
1
3.e) What is the relationship between the impulse and step responses of the RC
system with vR (t) as output to the respective responses with vC (t) as the
output?
vR (t)
R
vi (t)
vC (t)
x(t)
m
viscous friction
coefficient b
g
4.a) We model this physical situation as a system with the weight of the mass as
input (turned on at t = 0 when the mass is released, constant thereafter)
and the velocity v(t) = x (t) as output. What is the transfer function of this
system?
4.b) Use the transfer function to derive an expression for the velocity as function
of time t, for t > 0. Can you identify one (or more) time constant(s)?
4.c) As time t , show that the velocity approaches a constant value. This
is known as the systems steady state in general, and in the specic case
of an object falling due to its own weight while it is subject to friction, as
terminal velocity. Derive an expression for the terminal velocity in this
system.
4.d) Identify analogies between this system and the RC system of the previous
problem, as well as the ywheel system from the laboratory.
4.e) Now consider the same physical situation, except we dene the output as
the mass travel x(t). What is the transfer function of this new system?
4.f ) Use at least two methods to derive an expression for x(t), and verify that
the two methods yield consistent answers.
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
In this problem, we will practice using Matlaband sisotool to model and analyze
the response of dynamical systems.
The systems well be analyzing are based on a modified version of the DC motor
and flywheel system from the lab, with pinionrack load and velocity feedback. In the
lecture, we neglected the motors inductance L; here, we will analyze Ls effect on the
openloop and closedloop system responses. We will walk you stepbystep through
the modeling and analysis of the openloop and closedloop systems and show you how
to find out the effects of changing the gain in the feedback loop analytically and with
Matlab.
The references to equations are from the document labeled Supplement to Lecture 10,
Please study the Supplement thoroughly and make sure you understand it well before
attempting this problem set. You will also need the lecture notes from Lecture 09,
which include a tutorial on Matlabs LTI Toolbox and the sisotool.
The model is shown above, where the DC motors inductance L has been included
in the circuit diagram. Since weve added one energy storage element, we expect to
be dealing with a secondorder system in this case. Whether it is overdamped or
1
underdamped will depend on the relative strengths of the energy storage components
(inductor, inertias) and the dissipation elements (resistor, dampers.)
1) Modify the Laplacedomain KVL equation (2) to include the inductance. Argue
that (4), (6), (910) need not be modified in this system, and thus (11) remains
valid.
2) Substitute (11) to your new KVL equation from question 1 and derive the open
loop transfer function V (s)/Vs (s).
3) Substitute L = 1H and the remaining numerical values from the Supplement,
and find the poles of your transfer function. You should find that this system is
underdamped.
4) Use the LTI tool to plot the step response of the openloop system. Compute the
steadystate analytically using the transfer function from question 3 and verify
that it matches the LTI tools prediction.
5) Use the plot from question 4 to estimate the rise time of the system. How does it
compare with the rise time of the openloop system from the Supplement (i.e.,
the identical system but without the inductance.)
6) Using the numerical form of the openloop transfer function from question 3,
derive the closedloop transfer function with the feedback gain K as a variable.
7) Compute the steadystate velocity and the steadystate error as function of feedback gain K for the closedloop system of question 6. Use an argument based on
the physics of the system to explain similarities or differences to the inductance
free system that was analyzed in the Supplement.
8) Substitute K = 1 into the closedloop transfer function from question 6 and use
Nise section 4.6 to estimate the peak time, percent overshoot and settling time.
9) Use the LTI tool to plot the step response of the closed loop system with K =
1 and verify that the steadystate velocity, peak time, percent overshoot and
settling time that you obtain from the numerical simulation are in agreement
with the analytical estimates.
10) Substitute K = 25 into the closedloop transfer function from question 6, and use
the LTI tool to plot the step response of this highgain system. Comment, based
on the plot and as thoroughly as you can, on the similarities and differences, if
any, to the lowgain system step response from questions 89.
11) Now go back to your openloop transfer function from question 2 and substitute
L = 1/16 = 0.0625H. Find the poles of the new transfer function; you should
observe that this system is overdamped. Comment on the locations of the two
poles relative to the pole of the inductancefree system from the Supplement.
2
12) Using the numerical form of the openloop transfer function from question 11,
derive the closedloop transfer function with the feedback gain K as a variable.
13) If the feedback gain K were to vary from 0 to +, would the system be (i) always overdamped; (ii) always underdamped; (iii) transition to/from overdamped
from/to underdamped? Justify your answer using the transfer function you derived in question 12.
14) Compute the steadystate velocity and the steadystate error as function of feedback gain K for the closedloop system of question 12. Are they the same or
different than those of the high-inductance closedloop system from question 7?
Is that consistent with the physicsbased argument that you made in your answer
to question 7?
15) Use the LTI tool to plot the step response of the closedloop system from question 12 for gains K = 1 and K = 25. Verify that the responses generated by the
LTI tool are consistent with your answer to questions 13, 14.
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
1. Sketch the Root Locus for the openloop polezero configurations shown in page
18 of Lecture 11. For each case, briefly justify your choices using the Root Locus
properties / sketching rules. (You may use Matlab to verify your sketches, but
make sure you understand the relationship between the Root Locus appearance
and its properties.)
2. Consider the Root Loci shown in page 19 of Lecture 11. For each one, briefly state
if they are valid, i.e. if they meet the Root Locus properties / sketching rules.
For those that are invalid, sketch the correct Root Locus. (If you use Matlab to
verify your answers, please make sure that you match Matlabs numerical answers
to the Root Locus properties / sketching rules.)
3. We are given a feedback system described by the block diagram shown below.
Y (s)
KGc (s)
Gp (s)
X(s)
8
.
(s + 2)(s + 4)
In this problem, we will investigate the effect of gain K and different controllers
Gc (s) on system performance. You may use Matlab to obtain numerical values
for the response characteristics (such as settling time, etc.) but you should make
sure you verify the results with the analytical formulae from the class notes and
textbook.
3.a) Before considering feedback control, calculate the values of damping ratio
and natural frequency n for the plant transfer function Gp (s). Which is
the dominant pole and what is the slowest time constant that we can expect
for he openloop plant? Verify using Matlab.
3.b) Going on to feedback control for this plant, first we consider a proportional
(P) controller
Gc = 1.
Using Matlab, sketch the Root Locus for the P controller and verify its
appearance with the Root Locus properties / sketching rules. What is the
smallest value of gain K that results in the fastest possible settling time for
this controller? What is the steadystate error?
3.c) To speed up the response further, we now consider a proportionalderivative
(PD) controller,
Gc = s + z,
with the zero located at s = 6 (it i.e., z = 6.) Using Matlab, sketch the
Root Locus for the PD controller and verify its appearance with the Root
Locus properties / sketching rules. For gain K = 0.25, what are the settling
time and overshoot? What is the steadystate error?
3.d) To eliminate steadystate error, we first consider a pure integral (I) controller,
1
Gc = .
s
Show that indeed the steadystate error is zero in this configuration. Using
Matlab, sketch the Root Locus for the I controller and verify its appearance
with the Root Locus properties / sketching rules. Point out two obvious
disadvantages of the I controller in terms of the response speed and stability
of the feedback loop.
3.e) To fix the problems with the pure integral controller, let us now consider a
proportionalintegral (PI) controller,
Gc =
s + zi
,
s
where now the zero is located very near the origin, at s = 0.1 (it i.e.,
z = 0.1.) Using Matlab, sketch the Root Locus for the PI controller and
verify its appearance with the Root Locus properties / sketching rules. Note
the similarities and differences between this Root Locus and the Root Locus of the P controller from question (b). Verify analytically that in the PI
controller the steadystate error is still eliminated. Also verify using Matlab
that the fastest possible setting time yielded by the PI controller is approximately the same as the fastest possible settling time of the P controller.
2
s + zi
,
s
where the two zeros z and zi are in the same locations as before. Using Matlab, sketch the Root Locus for the PID controller and verify its appearance
with the Root Locus properties / sketching rules. Still using Matlab, adjust
the gain such that the rise time equals approximately 0.1 sec and compute
the overshoot and steadystate error for this control configuration. What
do you observe?
4. In this problem, we will generate a statespace representation for the compensated
2.04A Tower system. The model is shown in the figure below. The wind force
(disturbance) is denoted as w, and the actuator force is denoted as a. Note that
the actuator exerts equal but opposite forces on the tower and slider.
4.a) Which forces are acting on the tower? Be particularly careful when you
include the force due to spring k2 , since the spring extension is the relative
displacement of the tower with respect to the slider. Similarly, be particularly careful when you include the force due to damper b2 , since damping
is due to the relative velocity of the tower with respect to the slider. By
applying force balance, obtain an equation of motion for the tower.
4.b) Which forces are acting on the slider? Be careful with the spring and
damper forces for the same reasons quoted in the previous question. By
applying force balance, obtain an equation of motion for the slider.
3
q1
x1
q2 v1
q=
q 3 x2 .
q4
v2
Rewrite the towers and sliders equations of motion in terms of the state
variables q1 , q2 , q3 , q4 .
4.d) Solve the towers equation of motion for q2 and the sliders equation of
motion for q4 .
4.e) To the two equations that you obtained in the previous question append the
definitions q2 = q1 , q4 = q3 . Rewrite the resulting four equations in matrix
form, i.e. find the matrix A and vectors B, G such that
q(t) = Aq(t) + Ba(t) + Gw(t).
We will refer to B, G as actuation and disturbance vectors, respectively.
(Note that in multiinput systems B and G would actually be matrices;
hence, the uppercase letter notation.)
4.f ) Now substitute system parameters m1 = 5.11kg, b1 = 0.767N sec/m,
k1 = 2024N/m; m2 = 0.87kg, b2 = 8.9N sec/m, k2 = 185N/m. Using
these values into the system matrix A and use Matlab to compute the
eigenvectors and eigenvalues as follows: [va,da]=eigs(a). This will return
two matrices va and da. The columns of matrix va are the eigenvectors;
the diagonal elements of matrix da are the eigenvalues corresponding to the
eigenvectors columnbycolumn. The four eigenvalues you obtain should
form two complexconjugate pairs.
4.g) The eigenvalues of the matrix A are the same as the poles of the transfer
function relating any of the state variables q1 , q2 , q3 , q4 to either the actuation a or the disturbance w. Use this fact to obtain the respective damped
oscillation frequencies and natural frequencies of the two modes of oscillation of this system (one mode corresponds to one complexconjugate pair of
poleseigenvalues.) Use the result to justify the following statement: The
2.04A Tower has two modes of oscillation, one slow and one fast.
4.h) Use the correspondence between eigenvectors and eigenvalues to justify the
following statement: In the slow mode the tower and slider mass oscillate
in phase, while in the fast mode the tower and slider mass oscillate out of
phase.
4.i) In Matlab, define the matrices b, c1 such that b is the actuation matrix
with the wind force acting as the sole input to the system and c1 is the
observation matrix with the tower displacement as the system output. Also
define a scalar d=0. Use the command tower1=ss(a,b,c1,d) to obtain
the statespace representation of the system. Call the LTI Viewer with
the command ltiview, import tower1 and select the impulse response.
Which mode has been excited by the impulse input? Compare the damped
frequency of oscillation of the mode that you think has been excited with
the frequency of oscillation that you measure from the impulse response
simulation.
4.j) Now define a new matrix c2 such that the slider displacement is the system
output, and a new statespace representation tower2=ss(a,b,c2,d). Open
a new LTI Viewer window (without closing the window that you generated in
the previous question), import tower2 and generate its impulse response. Is
the phase relationship between the tower1 and tower2 responses consistent
with the oscillation mode that the system is in?
4.k) Convenient as they are for observing these interesting behaviors, the tower
and slider displacements are not easy to measure in a real situation of active
compensation in a building. To emulate the situation better, in our experimental project we will use two independent measurements of the tower
velocity v1 and relative velocity v2 v1 , respectively. Define a new matrix c3 for these output variables, and a new statespace representation
tower3=ss(a,b,c3,d). Generate its impulse response in the LTI viewer,
and comment on how it relates to the displacement impulse responses of the
previous questions.
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
1. For each one of the following transfer functions, identify the zeros and poles,
show their locations on the complex (s) plane, then and derive and plot the step
response.
1.a)
T (s) =
Answer: Pole: p=-2,
2
s+2
Zero: none
PoleZero Map
Step Response
2
1.5
1
0.8
0.5
Amplitude
Imaginary Axis
0
0.5
0.6
0.4
1
0.2
1.5
2
4
0
0
0.5
Real Axis
1.5
Time (sec)
5
(s + 2)(s + 6)
Answer: Poles: p1 = 2, p2 = 6,
Zero: none
2.5
PoleZero Map
Step Response
0.45
0.4
1.5
0.35
0.3
0.5
Amplitude
Imaginary Axis
0
0.5
0.25
0.2
0.15
0.1
1.5
0.05
2
8
0
0
0.5
Real Axis
1.5
2.5
Time (sec)
10(s + 7)
(s + 10)(s + 20)
0.4
1.5
0.35
0.3
0.5
0.25
Amplitude
Imaginary Axis
PoleZero Map
0
0.5
0.2
0.15
0.1
1.5
0.05
2
35
30
25
20
15
10
0
0
Real Axis
0.1
0.2
0.3
0.4
Time (sec)
n2 = 200 and = 30/2/ 200 = 1.06 > 1. 2nd order overdamped system.
Step response [1 + K1 ep1 t + K2 ep2 t ] u(t).
1.d)
T (s) =
s2
20
+ 6s + 144
PoleZero Map
Step Response
15
0.25
10
0.2
Amplitude
Imaginary Axis
5
0
0.15
0.1
5
0.05
10
15
4
0
0
0.5
Real Axis
1.5
Time (sec)
n2 = 144 and = 6/2/ 144 = 0.25 < 1. 2nd order underdamped system.
Step response [1 Aed t cos (d t )] u(t).
1.e)
T (s) =
s+2
s2 + 9
Step Response
0.7
0.6
0.5
0.4
Amplitude
Imaginary Axis
0
1
0.2
0.1
3
4
3
0.3
0.1
2.5
1.5
0.5
0.5
0.2
0
Real Axis
10
Time (sec)
(s + 5)
(s + 10)2
15
20
PoleZero Map
Step Response
0.06
1.5
0.05
0.04
0.5
Amplitude
Imaginary Axis
0
0.5
0.03
0.02
1
0.01
1.5
2
12
10
0
0
0.1
Real Axis
0.2
0.3
0.4
0.5
0.6
0.7
Time (sec)
f(t) [a.u.]
1.5
0.5
0.5
1
t [sec]
1.5
Answer: This is underdamped 2nd order system. Starting from the transfer
function of the second order system
A
n2
,
s2 + 2n s + 2
a.u. denotes arbitrary units; its use appropriate when we consider a function that does not
correspond to any particular physical quantity.
and the steady state value is 1 (from the given figure). Therefore, A = 1.
The step response of the underdamped second order system is
1 aed t cos (d t ) u(t),
p
where d = n and d = n 1 2 .
To get the natural frequency, we choose two peak points at t1 = 0.35 sec and
t2 = 0.95 sec. The cosine term will be 1 at the peaks, so that we can consider
exponential decay term only.
From that d = ln 0.72
/ {t2 t1 } = 0.9796. Therefore n 9.8. (The reason
0.4
why I picked two points instead of one point is to cancel the constant a).
The transfer function is
64
,
+ 1.96s + 96
and its step response by MATLAB is
s2
Step Response
1.8
1.6
1.4
Amplitude
1.2
1
0.8
0.6
0.4
0.2
0
0
0.5
1.5
Time (sec)
Note that the estimated parameters might be slightly different than the original
because our reading of the plot can never be completely accurate.
5
(0)
= 0.
r(t)
l
l
r(t)
3.a) Derive the equations of motion for the two cases, using the angle (t) as the
output variable, and assuming small motion || 1 away from the vertical.
Ffriction
m
r(t)
mg sin
r(t)
mg
Ffriction
mg sin
mg
Answer: We begin with the freebody diagrams (FBDs) for the two cases,
shown respectively above as well. For the standard pendulum (lefthand
side) torque balance from the FBD in conjunction with Newtons law of
motion yield
= r(t)l mgl sin (t) Ffriction l.
(1)
ml2 (t)
(2)
Assuming that the pendulum never strays too far away from the vertical,
|| 1, therefore sin 1 and the linearized equation of motion becomes
+ b (t)
+ g (t) = r(t) .
(t)
ml
l
ml
(3)
(4)
(5)
Comparing (5) and (3), we can see that there is only a difference in sign
compared to the standard pendulum case. However, we will see that this
difference has a profound effect on the system behavior.
3.b) Derive the transfer function (s)/R(s) for the two cases, and draw the
locations of any poles and zeros that you find on the complex (s) plane.
Answer: Starting with the standard pendulum, Laplace transforming both
sides of (3) and taking into account the zero initial conditions, we obtain
1
(s)
ml
=
.
b
g
R(s)
2
s +
s+
ml
l
(6)
From this we conclude that there are no zeros in the transfer function, and
there are two poles located at
s
2
1
b
b
g
sp =
4 .
(7)
2
ml
ml
l
7
2ml
and conjugate imaginary parts
s
2
b
g
4
.
l
ml
Matching the coefficients of the polynomial in the denominator with those
of our standard 2nd order system transfer function, we find that for the
standard pendulum
r
g
1 b
.
(8)
n = 2
,
=
l
2 m gl
In the case of the inverted pendulum, similar procedure yields
1
2
(s)
ml
=
.
b
g
R(s)
2
s
s +
ml
l
Again, there are no zeros, and there are two poles located at
s
2
1
b
b
g
sp =
+ 4 .
2
ml
ml
l
(9)
(10)
Unlike the previous case, both poles are now real, and, moreover, the pole
located at
s
2
1
b
g
b
sp+ =
+
+ 4 .
2
ml
ml
l
is positive! This indicates that the impulse, step, etc. responses of the
inverted pendulum contain exponentially increasing terms. (You can easily
verify the effect of the exponentially increasing term by trying to hold a pen
upright on your palm.) It is important to note that, since (t) may increase
exponentially in this case, the assumption of small || 1 will break down
after some time t, and then system behavior wont be well modeled by our
equations.
The locations of the system poles for the standard and inverted pendulum
on the complex plane are shown on the left and righthand side diagrams
below, respectively, on the next page. Note the locations of the poles for the
underdamped standard pendulum are symmetric with respect to the real
8
axis (i.e., complex conjugates). Also note the location of one pole of the
inverted pendulum on the righthand side of the complex plane. Systems
with at least one pole on the righthand side of the complex plane are called
unstable.
standard
pendulum
j!
1
2
b
2ml
1
2
j!
inverted
pendulum
4g
l
4g
l
b
ml
b
ml
2
14 b
2
ml
b
ml
3
4g 5
+
l
2
3
s
2
4g 5
14 b
b
+
+
2
ml
ml
l
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
1.e) In the Eddy braking experiments we carried out in the laboratory, we used
a flywheel made out of copper. If the flywheel were made out of steel, would
the braking time constant increase or decrease?
Answer: Copper has much higher conductivity than steel (copper is 5
107 1 /m whereas steel is 5 106 1 /m or less for various types of steel
alloys.) Therefore, the ohmic losses in steel due to the magnets presence
would be higher and the braking time constant would become shorter (i.e.,
the effective viscosity would become higher.)
1.f ) In the laboratory flywheel experiment, if we define the output as a rotation
angle and implement proportional control with unity negative feedback, can
we achieve an arbitrary damping ratio?
Answer: In this case, the openloop flywheel has one negative real pole
and one integrator. Therefore, the root locus with proportional control
looks as in the diagram below. For high enough gain, when the system
becomes underdamped, the damping ratio is given by = cos . Therefore,
by increasing the gain we can, in principle, achieve any damping ratio in the
range (0, 1] (though, in practice the gain cannot increase indefinitely and,
therefore, there is a lower limit in the values of damping ratio we can expect
to achieve.) At low gains, the response is overdamped and the damping
ratio can become arbitrarily high as the gain tends to zero.
1.g) If an openloop system has three or more negative real poles, no zeros, and
we implement proportional control with unity negative feedback, is it safe
to crank up the gain arbitrarily?
Answer: The Root Locus in this situation is as shown in the figure below.
We can see that, for high enough gain, the closedloop poles can enter the
righthand plane, i.e. the feedback system becomes unstable. That is not
safe.
8
12
10
4
Real axis ()
2.a) Can the response of this system be tuned (approximately) to a settling time
of 1sec with an appropriate choice of feedback gain K? Justify your answer
4
= 1 n = 4
n
The given root locus does contain closedloop poles whose real part equals
n = 4 (see annotated root locus below;) therefore, it is possible to
achieve settling time of 1sec by appropriate choice of feedback gain in the
given system.
2.b) Can the response of this system be tuned (approximately) to an overshoot
of 4.32% with an appropriate choice of feedback gain K? Justify your answer
graphically. If your answer is yes, there is no need to compute the value
of K that
would give this amount of overshoot. Hint: A damping ratio of
= 1/ 2 would approximately yield the desired overshoot value.
T =1 sec
s
=0.717
8
12
10
4
Real axis ()
pk zk
10 4 2 (20)
=
= +2.
#p #z
31
3.c) Sketch the root locus based on the information from the previous questions. There is no need to annotate breakin/away points or imaginary axis
intercepts, if any.
Answer:
j
111
000
000
111
000
111
000
111
000
111
-20
000
111
111
000
000
111
000
111
000
111
111
000
000
111
000
111
-10
-4
00
11
11
00
00
11
00
11
-2
+2
111
000
000
111
000
111
000
111
000
111
3.d) If you had to recommend this system to a customer, what would you advise
with respect to increasing the feedback gain K indefinitely?
Answer: Since the root locus crosses over to the righthand halfplane, the
system will become unstable for a sufficiently high value of the feedback
5
gain. This is the most important warning one should give to a customer.
In addition, large gain in the stable regime (just before the crossover to
instability) leads to increased overshoot and longer settling time; both of
these qualities are generally undesirable.
4. The response of a proportionalcontrol negative feedback system to a unit step
function input is shown below.
Step Response
1.4
1.2
Amplitude
0.8
0.6
0.4
0.2
0.5
1.5
2.5
Time (sec)
We are told that the openloop transfer function of this system is 2nd order and
contains no zeros.
4.a) Use the transient to provide two arguments in support of the assertion that
this system is (at least) 2nd order.
Answer: The systems response is underdamped, with clear evidence of overshoot and oscillation; these phenomena do not occur in firstorder systems.
Therefore, it must be second order or higher. Moreover, at very small time
t = 0+ we can see that the response is differentiable; this is also indicative
of second order system behavior.
4.b) By further observing the transient, justify (or disprove) that the openloop
transfer function contains a free integrator.
Answer: The steadystate error appears to be zero, since the closedloop
response to the unit stepfunction approaches one at large times. That
can only happen if there is a free integrator in the proportional control
configuration.
4.c) Even closer observation of the above closedloop transient yields the damped
oscillation frequency d 4rad/sec and settling time Ts 2sec. Where is
the second pole of the openloop transfer function located?
Answer: For the second order system with proportional feedback, the Root
Locus is as shown in the diagram below. From the observations, we deduce
that the closedloop (CL) poles are as indicated in the diagram, with
4
= 2sec n = 2.
n
Since the breakaway point is halfway between the two openloop poles in
this Root Locus, we deduce that the second openloop pole is at s = 4.
Ts =
4.d) What is the value of the feedback gain K that results in the closedloop
response shown above?
Answer: The closedloop transfer function is
K
K
s(s + 4)
= 2
.
K
s
+
4s
+
K
1+
s(s + 4)
Comparing with the standard form for the second order system
n2
,
s2 + 2n s + n2
we can see that K n2 . The natural frequency can be computed using
Pythagoras theorem on a triangle with sides d and n , as shown, i.e.
n = 42 + 22 = 20
and, hence, K = 20.
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
Quiz 1
TOTAL PAGES: 3
NAME:
MIT ID:
1. (40%) We consider a system with input y(t), output x(t), and transfer function
X(s)
s
=
,
Y (s)
(s + 2) (s + 4)
where Y (s) and X(s) are the Laplace transforms of y(t) and x(t), respectively.
1.a) Draw the poles and zeros of this system in the complex plane.
1.b) If the input y(t) is a unit step function, what is the output x(t)?
1.c) If the input y(t) is an impulse function (function), what is the output
x(t)?
1.d) Would you classify the step and impulse responses from the previous two
questions as undamped, underdamped, critically damped, or overdamped?
1.e) If we instead consider a new system with output
t
w(t) =
x(t/ ) dt/ ,
0
what is the new transfer function W (s)/Y (s), and what is the impulse
response?
3. (20%) A customer requests from you a system whose step response should be
as fast as possible and with as little overshoot as possible. You may select from
among systems (1), (2), (3) whose complex poles and zeros are shown, respec
tively, below.
j!
j!
j!
3
-10
-6
-2
-3
-3
Without explicitly computing their step responses, briey debate the advantages
and disadvantages of each choice (1 2 sentences per system.)
GOOD LUCK!
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
2.04A
Concepts
Linear
time
invariant
systems
Solution
in
the
time
domain
(ordinary
differential
equations
ODEs)
Solution
in
the
Laplace
domain
(transfer
function
TF)
Poles
and
zeros;
their
physical
meaning
Stability:
stay
on
the
left-hand
plane
1st
order
systems
Impulse,
step,
and
other
responses
Time
constant
Steady
state
2nd
order
systems
Impulse,
step,
and
other
responses
Dominant
pole
(slow/fast
poles)
Over-/critically/under-damped
response
Damping
ratio,
natural
frequency,
damped
oscillation
frequency
Rise
time,
settling
time,
peak
time,
overshoot
Steady
state
State
space:
formulation
only
Eigenvalues
of
system
matrix
system
poles
Certain
physical
implementations
Flywheel
DC
motor
with
flywheel
load
and
with/without
inductance
Simple
RC
/
RL
/
RLC
circuits,
impedance
and
voltage
divider
More
generally:
physical
model
=>
ODE
=>
system
behavior
Feedback
Feedback
loop
architecture
and
feedback
transfer
function
Feedback
loop
terminology:
plant,
controller,
open/closed
loop
TFs
The
significance
of
feedback
gain
and
steady-state
error
Root
Locus
(finding
the
location
of
closed-loop
poles
as
gain
changes)
Theorems
for
drawing
Root
Locus
(but
not
in
exhaustive
detail,
as
in
the
book;
what
we
covered
in
class
only)
Root
Locus
concepts
and
their
physical
meaning:
branches,
asymptotes,
real
and
imaginary
axis
intercepts,
break-out/break-in
points
Controlling
the
transient
response
P-control
(simplest,
limited)
PD-control
(stabilizes
and
speeds
up)
I-control
(terrible
but
it
does
fix
steady-state
error)
PI-control
(fixes
steady-state
error
at
cost
of
slight
slowdown)
PID-control
(good
compromise
of
all
the
above)
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.