Documente Academic
Documente Profesional
Documente Cultură
This problem set is a review of material on modeling and analysis of electrical, mechanical, elec
tromechanical, uid, and thermal dynamic systems. The problems from Franklin, Powell, and
Emami-Naeini, Feedback Control of Dynamic Systems, 6th Ed. are referenced by FPE Chap
ter.Problem#. The Problem Archive can be downloaded as a complete pdf le from the course
web page; see the problem numbers therein (pdf bookmarks will help you nd them). Note that
the problem archive also contains solutions to many of the problems. Please do not consult these
solutions initially. Refer to the solutions if you are stuck, or to check your analysis.
The following problems are assigned to both 2.14 and 2.140 students.
Problem 1 FPE 2.5
Problem 2 FPE 2.10
Problem 3 FPE 2.15, a only
Problem 4 FPE 2.25
Problem 5 Archive Problem 4.24
Problem 6 Archive Problem 10.6
Problem 7 Archive Problem 14.3
Problem 8 Archive Problem 14.10
The following problems are assigned to only 2.140 students. Students in 2.14 are
welcome to work these, but no extra credit will be given.
Problem G1 FPE 2.9 Write the equations of motion in state-space form in terms of state variables
x, x,
y, and y,
and with input u, and output y. Then eliminate variables in the state equations
to nd the transfer function from input u to output y. What are the locations of the poles
and zeros of this transfer function?
Problem G2 FPE 2.12
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
The following problems are assigned to both 2.14 and 2.140 students.
Problem 1 Archive Problem 17.9
Problem 2 Archive Problem 17.18
Problem 3 FPE 3.20
Problem 4 FPE 3.28
Problem 5 Consider a motor with the following parameters: torque constant K = 1 Nm/A, rotor
inertia J = 102 kg m2 , and coil resistance R = 5 . A torque disturbance Td acts on the
rotor of the motor in opposition to the motor torque Tm = Ki, where i is the motor coil
current. The voltage at the motor terminals is Vm = iR + K, where is the motor angular
velocity.
a) We consider the motor as a plant with input Vm and output . Draw a block diagram for
the motor system which shows these signals as well as i, Tm , Td , and the back emf voltage
vb = K.
b) Now we ask you to design a proportional speed controller of the form
Vm = Kp (r ).
Here Kp is the proportional gain of the controller, and r is the speed command. Choose Kp
such that the closed-loop system has a time constant of = 1 msec. For this value of Kp
make plots of Vm and when the reference is a unit step r (t) = 1us (t) rad/sec.
c) Now we ask you to design a proportional plus integral speed controller of the form
Vm (s) = Kp (1 +
1
)(r (s) (s)).
Ti s
Here Kp is the proportional gain of the controller, and Ti is referred to as the integral
time. Choose Kp and Ti such that the closed-loop system has a natural frequency of n =
1000 rad/sec and a damping ratio of = 0.4. For these values make plots of Vm and when
the reference is a unit step r (t) = 1us (t) rad/sec.
Problem 6 An ideal linear voice coil actuator is configured as shown below with the actuation axis
oriented vertically. This ideal actuator has no internal mass or electrical resistance. Gravity
acts downward as shown in the figure. For the purposes of this problem, assume that motion
in the x direction is unlimited. The actuator has F = Kf i and e = Kf x.
The actuator mechanical port is connected to a mass m. The actuator electrical port is
connected to a resistance R in series with a switch. Consider the two cases: a) switch open
and b) switch closed. At t = 0, the mass is released with x(0) = 0, x(0)
= 0.
Write the equations of motion for the two cases. Take care with minus signs in your analysis:
note that with the switch closed e = iR. To facilitate this analysis, draw a block diagram
for this system which includes at least the signals e, i, F , x, x,
and which has the acceleration
of gravity g as an input. Use this block diagram to determine the transfer function from input
g to output x.
Problem 7 An ideal linear voice coil actuator is configured as shown below with the actuation axis
oriented vertically. This ideal actuator has no internal mass or electrical resistance. Gravity
acts downward as shown in the figure. For the purposes of this problem, assume that motion
in the x direction is unlimited. The actuator has F = Kf i and e = Kf x.
The actuator
mechanical port is connected to a mass m. We consider two cases in which the electrical port
is connected to a capacitor or an inductor.
a) The actuator electrical port is connected to a capacitance C as shown below.
Write the equations of motion. Take care with minus signs in your analysis: note that
2
i = Cde/dt. To facilitate this analysis, draw a block diagram for this system which includes
at least the signals e, i, F , x, x,
and which has the acceleration of gravity g as an input. Use
this block diagram to determine the transfer function from input g to output x.
and
plot as a function of time. Write an expression for the acceleration; how does changing the
value of C affect the acceleration? From the viewpoint of the mass, what mechanical element
is it connected to?
b) The actuator electrical port is connected to an inductance L as shown below.
Write the equations of motion. Take care with minus signs in your analysis: note that
e = Ldi/dt. To facilitate this analysis, draw a block diagram for this system which includes
at least the signals e, i, F , x, x,
and which has the acceleration of gravity g as an input. Use
this block diagram to determine the transfer function from input g to output x.
and
plot as a function of time, with the axes clearly labeled and dimensioned. How does changing
the value of L affect the trajectory? From the viewpoint of the mass, what mechanical element
is it connected to?
Problem 8 This problem considers an electrical/thermal model of a transistor circuit using an
NPN bipolar junction transistor. This circuit is used in Labs 2 and 3 to give you experience
with a temperature control system. Here we look at the details of the electrical and thermal
models for the circuit. As shown below, an NPN bipolar transistor is a three-terminal device
(base, emitter, collector), with correspondingly defined voltages and currents.
What makes a transistor useful is that it amplifies. For this NPN device, a basic model of
3
drives the transistor with an input Vin through a base resistor Rb . Note also in this circuit
that vCE = Vs > 0.
An equivalent circuit for the transistor is
We will assume that when iB is some positive value, vBE = 0.6 V, and thus require Vin 0.6.
Look at the circuit equations to follow the derivation which shows that the power dissipated
in the device is Pdiss Vs (Vin vBE )/Rb . (The approximation comes in because we ignore
the very small dissipation iB vBE . Why is this reasonable?) Thus we see that the input Vin
can directly control the device dissipation, via the base current, at relatively low input power.
That is the key idea of amplification: large power or signals somewhere can be controlled
by small power input signals. Note that we inherently also assume Vin > vBE , since power
dissipation must always be positive. (If you want negative and positive heat flows from one
device, get a thermoelectric cooler, and go learn more about thermodynamics!)
Now for the thermal side of the model. Assume that the transistor is a lump of material
at uniform temperature. Further assume a linear power flow to ambient proportional to the
difference between transistor Tj and ambient Ta temperatures. The thermal capacitance of
the lump Ct has units of [J/ K], and the thermal resistance Rt has units of [ K/W ]. The
power dissipation Pdiss injects heat into the transistor lump, which connects to ambient via
the thermal resistance.
The thermal capacitance is described by
Ct
X
dTj
(Tj Ta )
=
P = Pdiss
.
dt
Rt
This relationship can be shown in the equivalent thermal circuit, where we equate electrical
current with power flow, and electrical voltage with temperature.
This thermal plant will be controlled by an on/off controller with hysteresis, as shown
Temperature is measured with a sensor which converts K to volts, via Vs = 0.1(Tj 273) [V].
That is, the sensor measures in degrees Celsius, with a scale factor of 1 Volt per 10 degrees
Celsius.
The hysteresis block has the form
where the switching points are at . For the remainder of this problem, assume the following values of the parameters: Vref = 5 V, = 0.1 V, Rb = 20 k, = 100, Vs = 5 V,
Ct = 1 J/ K, and Rt = 400 K/W . Use these numbers in your dynamic model developed
above.
i) Assume Ta = 25 C, and that the system has been off for a long time, such that Tj (0+ ) = Ta . At
t = 0 the control is engaged and begins operating. Solve for and plot Tj (t) and Vin (t). What
is the steady-state switching frequency and duty cycle (ratio of on time to cycle period)?
i) Now assume Ta = 0 C, and that the system has been off for a long time, such that Tj (0+ ) = Ta .
At t = 0 the control is engaged and begins operating. Solve for and plot Tj (t) and Vin (t).
What is the steady-state switching frequency and duty cycle? Compare with the earlier case.
Does this lower ambient temperature cause any error in the average value of Tj ? You can
answer this question qualitatively on the basis of your time plots. You do not need to formally
compute this average.
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
For the root locus problems from FPE, attempt to solve them by hand with the root locus sketching
rules. Only use Matlab where requested, or if you cant see an analytical solution. Its very
important that you learn how to sketch moderate order root loci with pencil and paper.
The following problems are assigned to both 2.14 and 2.140 students.
Problem 1 FPE 5.2
Problem 2 FPE 5.3
Problem 3 FPE 5.13
Problem 4 FPE 5.14
Problem 5 FPE 5.22. Use Matlab computational tools to help with all steps in this problem.
Problem 6 The four plots below show the pole and zero locations of the return ratio of a feedback
system, informally called the open-loop poles and zeros. Each of these loops also have a
variable gain K > 0, which is used to move the poles along the root locus branches. For the
four systems shown below, sketch the approximate shape of the root locus plot for K > 0.
Note that you will need to pay particular attention to the angle criteria in the vicinity of the
complex poles and zeros. If the complex pairs are lightly damped, which of these systems
presents a danger of instability as the loop gain is varied? This analysis has practical relevance
for the situation where a notch filter is used to help stabilize a system with a lightly-damped
pair of poles.
Problem 7 The block diagram for a feedback loop has a forward path transfer function G(s) =
Ka(s)/b(s), and a feedback path transfer function H(s) = c(s)/d(s) as shown below. Prove
that the closed-loop zeros are located at: 1) the zeros of the forward path and 2) the poles of
the feedback path, independent of the loop gain K.
The following problems are assigned to only 2.140 students. Students in 2.14 are
welcome to work these, but no extra credit will be given.
This problem was used as the ME quals systems written exam in 2005. It considers modeling
and control issues associated with positioning systems driven with a piezoelectric actuator. A
piezoelectric positioner is driven with an electrical input in order to produce a mechanical output
and vice versa.
The figure below shows a model of a system incorporating a piezoelectric device.
Here the electrical terminals of the device are defined as having an input voltage e(t) and an input
current i(t). The piezo crystal is sandwiched between end plates, with the bottom plate connected
to mechanical ground. The motion of the upper plate in the vertical direction is defined as x(t).
A mechanical load consisting of a damper with value b is connected between the upper plate and
mechanical ground. We model the piezoelectric device and plates as massless. Motion is considered
to be constrained to the x direction.
The electrical/mechanical coupling of the device is modeled as shown below
Here, the piezoelectric actuator is modeled internally as a dependent force source F (t) in parallel
with a spring k. The force depends linearly upon the input voltage as F (t) = Ke(t), where K
is a scale factor with units of N/V. The spring k models the internal stiffness of the piezoelectric
actuator. The force F is applied to the massless upper plate which connects the damper and spring.
3
The electrical portion of the model is shown on the left in the figure. Here, a dependent current
source has a value i(t) = K x(t).
a) Calculate the transfer function X(s)/Vin (s). Clearly show the steps in your development.
b) Assume initial rest conditions. Let the input voltage be a unit step: Vin (t) = u(t). Calculate a
closed-form solution for the resulting displacement x(t) and make a graph of x(t) versus time.
c) Develop a closed-form expression for the input electrical power P (t) = e(t)i(t) associated with
the transient you solved for in part b) above, and make a graph of P (t) versus time.
We now learn that the top plate has finite mass, and so the model developed earlier needs to be
augmented. Measurements indicate that the input/output transfer function is now given by
Gp (s)
X(s)
1
= 2 2
.
Vin (s)
10 s + 10s + 106
This experimentally-adjusted model is to be used to design the feedback loop shown below.
The controller for this loop is an integral controller Gc (s) G/s, where G is an adjustable gain
associated with the integrator.
d) Sketch a root locus plot for this control loop as the gain G > 0 is varied. For what range of
gains G is the loop stable?
e) The loop transfer function (sometimes called the return ratio) for this loop is given by L(s) =
Gc (s)Gp (s). Make a careful hand sketch of the Bode plot for L(s), showing the effect of G as
a parameter, and using the numerical representation of Gp (s) given above.
f ) What value of G will result in a loop crossover frequency c = 100 rad/sec? (Recall that the
crossover frequency is the frequency for which the loop transfer function magnitude crosses
through unity, that is, we require |L(j100)| = 1.)
What are the phase margin and gain margin for the loop with this crossover frequency?
Indicate these parameters on a Bode plot for the loop.
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
The following problems are assigned to both 2.14 and 2.140 students.
Problem 1 Problem Archive 11.5 Pole Zero Plots. Sketch the indicated Bode plots by hand using
the sketching rules presented in the lecture and notes. Do not use Matlab to generate these
plots.
Problem 2 The Bode plot given below is for a notch filter, which can be used as part of compensation for attenuating resonances. This is called a notch filter because it cuts out a range of
frequencies. On the given Bode plot, mark the straight asymptotes, and the phase staircase
function. Use this analysis to determine the filter transfer function and draw a pole-zero map
for the filter.
Problem 4 This problem considers the paint stirrer shown below. A brushed DC motor is used
to stir a bucket of paint as shown in the figure. The motor has a torque constant K [Nm/A]
and the motor plus stirrer inertia is J [kg-m2 ]. The motor is considered ideal in that it has no
inductance and no resistance; the only resistance in the electrical circuit is R as shown. The
rotor is rigidly linked to the stirrer, which has no flexibility; the combined assembly has a
rotational velocity rad/sec. The effect of the paint on the stirrer is modeled as a rotational
damper B [Nms/rad].
a) Solve for the transfer function Gp (s) = (s)/Vi (s) in terms of the system parameters. Now set
the parameter values as K = 0.5 Nm/A, R = 5 , B = 0.15 Nms/rad, and J = 0.2 kgm2 .
For these parameter values, make a hand sketch of the Bode plot for Gp .
b) Now, let the system input Vi be driven by a PI controller of the form
Ki
.
Gc (s) = Kp 1 +
s
This system has a speed reference input r and output as shown in the block diagram below
Choose the controller gain values Kp and Ki to set the loop crossover frequency c =
10 rad/sec, with a phase margin m = 45 . Show your calculations. You should be able
to accomplish this design using hand-sketched Bode plots, and then using Matlab for confirmation.
c) Create a Simulink simulation of the loop with the controller implemented as shown in the block
diagram above. For now, let the integrator have an unbounded output (leave the integrator
limit output box unchecked). Set your simulation to use the variable step solver with a max
step size limit of 0.01 sec, and use the ode45 solver. Note that the standard simulation window
has a simulation stop time of 10 sec. You may want to adjust this value.
Let the input reference r take a step from zero to 10 rad/sec at t = 0, from initial rest
conditions. Run this as a Simulink simulation and record and plot the responses Vi (t) and
(t). What is the maxiumum value of the Vi during this transient? What is the steady-state
value of Vi after the transient has settled?
d) Now set the integrator limits to 1.5 times the steady-state value of Vi from part c), and check
the integrator limit box. (This insures that the integrator term is able to supply the required
steady-state control effort for a speed of 10 rad/sec, but not much more.) Again let the input
reference r take a step from zero to 10 rad/sec at t = 0, from initial rest conditions. Run
this as a Simulink simulation and record and plot the responses Vi (t) and (t). How do these
differ from the unlimited case in part c)?
e) Be sure to keep a copy of your calculations and this model, as we may continue studying it in
the next problem set.
Problem 5 Archive Problem 17.21 Pole Zero Bode Matching
The following problems are assigned to only 2.140 students. Students in 2.14 are
welcome to work these, but no extra credit will be given.
Problem G1 This problem was used as the ME quals systems oral exam in 2003. In the inverted
pendulum system shown below, note that gravity acts in the downward direction as shown.
A rigid massless link constrains the mass M to rotate about the pivot shown. The distance
from the pivot point to the center of gravity of the mass is L m. The mass has negligible
moment of inertia. The horizontal position of the mass in meters is x(t). The system is driven
by a position input w(t) m. The input is connected to the mass via the spring k with units
of N/m, and via the damper b shown with units of Ns/m. In the problem, we only consider
models which describe motions in which x is very small; do not attempt to write models for
large motions.
Position input w(t)
pivot
a) For this system, derive a mathematical model which describes the system for small motions.
The resulting linear model should have an input w(t) and output x(t). Be sure to take into account the effect of gravity. Explain your reasoning. What is the transfer function X(s)/W (s)?
b) For what range of k and b is the system stable?
c) Now consider the controlled pendulum system shown below.
Controller
pivot
The controller has inputs of the mass position x(t) and reference command w(t). The controller outputs a force F (t) which is applied to the mass as shown. Develop a controller which
provides an indentical small-motion transfer function X(s)/W (s) to that derived in part a)
above. You can feel free to use any linear operation within the controller block. Explain your
reasoning for the controller you develop.
d) Now assume that a time delay of T sec is introduced into the position measurement before it is
received by the controller. How does this affect the stability of the controlled system? Why?
Show your analytical reasoning. Hint: An approach looking at phase margin is the best way
to understand the effect of the time delay.
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
The following problems are assigned to both 2.14 and 2.140 students. Except where noted,
you are free to use Matlab or any other computational tools to aid your solutions. There are
no additional problems for 2.140 students. Note that Quiz 1 will be held in class on Wed.
3/12, and is closed-book, but you may bring one page of notes, which can be two-sided. Only
hand calculators may be used. Recognize that in Quiz 1, all requested plots will need to be
hand-sketches, so you should work these problems accordingly.
Problem 1 A unity-gain feedback loop is shown below; note that the plant has a pair of poles
located on the imaginary axis.
In all of this problem, assume that the time delay has a value of T = 10 msec.
1
a) Use a Bode plot of the return ratio L(s) to determine the maximum controller gain Kmax such
that for 0 < K < Kmax the loop is stable. For this maximal value of K = Kmax sketch a
Nyquist plot for the loop.
b) What value of K < Kmax will result in a stable loop with a phase margin of 20 ? What is the
resulting crossover frequency? What is the gain margin for this loop? For this value of K
sketch a Nyquist plot for the loop which shows this information.
Problem 3 A feedback loop for a linearized magnetic suspension is shown below with a controller
Gc (s). The position of the suspended object is Y , the control reference value is R, and there
is a disturbance D acting on the system.
10 s + 1
.
s + 1
a) Choose the values of K and such that the loop has a crossover frequency of 1000 rad/sec and
a phase margin which is maximized for this controller. Sketch a Nyquist plot which confirms
that the loop is stable.
b) For the value of K determined above, use Matlab to plot the response Y (t) to a unit step in
reference R(t). Also plot the response Y (t) to a unit step in disturbance D(t).
c) This magnetic suspension is open-loop unstable, and thus there is a minimum controller gain
K > Kmin required to stabilize the loop. Using the value of determined in part a), what
is the numerical value of Kmin at this marginally-stable condition? By what ratio can K
be reduced with respect to the nominal design of part a) to bring the loop to the brink of
instability? Note that this ratio can be defined as the gain-reduction margin, as distinguished
over the standard gain margin which is defined as an allowable gain-increase margin.
Problem 4 Archive Problem 11.1 Circuit Bode Plots. It is important to review how to solve
circuits for a particular transfer function. To solve for the requested transfer functions, use
series/parallel and voltage/current divider relationships with impedances representing each
circuit element. Sketch the indicated Bode plots by hand using the sketching rules presented
in the lecture and notes. Do not use Matlab to generate these plots.
Problem 5 Archive Problem 19.12
Problem 6 FPE Problem 5.5 c,d
Problem 7 FPE Problem 5.7 c,d
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
The following problems are assigned to both 2.14 and 2.140 students. The first two problems review some basic circuit calculations. The remainder concern operational amplifier
circuits, and studying the stability of these connections.
Problem 1 For the circuits shown below, calculate the equivalent resistance seen at the indicated
terminals, using the series and parallel resistance formulae.
Problem 2 The circuit shown below is driven by a current source It at the terminals B-B. The
resulting voltage across these terminals is defined as Vt .
a) What is the equivalent resistance Req seen at the terminals B-B ? Viewed another way, what is
the ratio Vt (t)/It (t) = Req ? The easiest way to solve this problem is to use series and parallel
equivalents.
b) Now we modify the circuit by removing the resistor R0 at terminals A-A, and replacing this
with the capacitor C shown in the figure below.
1
What is the equivalent impedance Zeq seen at the terminals B-B ? Viewed another way, what
is the ratio Vt (s)/It (s) = Zeq (s)? Note that here weve switched to the Laplace domain
and work in the more general concept of impedances, since the capacitor adds dynamics to
the system. The easiest way to solve this problem is to use series and parallel equivalent
impedances.
Problem 3 Archive Problem 9.2
For this circuit, make a sketch of the Bode plot for the negative of the loop transmission L(s).
What are the loop crossover frequency and phase margin? Also, create a Nyquist plot for the
loop, and indicate the loop phase margin and gain margin on your plot. For what value of C
will the loop be marginally stable? (Note that there is a small typo: the variables C and C 0
refer to the same capacitor.)
Problem 4 Archive Problem 9.5
This circuit can be used as an analog PI controller, for example in a closed-loop currentcontrolled power amplifier (see Problem G1 below). Calculate the transfer function Vo (s)/Vi (s),
under the assumption that the op amp has infinite gain. Use this transfer function to answer
the questions posed in this problem.
Problem 5 This problem considers the op amp circuit shown below
Here the resistors take values of R, R, and R, respectively. The resistors R set the ideal
gain of the circuit, which is 1. The resistor R can be used to detune the bandwidth of
the opamp loop when the amplifier dynamics are too hot for the circuit configuration. In
particular, like all real systems, op amps have additional high frequency dynamics which can
2
5 107
.
s(107 s + 1)2
The additional pair of poles represent high-frequency dynamics in the internal opamp circuit.
a) First, we remove the resistor R by letting (infinite resistance is an open circuit).
For this configuration, calculate the loop crossover frequency and phase margin. Use Matlab
to plot the unit step response of the circuit. You should find that this system is unstable.
Compare the ring frequency of the unstable step response signal with the natural frequency
of the closed loop dominant pole pair and with the loop crossover frequency. You should see
that n c . (When making ring frequency measurements on the step response, be sure to
convert from Hz to rad/sec.)
b) Conduct a Nyquist analysis for the loop in part a), which should indicate the loop instability.
Be sure to clearly show the number of encirclements, and resulting number of right half plane
closed-loop poles. Indicate the loop phase margin (negative) and gain margin (less than one)
on the Nyquist plot.
c) Draw a root locus plot for the loop of part a). Indicate the closed-loop root locations for the
nominal design with .
d) Now pick a value of which results in a loop phase margin m = 45 . For this value of , what
is the loop crossover frequency c ? Use Matlab to plot the unit step response of this detuned
circuit. Compare the natural frequency of the closed loop dominant pole pair with the loop
crossover frequency.
e) Conduct a Nyquist analysis for the loop in part d), which should indicate the loop stability.
Indicate the loop phase margin and gain margin on the Nyquist plot.
f ) Draw a root locus plot indicating where the closed-loop poles are located for the value of from
part d).
The following problems are assigned to only 2.140 students. Students in 2.14 are
welcome to work these, but no extra credit will be given.
Problem G1 In the lab you will see power amplifiers used to control the voltage on a load such as
a voice coil or motor. In practice, it is also common to use power amplifiers in a feedback loop
to control the current through a load. This problem investigates the design of such currentcontrolled amplifier configurations. In the circuit shown below, the load is represented by
a coil with inductance Lc and resistance Rc . The load current ic is supplied by the power
amplifier A2. The current is measured by passing it through the sense resistor Rs ; the
voltage Vf is then proportional to the load current. Thus if Vf is kept at a desired level, the
load current can be regulated. The buffer amplifier A3 is used to avoid loading the main coil
circuit; that is, current i2 is supplied by amplifier A3. The control amplifier A1 is used to
compare the reference voltage Vr with the feedback voltage Vb , and then to add dynamics to
the loop via R3 and C. That is, amplifier A1 is the compensation for the current feedback
loop. Note that all the op amps are modeled as having infinite gain. All voltages labeled on
the circuit are with respect to circuit ground.
a) The current feedback loop may be represented in the form of the block diagram shown below.
Develop expressions for each of the transfer functions in the blocks of this block diagram, and
fill them in on your own version of the block diagram. Carefully note the system variables
already shown on the block diagram, and fill in the transfer functions appropriately.
b) Suppose the input Vr has the constant value Vr = V0 . What is the steady-state load current iC
for this constant reference input? Explain your results.
c) Now let the parameters take the values R1 = R2 = R4 = 10 k, R5 = 50 k, Rs = 1 ,
Lc = 100 mH, and Rc = 10 . Chose the values of R3 and C such that the closed-loop
system poles have a natural frequency of n = 1000 rad/sec and a damping ratio of = 0.4.
d) Make a sketch of the Bode plot for the negative of the loop transmission L(s). What are the
loop crossover frequency and phase margin? How do these relate to the closed-loop natural
frequency and damping ratio from part c)?
e) For these parameter values, let the input be a negative unit step Vr = us (t). Make a graph of
the response in current iC (t).
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
The following problems are assigned to both 2.14 and 2.140 students.
Problem 1 The circuit shown below implements a first-order all-pass filter. Note that we assume
an infinite gain model for the op-amp.
The term all-pass is used because the circuit response magnitude is unity for all frequencies.
a) Show that the circuit transfer function is
Vo
RCs 1
(s) =
.
Vi
RCs + 1
Note the non-minimum phase (RHP) zero.
b) Make a hand sketch of the Bode plot for this filter. You should see that the phase varies from
+180 at DC to 0 at high frequencies.
c) This circuit can be used as an adjustable phase shifter where R is a variable resistor used to set
the phase. Let C = 0.1F. What value of R will set the phase equal to +90 at a frequency
of 1000 rad/sec?
1
Problem 2 This problem considers a feedback loop with a static nonlinearity as shown below
The example from Chapter 2 of the Roberge textbook will be helpful in understanding this
problem.
a) Assume that the input Vi takes the form of a unit ramp Vi (t) = t. Calculate and sketch the
resulting waveforms vA (t) and vB (t). These will be piecewise linear waveforms. Be sure to
clearly label the relevant breakpoints. Also label the slope of each line segment.
Problem 3 In the loop shown below, the differential amplifier drives an RC low-pass filter. The
output of the filter is fed back through a unity-gain buffer. Note that we assume an infinite
gain model for both of the op amps in this loop.
a) Draw a block diagram which includes Vi , va , vo , and Vf , and where the blocks have expressions in
terms of the system parameters. Solve for the transfer functions vo (s)/Vi (s) and va (s)/Vi (s).
b) Let R1 = 1k, R2 = 100k, R = 10k, and C = 1 F. Also let the input be a unit step
Vi = us (t). Calculate analytically and plot the closed-loop step responses va (t) and vo (t).
Problem 4 The system shown below is a micropositioner, in which a stage guided by flexural legs
moves in the x direction as driven by the force from a voice coil actuator.
The combined moving mass of the stage and voice coil is m. The flexural legs have a spring
stiffness k. The actuator is assumed ideal, with a force constant K, and thus the actuator
force is F = Ki, and e = K x.
The actuator is driven by a power amplifier with a gain of 3,
through a series resistor R.
a) Draw a block diagram which includes the signals Vi , va , e, i, x, and x.
b) Use this block diagram to solve for the transfer function X(s)/Vi (s) in terms of the system
variables.
c) Assume the system parameters take the following values: K = 10 N/A, R = 10 , k = 107 N/m,
and m = 0.1 kg. Calculate the numerical values of the transfer function X(s)/Vi (s).
d) Let the input Vi take a 1 Volt step, i.e. Vi (t) = 1us (t) V. Use Matlab to calculate and plot the
output step response. What are the system natural frequency and damping ratio?
e) Calculate and plot the system Bode plot for X(s)/Vi (s).
f ) We now design a closed-loop controller for this system of the form
Here, position is measured with a capacitive position sensor, with a gain of 3 V/m. Choose
the value of Go which allows a gain margin of 2. What is the corresponding crossover frequency and phase margin? Construct a Nyquist plot which shows these values. For this
controller, also use Matlab to make a plot of the sensitivity S = (1 L.T.)1 .
g) Because the resonance is so lightly damped, the system closed-loop bandwidth determined above
is quite limited. However, it is possible to phase-stabilize this loop by adding an additional
high-frequency pole. That is, we do not require that the loop transmission remain below unity
magnitude in the vicinity of the resonance if the loop phase is such that the corresponding
loop in the Nyquist plot does not encircle the 1 point. As a way to understand this, assume
we add a compensator pole to the loop. That is, let the compensator become Go /s( s + 1).
For the present analysis, let = 5/n , where n is the plant natural frequency. What is the
largest value of G0 for which the sensitivity curve does not exceed a peak value of 10 dB?
(You can use Matlab to help find this value.) Make a Bode plot of the negative of the loop
transmission L(j), the sensitivity S(j), and also make a Nyquist plot showing how the
1 point is avoided. How many crossings of unity gain are there in the loop transmission?
Compare the accuracy of command following for this phase-stabilized loop with the pure
integral compensated loop from part f). (Hint: the sensitivity curve tells this story.)
The following problems are assigned to only 2.140 students. Students in 2.14 are
welcome to work these, but no extra credit will be given.
Problem G1 The OP77 data sheet is available separately from the course web page. In particular,
the device transfer function a(s) is shown in Bode plot form in Figure 10 on page 8 of the
data sheet. For this problem, assume we connect the OP77 as a unity gain buffer.
a) Consider a model of the form
a(s) =
G0
esT
( s + 1)
where the esT term is a time delay used to model the excess high-frequency phase. What
values of G0 , , and T allow the best fit to the data sheet Bode plot?
b) For the unity-gain buffer configuration, using this model, what are the loop crossover and phase
margin?
c) Use Matlab to simulate the closed-loop step response for this configuration. How is this time
response consistent with the loop crossover and phase margin?
Problem G2 This problem considers the AC-coupled feedback loop shown below.
The loop is referred to as AC-coupled since it has zero gain at DC, due to the zeros at s = 0.
5
a) Sketch a root locus for K > 0. Be sure to indicate key values on the locus, and accurately show
departure and arrival angles.
b) For the remainder of the problem assume that K = 1. Make a carefully-dimensioned sketch of
the Bode plot of the return ratio.
c) Conduct a Nyquist analysis which indicates whether the loop is stable for the value of K = 1.
How does this analysis correlate with your root locus from part a)?
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
The following problems are assigned to both 2.14 and 2.140 students.
Problem 1 The circuit shown below is adapted from the Lab 5 circuit to include a resistor Rf
which allows adding a zero to the loop transfer function L(s). This allows independent adjustment of the loop crossover frequency and phase margin. Note that we assume an infinite
gain model for the op-amp. Also, as before we assume that Rs << Ra and thus that ia 0.
a) Draw a block diagram which includes Vi , Vo , Vf , ii , if , and ia . The entries in the various blocks
should be given in terms of the system parameters.
b) Use the block diagram to write an expression for the loop return ratio L(s) for the current
control loop. Draw a pole zero-diagram for L(s) with the singularity locations labeled in
terms of the system parameters.
For the remainder of this problem, assume that Ra = 1 k, Rs = 100 , RL = 100 , and
L = 50 mH.
c) Choose Ri to set the DC gain such that iL = 1 mA/V Vi .
d) Choose Rf and Cf to set the loop crossover at c = 104 rad/sec with phase margin m = 45 .
Show your reasoning; you should be able to do this design with hand calculations. Use Matlab
to create a Bode plot of L(s) which shows c and m for your chosen design values.
e) Use Matlab to compute the transfer functions Vo (s)/Vi (s) and Vf (s)/Vi (s). For this purpose,
use of the series and feedback commands will be helpful. Create Bode plots for these
two transfer functions and explain the asymptotic magnitude characteristics in terms of the
transfer function poles and zeros.
f ) For the input-output transfer function Vf /Vi Bode plot, what is the -3 dB frequency h ? (See
Roberge Figure 3.17) What is the frequency response peaking ratio Mp ? At what frequency
1
p does this occur? What are the closed-loop damping ratio and natural frequency n
of the dominant pair in Vf /Vi ? How do these values compare with those predicted via the
approximations m /100 and n c ?
g) Let Vi (t) = us (t), a unit step. Use Matlab to compute Vo (t) and Vf (t) assuming zero initial
conditions. Explain the character of the two responses in terms of the poles and zeros of
the respective transfer functions. With respect to the response Vf (t) what is the 1090%
rise time tr ? (See Roberge Figure 3.17). What is the ratiometric peak overshoot P0 ? What
rise time would be predicted from tr = 2.2/h (Roberge equation 3.57) on the basis of h
determined in part e) above? How does this compare with the actual step response rise time?
The relationship tr = 2.2/h is extremely useful.
Problem 2 This problem considers a one degree of freedom magnetic levitation system using a
Lorentz actuator as shown below
In this figure, the motion of the levitated mass is given by xs relative to inertial space. The
supporting base which carries the magnet structure moves relative to inertial space as xb . This
base motion can be used to model floor vibration, which is important to consider in precision
applications. We assume no gravity in this problem. The objective of the levitation system
is to control xS to follow a desired trajectory without interference from base vibrations. In
this problem, we consider the effect of using voltage- or current-control for the actuator drive
relative to the effect of base vibrations.
The Lorentz actuator is considered to be ideal, and thus to have no inductance or resistance,
with coil current i and back emf voltage e. The actuator is driven by a voltage source Vi
through a series resistance R. The coupled electromechanical system can be represented as
shown below
Use this block diagram to calculate the transfer function Xs (s)/Xb (s) in terms of the system
parameters. You may assume Vi = 0 to aid in block diagram reduction, but note that this is
not strictly necessary, given that the system model is linear.
On the basis of this transfer function, what equivalent mechanical element is connected between the base and the levitated mass? How does this result in transmission of base vibration
into the levitated mass?
Hand sketch a Bode plot for Xs (s)/Xb (s) with values labeled in terms of the system parameters. Indicate how the base vibration transmission is shown in the Bode plot.
b) Current Drive We now close a current control loop on the coil by driving Vi on the basis of
measurement of coil current i. In this context, we assume that i is directly measured, and
that Vi is a dependent voltage source whose value is set by the current controller, i.e., a power
amplifier. In this simple model, we will assume that the coil has no inductance, and thus that
the current can be controlled by a pure integral controller Gc (s) = g0 /s. Draw a modified
block diagram which includes the same signals as in part a), but adds the current reference
ir , current error ie , and controller transfer function Gc (s) = g0 /s.
c) We will assume that g0 is large enough that the current-loop dynamics are very fast relative to
the mechanical subsystem dynamics. Under this assumption, we assert that the current loop
can be designed with the mass motion set to zero, xs = 0. Calculate the open loop plant
transfer function I(s)/Vi (s), and determine its high-frequency asymptotic behavior. Sketch
a Bode plot and show the high-frequency region.
Use this high-frequency model to write an approximate expression for the current-loop crossover
frequency and phase margin as they depend upon g0 , and thus argue that the current loop
will be stable for this controller and for a wide range of gains g0 .
d) Use your modified block diagram to calculate the transfer function Xs (s)/Xb (s) in terms of the
system parameters with the current control loop active. You may assume ir = 0 to aid in
block diagram reduction, but note that this is not strictly necessary, given that the system
model is linear.
On the basis of this transfer function, what equivalent mechanical element is connected between the base and the levitated mass? How does this this element vary with current loop
gain g0 ?
Hand sketch a Bode plot for Xs (s)/Xb (s) with values labeled in terms of the system parameters, and with several overlaid plots for varying g0 . How does the current loop bandwidth
affect the ability of base vibrations to affect the levitated platform motion xs ?
92
quency scale in Fig. 3.14a. These factors are combined to yield the Bode
plot for the complete transfer function in Fig. 3.14b. The same information
is presented in gain-phase form in Fig. 3.15.
3.5
It is clear that either the impulse response (or the response to any other
transient input) of a linear system or its frequency response completely
characterize the system. In many cases experimental measurements on a
closed-loop system are most easily made by applying a transient input.
We may, however, be interested in certain aspects of the frequency response
of the system such as its bandwidth defined as the frequency where its gain
drops to 0.707 of the midfrequency value.
Since either the transient response or the frequency response completely
characterize the system, it should be possible to determine performance in
one domain from measurements made in the other. Unfortunately, since
the measured transient response does not provide an equation for this
response, Laplace techniques cannot be used directly unless the time response is first approximated analytically as a function of time. This section
lists several approximate relationships between transient response and frequency response that can be used to estimate one performance measure
from the other. The approximations are based on the properties of firstand second-order systems.
It is assumed that the feedback path for the system under study is frequency independent and has a magnitude of unity. A system with a frequency-independent feedback path fo can be manipulated as shown in Fig.
3.16 to yield a scaled, unity-feedback system. The approximations given
are valid for the transfer function Va!/Vi, and V, can be determined by
scaling values for V0 by 1/fo.
It is also assumed that the magnitude of the d-c loop transmission is very
large so that the closed-loop gain is nearly one at d-c. It is further assumed
that the singularity closest to the origin in the s plane is either a pole or a
complex pair of poles, and that the number of poles of the function exceeds
the number of zeros. If these assumptions are satisfied, many practical
systems have time domain-frequency domain relationships similar to those
of first- or second-order systems.
The parameters we shall use to describe the transient response and the
frequency response of a system include the following.
(a) Rise time t,. The time required for the step response to go from 10
to 90 % of final value.
108
107
106
105
104
103
102 -
10 -
0.1
-270*
Figure 3.15
-18 0o
-90*
107(10- 4 s + 1)
s(O.1s + 1)(s 2 /101 2 + 2(0.2)s/10
1)'
93
94
vo
a(s>
10
(a)
sff
V.a
(b)
Figure 3.16
feedback form.
95
(351
fh
Wh
(3.52)
PO = M,= 1
oo
(3.53)
ta = 4r
(3.54)
ei = r
(3.55)
W, = 0
(3.56)
t, =
2
For a second-order system with V,(s)/Vi(s) = 1/(s /,,
+ 2 s/w, + 1)
P0
t7
2.2
0.35
Wh
fh
1 + exp
Wn
V1
#1-2
Wn
M,
, = co
Wh =
1 + e-sane
(3.58)
(3.59)
~on sin6
=(3.60)
(3.61)
=2 cos
(on
4
t,
cos
i=
(357
sI
sin 20
1_2
V1
2 =
fn(l-22
w,
N2
V-cos 26
-4
2+
(3.62)
(3.63)
) 12(3.64)
approximating system (see Figs. 3.6, 3.8, 3.11, and 3.12) measurements of
tr, Po, and t, permit estimation of wh, w,, and M, or vice versa. The steadystate error in response to a unit ramp can be estimated from either set of
measurements.
vo(t)
P0
1
0.9
0.1
ts
tp
tr
t:
(a)
Vit
Vi (jco)
1
0.707
- -- -- -- - --
01
---
C
(b)
vt
V0 (tW
e1
t:
(c)
96
Error Coefficients
97
ERROR COEFFICIENTS
(3.65)
Line of flight
Aircraft
velocity = v
Radar
antenna ,0
Length = I
Figure 3.18
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
The following problems are assigned to both 2.14 and 2.140 students.
Problem 1 This problem revisits the current control circuit from Problem 1 of Problem Set 8. As
before we assume that Rs << Ra and thus that ia << iL .
V_c
a) Write a state-space model for the circuit in terms of state vector x = [Vc iL ], with input Vi and
outputs Vo and Vf . Note that Vc is defined as the capacitor voltage as shown in the figure.
This state-space model should be expressed in terms of the system variables, without any
numerical values.
b) Now use the numerical values as determined in Problem 1 of Problem Set 8, and enter the statevariable model into Matlab. Compute the eigenvalues of the system, and thus the closed-loop
poles. Are these consistent with the crossover frequency and phase margin that was designed
in Problem Set 8?
c) Use Matlab commands to compute the step responses from input Vi (t) = us (t) to outputs Vo (t)
and Vf (t), assuming zero initial conditions.
d) Use Matlab commands to compute the transfer functions Vo (s)/Vi (s) and Vf (s)/Vi (s), and to
plot their respective Bode plots.
Problem 2 This problem revisits the one degree of freedom magnetic levitation system from Problem 2 of Problem Set 8.
For all of this problem, we assume that we close a current control loop on the coil by driving Vi on the basis of measurement of coil current i. In this context, we assume that i is
directly measured, and that Vi is a dependent voltage source whose value is set by the current controller, i.e., a power amplifier. In this simple model, we will assume that the coil
has no inductance, and thus that the current can be controlled by a pure integral controller
Gc (s) = g0 /s.
a) Write a state-space model for this system in terms of state variable x = [xs x s Vi ]. Note that
we have selected Vi as a state since it is the output of the integral controller. This state-space
model will have inputs ir and xb . For the floor vibration, you may assume that you have the
signals xb , x b , and x
b available as inputs. Which of these do you need to use in your state
model? Also, set up your state model to have outputs i and xs .
b) Now assume that the levitation system parameters take the numerical values m = 2 kg, K =
5 N/A, and R = 8 . For these values, and again assuming that the electrical current loop
2
bandwidth is much larger than the mechanical dynamics, choose a value of g0 such that the
current loop crosses over at c = 104 rad/sec. What is the resulting current loop phase
margin m ?
c) For your value of g0 chosen above, enter the state-space model into Matlab, and use Matlab
commands to generate the step responses from the two inputs to the two outputs. That is,
you will generate four step responses, two for the input ir taking a step while xb = 0, and
two for the input xb taking a step while ir = 0.
Problem 3 FPE 7.2
Problem 4 FPE 7.6
Problem 5 FPE 7.18
The following problems are assigned to only 2.140 students. Students in 2.14 are
welcome to work these, but no extra credit will be given.
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
The following problems are assigned to both 2.14 and 2.140 students.
Problem 1 FPE 8.1
Problem 2 FPE 8.2
Problem 3 FPE 8.5
Problem 4 FPE 8.6
The following problems are assigned to only 2.140 students. Students in 2.14 are
welcome to work these, but no extra credit will be given.
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
Problem 1: FPE 8.7 For this problem, in part a), calculate by hand the requested magnitude
expression |H(z1 )| where z1 = ej1 T , and 1 = 3 rad/sec. (The problem statement omits the
subscript 1 in the rst sentence.) In part b), you may use Matlab to generate the requested
Bode plots. How do these compare to what you would expect from the continuous-time
system?
Problem 2: This problem considers designing a continuous-time controller for a single-axis mag
netic levitation device. This controller is then mapped into an approximating discrete-time
controller.
The plant to be controlled is a mass driven by a voice-coil actuator. Assume that this plant
has a transfer function
Gp (s) = 1000/s2
a) For this plant, design a continuous-time PID controller using the series-lag-lead form
Gc (s) = Kp 1 +
1
TI s
s + 1
s + 1
in Simulink when you want to simulate the continuous-time loop. If these considerations are
unfamiliar, please consult any of the online Simulink tutorials to understand the solvers and
time-steps used to simulate continous-time and mixed discrete-time/continuous-time systems.
In your Simulink simulations, reduce the discrete-time sample rate from 6 kHz, and comment
on the eect of longer sample times in the resulting signals. Include relevant plots to show
these eects. At about what reduced sample rate does the system go unstable?
Recognize that you can implement the Simlink model block diagram in the series lag lead
form, replacing each block with its discrete equivalent.
When we ask you to simulate the continuous-time loop, this should be done with the continuoustime controller. When we ask you to simulate the discrete-time loop, use discrete-time transfer
functions in Simulink, and input the dierence equation parameters that you calculate when
discretizing.
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
Overview
This problem considers the control of a fast tool servo (FTS), and is based upon the work done by
Xiaodong Lu in his Ph.D. thesis. A copy of this thesis is available on the course web page. The
design problem focuses on:
High-bandwidth current controller for driving the actuator.
Identification of the electromechanical plant dynamics from a measured Bode plot.
Design of a controller to minimize following error for a sinusoidal reference trajectory, in the
presence of sensor noise.
(2.140 students only) Design of an add-on Adaptive Feedforward Cancellation (AFC) control block at the reference trajectory frequency in order to eliminate following error at that
frequency.
We do not give you exact specifications for the servo performance. Rather, you are to apply your
best effort to get good performance. The measure of perfomance in this problem is reduction of
the following error due to the reference trajectory and to sensor noise.
The problem starts with designing the controller for the current loop, and then moves on to design
of the FTS position controller.
The current control loop circuit is shown in Figure 1. The circuit includes the back emf voltage
from the actuator as a dependent source. The force supplied by the actuator is F = Kf ic , and the
corresponding back emf voltage is Vbemf = Kf x.
A simple model of the electromechanical system
of the FTS is shown in Figure 2, with the actuator force F applied to the mass m1 .
In this problem, assume the following component values: Rc = 4 , Lc = 2104 H, Kf = 20 N/A.
In designing the current controllers for power amplifiers, it is typical to neglect the actuator back
emf in the current loop dynamics. (The back emf is quite important in modeling nonlinear issues
such as amplifier saturation, but we do not consider that issue in this problem.) We ask you in this
section to show that the back emf can be ignored, and then to design a current loop controller on
that basis.
Calculate the plant transfer function for the current loop with the back emf voltage included.
Note that in this model, the FTS mechanical dynamics will be reflected into the electrical
transfer function.
Calculate the plant transfer function for the current loop with the back emf voltage assumed
equal to zero. Under this assumption, the FTS mechanical dynamics will have no effect on
the electrical transfer function.
Show that for high frequencies, both transfer functions are equal. Explain physically why this
is the case.
On this basis, recognize that you can design the current control loop assuming the back emf
voltage is zero.
Design the current control loop such that the crossover frequency is c = 6105 rad/sec, with
a phase margin m 60 . We also require that an input voltage of Vset = 10 V will result
in a steady-state coil current of ic = 5 A. That is, the current drive has an input/output DC
gain of Ga ic /Vset |DC = 0.5 A/V. For these design specifications, what are the resulting
values of R2 , R3 , C1 , and C2 ? Note that R1 is given as 10 k. Further note, as shown on
the schematic, that we assume that no current enters the input resistors of the differential
amplifier, since these resistors are large compared with the 0.2 sense resistor.
Provide a Bode plot for the loop return ratio showing the crossover frequency and phase
margin.
Actuator model
The actuator conceptual model is shown in Figure 2. Here, the actuator force F = Kf ic acts on a
spring/mass/damper system representing the moving components of the fast tool servo.
A block diagram for the plant dynamics is given in Figure 3. Position x is measured with a
capacitance probe with a gain of G1 = 5 105 V/m. The sensor has an associated noise voltage
Vn .
From this point on in the problem, we assume that the current drive dynamics are so fast that
there is a static gain coefficient Ga A/V which relates Vset and ic . That is, we now assume that
there are no dynamics associated with the current drive. This is shown on the block diagram where
ic depends statically upon Vset via the gain Ga .
The measured plant Bode plot is shown in Figure 4. As we see from the Bode plot, the plant
dynamics are more complicated than would be expected from the simple model of Figure 2. The
lowest mode in the Bode plot is due to the spring/mass/damper system, but there are higher
frequency modes and a time delay.
This Bode plot and associated data files for magnitude and phase are available on the course web
page in the .zip file GpPlantFrequencyData.zip. Use these data files as part of your model bulding
process. In the data file, we have included a .mat file for entry into Matlab. This file includes the
column vectors Gpmag, which is the magnitude of Gp (j) in straight magnitude units, Gpphase,
which is the phase of Gp (j) in degrees, and ww, which is the associated frequency vector in rad/sec.
On the basis of the low-frequency dynamics and first mode, what are the values of m1 , b1 ,
and k1 ?
Fit a dynamical model to the measured Bode plot. Provide a pole-zero plot for your model,
and show a Bode plot of your model frequency response overlaid on the measured frequency
response. (In extracting data from the Matlab bode command, you will notice extra dimensions, which can be eliminated with the squeeze command.)
You will use this model to design your controller in the following section.
Controller Design
The control loop configuration is shown in Figure 5. The controller configuration is shown in
Figure 6. Here, the integrator is explicitly shown, and transfer function Cls (s) is a loop shaping
controller of your design.
Throughout this problem, we assume
xref = 105 sin 3000t [m].
We also assume throughout that
Vn = 5 102 sin 105 t [V].
Design a controller with as good performance as you can achieve. The controller must minimize the following error xe due to the reference trajectory and the sensor noise.
You must show us Bode, Nyquist, and Sensitivity plots for your FTS controller design. Of
course, the loop must be stable! Also, the Sensitivity magnitude plot must be under +10 dB
for all frequencies. These plots are for the loop broken at the plant input Vset .
3
Also provide time-domain plots of the position error xe (t). What is the magnitude of the
error due to the reference trajectory xref (t)? What is the magnitude of the error due to the
sensor noise Vn (t)? How have you addressed minimizing these errors in your loop design?
Also, you must run a live simulation on Matlab during checkoffs to answer questions about
the loop. Thus, you will need to have a Matlab-based model of the FTS position control loop
running at your checkoff, so that we can ask you questions about its performance. Please
come to lab in advance of your checkoff in order to have time to get your model running
before the checkoff starts.
A template in the form of an m-file (Template.m) has been posted on Stellar. You are required
to use this template to present your design during the check-offs on Monday, May 12, and
Tuesday, May 13. A checkoff signup sheet will be posted in advance of checkoffs. To use the
template, download a copy of it from Stellar. Please read the instructions provided below as
well as the comments within the m-file on how to use the template.
Within the template, we have defined the parameters values given in the problem set, such
as LC and Rc. The controller and plant transfer functions, which need to be designed and
identified by you, have been declared as blank ( [] in MATLAB). You must initialize these
transfer functions by adding your own code to the m-file. Once you have initialized the
transfer functions, all of the plots required for the check-off can be generated by running the
Template.m file. You can add your design code to this file. It is important that you use the
exact same variable names declared within the template. You are allowed to declare your
own variables but do not overwrite any variables already in use by the template. Please test
your code on either your own laptop or the lab computers ahead of time and confirm that it
runs correctly before your check-off.
For 2.140 students, you will need to document your design as it works without the AFC, and
then document with AFC. For this purpose, please prepare two models from the template
file, or provide some means to switch between models so that we can see the effect of using
or not using AFC.
Your design project grade will depend upon your checkoff results, and upon our evaluation
of the quality of your design efforts. Please prepare a lab report detailing your design work,
and showing how you went about optimizing the design for the given specifications. Include
relevant calculations, data, and plots.
K1 s
,
+ 12
s2
where K1 is an AFC gain to be chosen for adequate stability, and 1 = 3000 sets the resonator to
lie at the reference trajectory frequency.
Design the AFC-based controller, and show that the following error at 3000 rad/sec is eliminated. Show plots of the loop Bode, Nyquist and sensitivity curves. The sensitivity must
remain below +10 dB for all frequencies. All these plots should be for the loop broken at the
plant input Vset .
Make a Bode plot of your controller including AFC; you should see that the controller gain
is infinite at the resonant frequency.
The approach given in section 7.3.3 of Lus thesis, and in particular the design rule on page
244 will help you with this design task. Explore the rate of error convergence as K1 is varied;
how does K1 affect convergence? What is the upper limit of K1 for loop stability?
Figure 3: Block diagram of fast tool servo with current setpoint input Vset , sensor noise input
Vn , position output x, and sensor output voltage Vsense . Plant dynamics including flexibility are
represented in Gp (s).
80
Magnitude (dB)
100
120
140
160
180
0
90
180
Phase (deg)
270
360
450
540
630
720
810
900
2
10
10
10
Frequency (rad/sec)
10
10
Figure 4: Experimentally-measured plant transfer function for Gp (j). This plot and associated
data files for magnitude and phase are available on the course web page.
Figure 7: Controller configuration with isolated integrator and a single AFC controller block.
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
2. Go to the Dynamic Signal Analyzer tab (Fig. 2) and fill out specifications.
Dynamic Signal Analyzer (blue circle in Fig. 3) can measure frequency response of a system that
you are interested in experimentally. It generates one output signal (SRC) to excite the loop, and
takes two input signals (CH1 and CH2) to measure frequency response of a system between the
two channels. DSA compares CH1 and CH2 signals to calculate magnitude ratio and phase
difference between them, which tells you the frequency response of a system between two
channels.
SRC can be injected into the loop through any summing junctions; in this particular lab, we are
injecting it through a summing junction for reference and feedback signals (the left most red circle
in Fig. 3). And we are tapping two signals from CH1 and CH2 to measure frequency response
between the two channels. For example, if you want to measure frequency response of thermal
plant (Tout/Vin), you can wire control effort signal to CH1 and temperature signal to CH2 (other red
circles in Fig. 3). If you want to measure loop return ratio (Tout/E), then you can wire error signal
to CH1 and temperature signal to CH2.
Frequency Range
We recommend use 0.1 Hz for initial frequency, 1 Hz
for final frequency, and 10 for number of bins. If you
want, you can put more bin numbers and wider
frequency range, which will give you finer result but
take more time.
Amplitude
For linear system, its frequency response does not
change with respect to sinusoid amplitude. However,
2
you cannot put too large value because it could saturate the actuator, which makes the whole
system nonlinear. Also, you might not want to put too small value because that leads to poor
signal to noise ratio.
Cycles
To measure frequency response of a system, it needs to be in steady state, so DSA spends several
settling cycles to get to steady state. After that, DSA takes several cycles to calculate averaged
value.
CH1 and CH2 Offset
We recommend you subtract DC offset manually from CH1 and CH2 signals to get better result.
(Typical DSA do that automatically, but current version of LabVIEW DSA does not have that
functionality)
3. Now, hit the RUN button!! Then you can see a pop-up window as below.
4. Once it finishes the analysis, you can right click each plot to export data to excel.
5. Import the data to MATLAB to design the controller by loop shaping. Please refer to
LoopShaping.m example file for the next steps.
2) Under Categories on the left-hand side, select VI server. Make sure TCP/IP box is checked
(Figure A-2)
3) Scroll down the menu to Machine Access. Type an asterisk (*) in the Machine name/address
box (see blue circle in Figure A-3), make sure Allow access is chosen, then press the Add
button (see yellow circle in Figure A-3). Do the same thing for Exported VIs. You should see a
check mark next to an asterisk under Machine access list (see red circle). Its okay if you have
other items listed.
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
Once youve downloaded the myRIO DVD 1 and DVD2, run the setup executable of DVD1.
Install the components as seen in Figure 3. During the install, you will be asked for a serial #. If
you havent been provided with one in class, choose evaluation mode, otherwise, use the
serial # youve been given.
Run the ELVISmx installer and install ELVISmx. You are done!
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
2.14/2.140 Lab 1
For Lab 1, we ask that you install and run Labview on your own laptop computer. You will also
need to install the CD&Sim and Mathscript RT modules. Please see instructions posted on the
course web page.
Please load and run the le URACTLR.vi. This le lets you implement on/o and linear control of
4 dierent plants. You can also test automatic (machine) on/o and linear control. The system
runs as a 10 second simulation. During this run, your goal is to use the control input to keep
the plant output at a level of 0.5. Deviations from 0.5 are errors; the square of these errors is
integrated over the 10 second run, and displayed on a gauge and as a numerical output. The lower
the integrated square error, the better.
By the end of the lab session, conduct your own experiments with this control system. Look at
how each system is controlled by the machine automatic control. How well do you (human) control
the 4 dierent systems? How well does the machine control work? For the second-order system,
explore changes in n and , and see how these aect the control. Before leaving lab, meet with
one of the lab sta one-on-one to explain what youve observed. Be prepared to explain the loop
behavior in light of the plant dynamics for each plant.
A report documenting your experiments is due the following week (week of Feb 17) at the start
of your assigned lab session. Reports will not be accepted more than 10 minutes late, i.e., after
2:15 pm. We will not accept reports turned in to other lab sections. This report should show time
traces from some of your best runs and for your best tunings of the automatic controller in on/o
and linear modes for each of the four plants. Explain the observed signals (control eort and plant
output) in terms of the plant dynamics and controller charcteristics.
Your Lab grade will be based 50% upon your understanding as shown to in the face-to-face lab
meetings and 50% upon the data and understanding shown in your written report. Grades for each
of these components will range from 0 (worst/not there) to 5 (excellent) for a total lab grade of 0
to 10.
We will not make up lab sessions. If you miss a lab session, except for medical or emergency
reasons, your lab grade will be 0.
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
2.14/2.140 Lab 2
Assigned: Week of Feb. 24, 2013
Due:
Week of Mar. 3, in your lab session.
Lab 2 studies a thermal control loop. The mechanical configuration of the thermal plant is shown
below.
Here a thermistor is attached to a 2N3904 NPN transistor. The thermistor is packaged in a round
epoxy bead; we have sanded off one side of the bead in order to create a flat spot to improve heat
transfer. The joint thermal conductivity is improved by using thermal grease in the joint. The pair
is held together with heat-shrink tubing, and then a styrofoam bead is used as thermal insulation.
The electrical configuration is shown below
This system will be the focus of the next two labs. The goal of the control system is to regulate the
measured temperature to 40 C. This is done by maintaining the transistor heating at a correct
value using the control input at the base resistor. When operating at 40 C, for small changes
the system can be viewed as linear, since temperature can be increased and/or decreased using the
control input. (Strictly speaking, the changes of the control input are linearly related to the changes
of the temperature, where these changes are measured relative to the steady-state operating point
values.)
For this week, we ask you to do the following:
1. In open loop, manually adjust the control effort so as to set the steady operating temperature
at 40 C. Experimentally save and plot the step response for small control changes about
this equilibrium. How well does the measured step response match a fitted first order step
response?
2. Experiment with human ON/OFF control. Try this with and without the styrofoam insulation in place. Save and plot an interesting set(s) of data (both control effort and resulting
temperature).
3. Experiment with machine ON/OFF control. Try this with and without the styrofoam insulation in place. Save and plot an interesting set(s) of data (both control effort and resulting
temperature).
4. Experiment with human linear control. That is, you manually move the control effort slider
to control the measured temperature to a setpoint of 40 C. Notice how the control effort
must be actuated to make a relatively fast change in the controlled temperature. Try this
with and without the styrofoam insulation in place. Also notice the effect of disturbances
such as blowing air on or touching the transistor with the insulation removed. Save and plot
an interesting set(s) of data (both control effort and resulting temperature).
5. Experimentally tune P and PI linear controller. First tune the loop with only a P term. Then
add in an I term. Can you see the effect of the integral control? Save and plot the closed-loop
step response to reference temperature changes of the loop operating with these controllers
(both control effort and resulting temperature), and record the control gains used. Also,
impose some disturbance on the system, for instance, by removing the styrofoam insulation,
or putting your fingers on the transistor, or blowing on the device, etc. Save and plot some
interesting set(s) of data (both control effort and resulting temperature).
6. For graduate students only: Create a thermal model competent to explain the observed
dynamics. Estimate the thermal mass on the basis of the system dimensions and some
reasonable assumptions of specific heat. Use experiments to determine the thermal loss
modeled as a resistance to ambient, both with and without the styrofoam peanut insulation.
Fit parameters to this model and compare with your experimental step measurements.
Checkoff in lab session: In this weeks lab session demonstrate to one of the teaching staff
your working controller and some experimental results. Progress shown in this checkoff will count
towards half of your lab grade.
Answer sheets: At the start of next weeks lab session you must submit your lab writeup. These
write-ups are due at the start of the lab session, and will not be accepted late. Please attach to
this lab assignment clearly labeled answers and plots for all the questions above. This lab report
will count towards half of your lab grade.
It is key that you submit your lab report on time at the start of the lab session next week, as we
will begin work on Lab 3 during that session.
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
21
1.1.4
For an example thermal system we study the desk lamp shown in the picture
(to be added). This lamp bulb is electrically heated via the bulb filament.
The resulting bulb temperature is measured with the infrared sensor shown
in the figure (to be added). A sketch of the light bulb in the lamp is shown
in the line drawing of Figure 1.15.
We left the lamp on for a long enough time to reach steady state, and
then turned o the lamp and measured the decay of temperature back to
ambient. Data taken from this system is shown in tabular and graphical
form in Figure 1.16. By inspection of this data, the bulb system is well-fit
by a first-order model of the form of (1.1). An estimate of the associated
time constant is about 3 minutes. But we need to have in seconds, so the
system time constant is formally given as = 180 sec.
An abstraction to a lumped model of this system is shown in Figure 1.17.
Here the thermal capacitance of the bulb is summarized by the block of
material labeled with the capacitance Cb with units of [J/ K]. The block
is assumed to have a uniform temperature Tb [ K]. This block has a total
stored thermal energy Wb = Cb Tb [J]. The change of thermal stored energy
happens via heat flow
dWb
dTb
qb =
= Cb
.
(1.23)
dt
dt
Here qb in units of watts represents heat flow into the bulb. As shown in
the figure, we assume that the block is insulated on three sides, and so the
22
#
B
4B
2B
4 4A