Você está na página 1de 283

2.

04A Class Project: the Tower


with Active Damping

2.004 Spring 13

Lecture 09 Wednesday, Feb. 27

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.)

Courtesy of Rob Pongsajapan on flickr. CC-BY


&DUWRRQVVRXUFHVXQNQRZQ$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.004 Spring 13

Lecture 09 Wednesday, Feb. 27

Simplified Building Model

We can model a tall building as a single


degree of freedom lumped-parameter
system.

2.004 Spring 13

Lecture 09 Wednesday, Feb. 27

Passive Vibration Damping


Sliding Mass, m2

One way to stabilize these


tall builds from swaying too
much during earthquakes or
from high winds is to install
enormous pendulum
weights. When the building
sways sideways the
pendulum doesn't want to
move (inertia) and exerts a
pull in the opposite
direction.

Wind force,
Fw(t)

Spring

Damper

Passive Damper
(Tuned Mass Damper)

Ground
2.04A Spring 13

Lecture 16&17 March 12&14 (Tue-Thu)

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

Lecture 09 Wednesday, Feb. 27

Burj Khalifa (http://www.burjkhalifa.ae/)

Burj Khalifa

Taipei 101

Courtesy of Natalie of designedbynatalie.com. CC-BY-NC


Courtesy of ADTeasdale on flickr. CC-BY

2.004 Spring 13

Lecture 09 Wednesday, Feb. 27

Taipei 101 (http://www.taipei-101.com.tw)

Courtesy of Jirka Matousek on flickr. CC-BY


Courtesy of Stefan Tan. Used with permission.

2.004 Spring 13

Lecture 09 Wednesday, Feb. 27

The Tuned Mass Damper in Taipei 101

The passive wind damper with a


diameter of 5.5 meters and
weighting 660 metric tons, is
also the largest in the world now.

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/.

Courtesy of Daniel M. Shih. Used with permission.

2.004 Spring 13

Lecture 09 Wednesday, Feb. 27

Active Damper Design


Sliding Mass, m2
controller

sensor
Spring

actuator
Wind force, Fw(t)

Damper

The actuator is commanded by a


control system, which requires
sensor feedback

2.004 Spring 13

Lecture 09 Wednesday, Feb. 27

Experimental System

air-bearings

voice-coils

wire spring
accelerometer

2.004 Spring 13

Lecture 09 Wednesday, Feb. 27

tall building

10

2.004 Spring 13

Lecture 09 Wednesday, Feb. 27

11

Available Impulse Response Data


(Course Lockers\2.004\Labs\Tower Data)
Building Response

B1 and K1

Compare your transfer


function impulse
response to this one.

2.004 Spring 13

Damper Response
B2 and K2

Open Loop System Response

Lecture 09 Wednesday, Feb. 27

12

Estimating Parameters (Building)

Determine after 36.8% amplitude decay


Logarithmic decrement method

x1
x1
1
ln
= ln
=
x2
N 1 xN

Damped period

2.004 Spring 13

Lecture 09 Wednesday, Feb. 27

13

Estimating Parameters (Damper)

2.004 Spring 13

Lecture 09 Wednesday, Feb. 27

14

MIT OpenCourseWare
http://ocw.mit.edu

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY


DEPT OF MECHANICAL ENGINEERING
2.004 Dynamics and Control II
Laboratory Note: Description of the Experimental Rotational Plant1
INTRODUCTION
In the first series of 2.004 laboratory experiments you will be designing and
testing various schemes for controlling the velocity and position of a rotational flywheel.
This handout introduces you to the experimental plant. You should study the handout
before the first lab session. We will be referring to this handout throughout the term.
DESCRIPTION OF HARDWARE
The rotary inertia (flywheel): Figure 1 is a photograph of the rotational flywheel that
you will be using. It consists of a large metal (copper) flywheel which rides in high
quality ball bearings. The lower bearing is an angular contact type of bearing. These
bearings are designed to taking thrust loads, and in this case the lower bearing supports
the full weight of the flywheel. The upper bearing is a conventional ball bearing. The
bearings have very low friction: if you set this flywheel rotating it will typically take
several minutes to come to a stop.
Upper bearing is recessed in this hole

Magnet in place
for eddy current
damping
Magnet in
storage
location

Copper Flywheel

Figure 1. The copper flywheel and bearings.

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.

Figure 3. Dimensions of the copper flywheel.


Attached to the shaft, under the flywheel, is an optical rotary encoder, shown in
Fig. 3. This consists of a transparent plastic disk, scribed with 1,024 radial lines. As the
disk rotates, these lines interrupt a light beam, and are recorded electronically as a
sequence of pulses. Specialized electronics (US Digital ETACH and EDAC2 modules)
are used to compute either the angular velocity of the shaft or its angular position.
Because there is no mechanical contact, the encoder adds no friction to the system.
You will use these signals from these modules in your control system designs.

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.

Motor drive-shaft with


smaller gear (44 teeth)

Flywheel drive-shaft with


larger gear (180 teeth)

Figure 4: Spur gear drive train.

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

Fig. 5 Complete experimental set-up with dc motor.


We will be covering the operation of a dc motor in class, but for now we can simply
assume that the torque produced by a motor is directly proportional to the current
flowing in the windings. Therefore we can define the torque applied to the flywheel by
specifying the motor current.
The complete rotational set-up is shown in Fig. 5.
UPDATED PLANT
All the experimental rotational plants were updated in the summer of 2010 to
improve the mechanical connection between the flywheel and its drive shaft by adding
an aluminum hub on top of the copper flywheel. The updated plant is shown in Fig. 6.
This aluminum hub adds about 0.94 lbs of mass to the flywheel, which is not significant
compared to the weight of the copper. In addition, the height between the lower and the
upper plate was increased to accommodate the added height of the flywheel. Two
pieces of plexiglass were also added to the long sides of the upper plate as a safety
measure.

Fig. 6 Updated plant.

MIT OpenCourseWare
http://ocw.mit.edu

2.04A Systems and Controls


Spring 2013

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

2.004 System Dynamics and Control Spring 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

Described by ordinary differential equations (ODEs) operating on the input (dynamics)

If the ODEs operate on the output as well, then we refer to it as a feedback system

Can be linear or nonlinear

The purpose of control is to ensure that the output


waveform resembles the waveform desired by the user,
despite the systems dynamics and disturbances by noise
Usually, control requires feedback
02/05/2013

2.004 System Dynamics and Control Spring 2013

Example1: Hard Disk Drive (HDD)

Photograph on the right 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/.

Speed Control
Head-Disk Tracking
Courtesy of Robert Scholten. Used with permission.

02/05/2013

2.004 System Dynamics and Control Spring 2013

Hard Disk Drives

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

2.004 System Dynamics and Control Spring 2013

Example 2: The Segway

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

2.004 System Dynamics and Control Spring 2013

Example 3: Manufacturing Automation

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

2.004 System Dynamics and Control Spring 2013

System Classifications
Single vs Multiple Inputs / Single vs Multiple Outputs

SISO (single input - single output)

SIMO

MISO

MIMO

Feed-forward vs feedback
Linear vs nonlinear

02/05/2013

2.004 System Dynamics and Control Spring 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

Feedback: the output is specified by taking


the input into account (somehow)
y(t) +

Plant

x(t)

Controller

02/05/2013

2.004 System Dynamics and Control Spring 2013

HDD Control System

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/.

Michael L. Workman, PhD thesis,


Stanford University, 1987.

Karman Tam et al, US Patent 5,412,809


The inventors. All rights reserved. This content is excluded
from our Creative Commons license. For more information,
see http://ocw.mit.edu/help/faq-fair-use/.
Source: Figure 1 of patent US 5412809 A

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/.

2.004 System Dynamics and Control Spring 2013

2.04A Learning Objectives

Learn the process of modeling linear time-invariant (LTI) dynamical


systems in dual domains: in the time domain using ordinary differential
equations and in the Laplace domain (s-domain).

Understand the behavior of LTI systems qualitatively and quantitatively,


both in the transient and steady-state regimes, and appreciate how it
impacts the performance of electro-mechanical systems.
Introduce feedback control and understand, using the s-domain
primarily, how feedback impacts transient and steady-state
performance.
Learn how to design proportional, proportional-integral, proportionalderivative, and proportional-integral-derivative feedback control
systems meeting specific system performance requirements.

Introduce qualitatively the frequency response of LTI systems and how


it relates to the transient and steady-state system performance.

02/05/2013

2.004 System Dynamics and Control Spring 2013

10

What you need

8.01 and 8.02


basic behavior of mechanical and electrical elements
18.03
Linear ordinary differential equations (ODEs) and systems of ODEs
Laplace transforms

2.003/2.03

from a physical description of system, derive the set of ODEs that


describe it

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

2.004 System Dynamics and Control Spring 2013

11

Lab Rules - IMPORTANT!!


You must stay within the designated
2.04A/2.004 lab space
No working on other classes (e.g. your 2.007
project) allowed in the machine shop
ENTER

3-062

2.678

N
2.672

02/05/2013

2.004 System Dynamics and Control Spring 2013

12

Lab: Equipment Overview

Oscilloscope

DC Power Supply
Function Generator

Data Acquisition Interface Panel

Power Amp

PC
Data Acquisition Hardware:
National Instruments PCI-6221
Tachometer

Rotational Plant

Please read the equipment description before before Thu PM lab!


02/05/2013

2.004 System Dynamics and Control Spring 2013

13

Framework for system control


Mechanical, Electrical, Fluid, Thermal

Time Varying
Frequency Dependent

Input

Dynamic
System

Output

Time Varying
Frequency Dependent

Real Physical System


Multi-Domain Ideal Elements
Network Representations

Modeling

Idealized Representation: Lumped Model


State Variables and LODEs

Resulting Equations of Motion


Laplace Transforms

Transfer Function Representations


Pole Zero Analysis

Linear System
Theory

Frequency Response Analysis

Standard Inputs and Prediction of Responses


Transient Response
Bode Diagrams

System Design Changes;Feedback Control


Steady State Errors
Input Tracking
Response Shaping

Desired Input - Output Response

02/05/2013

Control System
Design

2.004 System Dynamics and Control Spring 2013

14

Example: Car Suspension


System modeling

Model: ordinary differential equation (ODE)


or other mathematical representation

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 dynamics (as is)


Response
Model

System Control

02/05/2013

Desired
response

2.004 System Dynamics and Control Spring 2013

15

Physical realization of systems

Mechanical
Electrical
Fluid
Thermal
Electromechanical
Mechano-fluid
Electro-thermal
Electromechanicalfluidthermal

02/05/2013

2.004 System Dynamics and Control Spring 2013

16

Complex Interconnected Systems?

Combine Mechanical, Electrical


Fluid and Thermal
Common Modeling Method
Linear, Lumped Parameter

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/.

Common Analytical Tools


Linear System Theory

2.12, 2.14, 2.151

Powerful Design Tools


Feedback Control

02/05/2013

2.004 System Dynamics and Control Spring 2013

17

A simple modeling example


Mechanical, Electrical, Fluid, Thermal

Input

Dynamic
System

Output

Real Physical System


Multi-Domain Ideal Elements
Network Representations

Modeling

Idealized Representation: Lumped Model


State Variables and LODEs

Resulting Equations of Motion


LaPlace Transforms

Transfer Function Representations


Pole Zero Analysis

Linear System
Theory

Frequency Response Analysis

Standard Inputs and Prediction of Responses


Transient Response
Bode Diagrams

System Design Changes;Feedback Control


Steady State Errors
Input Tracking
Response Shaping

Desired Input - Output Response

02/05/2013

Control System
Design

2.004 System Dynamics and Control Spring 2013

18

Linear Systems
Suppose
y1 (t)

x1 (t)

x2 (t)

y2 (t)

The system is linear iff


ay1 (t) + by2 (t)

ax1 (t) + bx2 (t)

a, b : constant scalar or tensors

Corollary
ay1 (t)

02/05/2013

ax1 (t)

and

y1 (t) + y2 (t)

x1 (t) + x2 (t)

2.004 System Dynamics and Control Spring 2013

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

Idealized Lumped Parameter Model

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

2.004 System Dynamics and Control Spring 2013

20

MIT OpenCourseWare
http://ocw.mit.edu

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

Car suspension model

Mass spring viscous damper system


Free body diagram (no motion)

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

force due to spring


in equilibrium
force because spring
changes length
during motion

Model

equation)

Free body diagram

=) 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

2.004 System Dynamics and Control Spring 2013

General Linear Time-Invariant (LTI) system


dnx
d n 1 x
dnx
dx
dmy
d m 1 y
d1y
an n + an 1 n 1 + an 2 n La1 + a0 x = bm m + bm 1 m 1 + Lb1 1 + b0u
dt
dt
dt
dt
dt
dt
dt
nth-order Linear Ordinary Differential Equation (ODE)
with constant coefficients (time-invariant)

general solution:

x(t) = xhomogeneous (t) + xforced (t)


homogeneous solution: y=0 (no forcing term)
forced solution: a guess solution for the system behavior when y(t)0

02/07/2013

2.004 System Dynamics and Control Spring 2013

Homogeneous and forced solutions


Homogeneous solution:

Im(s)

x(t) = C0 + C1es1t + C2 es2 t + L + Cn esn t


where in general
si = i + j (complex number)

Re(s)

Forced solution: sometimes difficult to guess


but for specific forces of interest, quite easy.
For example, if y(t)=constant, then yforced=constant
as well (but a different constant!)

02/07/2013

2.004 System Dynamics and Control Spring 2013

Commonly used input functions


Step function
(aka Heaviside)

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

2.004 System Dynamics and Control Spring 2013

(t)

Impulse
(aka delta-function
or Dirac function)

t [sec]

1st order system


M v + bv = f (t)
mass

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

2.004 System Dynamics and Control Spring 2013

1st order system: step response

steady state
(final value)

0.632 1

Nise Figure 4.3


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/.

2.004 Fall 07

Lecture 06 Monday, Sept. 17

How is this different than the car suspension system?

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

2.004 System Dynamics and Control Spring 2013

2nd order system: step response

02/07/2013

2.004 System Dynamics and Control Spring 2013

Mechanical system components:


translation

Nise Table 2.4

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

2.004 System Dynamics and Control Spring 2013

MIT OpenCourseWare
http://ocw.mit.edu

2.04A Systems and Controls


Spring 2013

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

2.004 Spring 13'


1

J 3 10

kg m2

Mechanical system components:


rotation

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/.

Nise Table 2.5


02/07/2013

2.004 System Dynamics and Control Spring 2013


2

Mechanical system components: rotation: gears

Nise Figure 2.27, 2.28


02/07/2013

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/.

2.004 System Dynamics and Control Spring 2013


3

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/.

Nise Figure 2.29


02/07/2013

2.004 System Dynamics and Control Spring 2013


4

Rotational mechanical system:


example

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/.

Nise Figure 2.30a-b

02/07/2013

2.004 System Dynamics and Control Spring 2013


5

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

2.004 Spring 13'


6

Kinetic

Static

Coulomb friction

velocity

friction

friction

velocity

Coulomb friction is in opposite direction to the velocity;


the magnitude of the friction force is independent of the
magnitude of the velocity
Example: Block sliding on a rough surface
02/07/2013

2.004 System Dynamics and Control Spring 2013


7

Viscous friction

velocity

friction

friction

velocity

Viscous friction is in opposite direction to the velocity;


the magnitude of the friction force is proportional to the
magnitude of the velocity
02/07/2013

2.004 System Dynamics and Control Spring 2013


8

Eddy Currents Viscous friction


Eddy currents are generated when there is relative motion between a conducting object and a
magnetic field. The rotating currents in the conducting object are due to electrons experiencing a
Lorentz force that is perpendicular to their motion and the magnetic field (F=qvB).
The Lorentz force results in current in the radial direction on the flywheel; these currents, since the
wheel is turning, result in an opposing magnetic field and a force resisting the motion.
The Eddy current and the resisting force are both proportional to the velocity |v|; therefore, they resist
motion in a way that is exactly equivalent to viscous friction.

11/28/13

2.004 Spring 13'


9

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

2.004 Spring 12'


11

US Digital Optical Encoder E6S-2048-187


Quick, simple assembly and
disassembly
Rugged screw-together housing
Positive finger-latching connector
Accepts .010" axial shaft play
Tracks from 0 to 100,000 cycles/sec
64 - 2500 CPR | 256 to 10,000 PPR
2 channel quadrature TTL
squarewave outputs

Max speed = 2,400 rpm

Optional index (3rd channel)


-40 to +100C operating temperature
Fits shaft diameters from 2mm to 1"

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

2.004 Spring 12'


12

Converting Tachometer reading


You will monitor the angular velocity profile using the ETach2 electronic

tachometer that is attached to the rotary encoder on the flywheel shaft.

It produces an analog voltage vo proportional to the shaft speed ! ! Vo = Kt !


where the tachometer constant Kt = 0.016 volts/rpm

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

Save your data so that it is readily available later


(online or on USB.)

Coulomb friction (Assume the eect of Coulomb damping is significantly smaller than the eect
of viscous damping)

You will need them for Problem Set 1.


Hand in your results at the end of class.
14

Making A Good Plot with MATLAB


Put a meaningful title
Label each axis (with proper unit)
Label each data source
MATLAB commands:
>> mydata;
>> plot(t_mydata,v_mydata);
>> title(Lab 1 (no mag));
>> xlabel(Time (s));
>> ylabel(Voltage(V));
>> legend(Velocity,Linear);
>> grid;
>>

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

2.004 Spring 13'

Solving the equations of motion

For pure Coulomb damping: J !(t)

= Text (t)

Tc (t)

(The external torque is 0 for our experiment, Tc (t) is relatively constant Tc )


Tc
J t

Solving this ODE =) !(t) = !0

+ Jb !(t) = 0
For pure viscous damping: J !(t)

+ b!(t) = Text =) !(t)


Solving this ODE =) !(t) = !0 e

( Jb )t

16

Fitting an Exponential Function


Estimate from the time at which the response has decayed to:

Slope method

2/13/2013

2.004 Spring 13'


17

Fitting an Exponential Function


Log linear fit:

2/13/2013

2.004 Spring 13'


18

MIT OpenCourseWare
http://ocw.mit.edu

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

Goals for today

Review of translational dynamical variables: position, velocity

Review of rotational dynamical variables: angle, angular velocity

Electrical dynamical variables: charge, current, voltage

Basic electrical components


Resistance
Capacitance
Inductance

DC Motor: an electro-mechanical element


basic physics & modeling
equation of motion
transfer function

Experiment: step and ramp response of the flywheel driven by the


DC motor open loop (no feedback)
2.04A Spring 13

Lecture 06 Thursday, Feb. 14

Impedances: translational mechanical

-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

Nise Table 2.4

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

Impedances: rotational mechanical

Nise Table 2.5

2.04A Spring 13

-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

Lecture 06 Thursday, Feb. 14

Electrical dynamical variables: charge, current, voltage

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

Electrical resistance

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

Capacitance /1

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

Capacitance /2

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

Inductance

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

Summary: passive electrical elements; Sources

-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.04A Spring 13

Lecture 06 Thursday, Feb. 14


9

Combining electrical elements: networks


Nise Figure 2.6

Network analysis relies on two physical principles

Kirchhoff Current Law (KCL)


charge conservation

Kirchhoff Voltage Law (KVL)


energy conservation

-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

10

Impedances in series and in parallel

-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

11

The voltage divider

-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

12

Example: the RC circuit

-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

13

Interpretation of the RC step response


+
+

+
+

+
+
+
+ +
+
+
+ +
+
+
+
+
+
+ + +

+ +

+
+

+
-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

14

Example: RLC circuit with voltage source

Nise Figure 2.3

Nise Figure 2.4


-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

15

Quick summary of electrical systems

-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

16

Power dissipation in electrical systems

-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

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

Lecture 06 Thursday, Feb. 14

18

Physical laws applicable to the DC motor


Lorentz law:

Faraday law:

magnetic field applies force to a current


(Lorentz force)

moving in a magnetic field results


in potential (back EMF)

-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

19

DC motor: principle and simplified equations of motion

multiple windings N:
continuity of torque

-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

20

DC motor: equations of motion in matrix form

multiple windings N:
continuity of torque

-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

21

DC motor: why is Km=Kv?

-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

22

DC motor with mechanical load and


realistic electrical properties (R, L)
inductance
(due to windings)

dissipation
(resistance of windings)

dissipation
(viscous friction
in motor bearings)

load
(inertia)

-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

23

DC motor with mechanical load and


realistic electrical properties (R, L)
inductance
(due to windings)

dissipation
(resistance of windings)

dissipation
(viscous friction
in motor bearings)

load
(inertia)

-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

24

DC motor with mechanical load and


realistic electrical properties (R, L)
inductance
(due to windings)

dissipation
(resistance of windings)

dissipation
(viscous friction
in motor bearings)

load
(inertia)

-RKQ:LOH\ 6RQV$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

2.04A Spring 13

Lecture 06 Thursday, Feb. 14

25

Lab 06: Running the flywheel with DC motor


open loop
Observe motor behavior under different driving voltages.
Examine transient response of a DC motor
Important: always be ready to turn off the break of power
amplifier when motor is spinning too fast!!
Experimental Setup:

Open-loop

Signal
CH1
Generator

ACH
1

DC motorflywheel
system

Power
Amplifier
PC Data-

ACH2
ETACH2

Acquisition
2.004 Spring 13

Lecture 06 Thursday, Feb. 14

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

Lecture 06 Thursday, Feb. 14

27

Some Hints
Gear Ratio:
F
Gear 1

Gear 2

Unit Conversion:

44
n1
=
180
n2

Power Conservation:

Ka = 2.0 A/V, Km = 0.0292 N-m/A


Pmechanical (t)

2.004 Spring 13

Lecture 06 Thursday, Feb. 14

= T (t) (t)
= Km i(t) (t)

28

Lab assignment p.1

Comment on how todays experiments involving step input are


interpreted differently than we did in Lab 05.

When the DC motor is driven by a step function, how many poles/


zeros do we need to consider, and where are they? How do the
magnets (eddy brakes) influence their locations?

2.04A Spring 13

Lab assignment 06 Thursday, Feb. 14 - PLEASE RETURN TO THE T.A.

29

Lab assignment p.2

When the DC motor is driven by a ramp function, how many poles/


zeros do we need to consider, and where are they? How do the
magnets (eddy brakes) influence their locations?

Comment on the qualitative and quantitative agreement of your


derivations with experiment. Attach sheets with your experimental
results.

2.04A Spring 13

Lab assignment 06 Thursday, Feb. 14 - PLEASE RETURN TO THE T.A.

30

0,72SHQ&RXUVH:DUH
KWWSRFZPLWHGX

$6\VWHPVDQG&RQWUROV
6SULQJ

)RULQIRUPDWLRQDERXWFLWLQJWKHVHPDWHULDOVRURXU7HUPVRI8VHYLVLWKWWSRFZPLWHGXWHUPV

Todays plan

1st order system response: review


the role of zeros

2nd order system response:


example: DC motor with inductance
response classifications:
overdamped
underdamped
undamped

Linearization
from pendulum equation to the harmonic oscillator

2.004 Spring 13

Lecture 07 Thursday, Feb. 21

Review: step response of 1st order systems


steady state
(final value)

Nise Figure 4.3

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/.

Lecture 07 Thursday, Feb. 21

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)

and step excitation

f (t) = F0 step(t)

[where f(t) and F0 have units of torque,]


the step response is

F0
1
!(t) =
b

the angular velocity as t tends to

t/

!1 =

t>0

J
=
b

F0
b

This long-term value is known as the systems steady state


In systems where the output physically represents a velocity, the steady
state is also known as terminal velocity.

2.004 Spring 13

Lecture 07 Thursday, Feb. 21

Steady state in the Laplace domain: the final value thm.

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.

In the case of the flywheel, the transfer function is


For the step response we have
It is easy to verify that

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

Lecture 07 Thursday, Feb. 21

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)

Example: compare the step response of the two systems below:

H0 (s) =

2.004 Spring 13

1
s+p

H(s) =

Lecture 07 Thursday, Feb. 21

s+z
s+p

Step response without zero vs with zero

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 (s) = sF0 (s) + zF0 (s)

) 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

Lecture 07 Thursday, Feb. 21

0
2

4
t [sec]

10

Zero on the right-hand side?


j

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

Lecture 07 Thursday, Feb. 21

0
2

4
t [sec]

10

The general 2nd order system

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

Lecture 07 Thursday, Feb. 21

The general 2nd order system

Nise Figure 4.10

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/.

Lecture 07 Thursday, Feb. 21


9

The general 2nd order system

Nise Figure 4.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

Lecture 07 Thursday, Feb. 21

10

The underdamped 2nd order system

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

Lecture 07 Thursday, Feb. 21

11

The underdamped 2nd order system

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

Lecture 07 Thursday, Feb. 21

12

The underdamped 2nd order system

forced response,
sets steady state

Nise Figure 4.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

Lecture 07 Thursday, Feb. 21

13

Transients in the underdamped 2nd order system

Nise Figure 4.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.004 Spring 13

Lecture 07 Thursday, Feb. 21

14

Transient qualities from pole location in the s-plane

Nise Figure 4.19


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

Lecture 07 Thursday, Feb. 21

15

Linearization

This technique can be used to approximate a non-linear system

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

Lecture 07 Thursday, Feb. 21

16

Linearizing systems: the pendulum

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

Lecture 07 Thursday, Feb. 21

17

MIT OpenCourseWare
http://ocw.mit.edu

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

Observing 2nd order system behavior

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

You need to know


1st order systems
Laplace transforms

We will cover (here and in Lecture 07)


the basics of 2nd order system behavior

You do not need to know yet


how feedback systems work (we will cover in detail in the second
part of the class)
2.004 Spring 13

Lecture 08 Thursday, Feb. 21 LAB

Flywheel: switching to angular position as output /1

We modeled the flywheel as a SISO system with the torque r(t) as


input and the angular velocity (t) as output. Schematically,
r(t)

!(t)

R(s)

(s)

J !(t)

+ b!(t) = r(t)

1
(s)
=
R(s)
Js + b

Time domain (ODE)

Laplace domain (TF)

Now let us consider instead the angular displacement


Z (t) as the
output. This is related to (t) via an integral:

(t) =

!(t0 )dt0

1
s

In the Laplace domain, the relationship becomes (s) = (s)

Using the TF for (s) we obtain

2.004 Spring 13

1
(s)
=
R(s)
s(Js + b)

Lecture 08 Thursday, Feb. 21 LAB

Flywheel: switching to angular position as output /2

Schematically,
r(t)

(t)

R(s)

(s)

+ b(t)
= r(t)
J (t)

1
(s)
=
R(s)
s(Js + b)

Time domain (ODE)

Laplace domain (TF)

Some important observations:


the diagrams in this and the previous page correspond to the
same physical system; however, the physical quantity that we
choose to represent the output is different;
the ODE for (t) can be obtained by inverse-Laplace
transforming the TF (s)/R(s) [recall that multiplying by s in the
Laplace domain is equivalent to taking a derivative in the time
domain] or by deriving the equation of motion in the time domain
using Newtons law for rotational systems. The results are of
course consistent (check that!)
2.004 Spring 13

Lecture 08 Thursday, Feb. 21 LAB

Flywheel with feedback: a tunable 2nd order system


j

b/J

The transfer function

(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

Low gain (overdamped)

b/J

High gain (underdamped)


:open-loop poles
(no feedback or K=0)

2.004 Spring 13

Lecture 08 Thursday, Feb. 21 LAB

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

Lecture 08 Thursday, Feb. 21 LAB

MIT OpenCourseWare
http://ocw.mit.edu

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

Todays goal

Introduce root locus


Close loop transfer function &characteristic equation
Root locus with an example

Rules for sketching root locus

Observation of Root Locus with MATLAB s graphical user interface

2.04A Spring 13

Lecture 11 Thursday, Feb. 28

Close-loop transfer function and characteristic equation

Consider a unity feedback control loop

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/.

Closed-loop transfer function:

G(s) =

N (s)
D(s)

KG(s)
KN (s)
Gclosed (s) =
=
1 + KG(s)
D(s) + KN (s)

The closed-loop characteristic equation:

1 + KG(s) = 0
More generally: D(s) + KN (s) = 0
2.04A Spring 13

Lecture 11 Thursday, Feb. 28

What is root locus

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

as the loop gain K varies from 0 to 1


Example:

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

Lecture 11 Thursday, Feb. 28

Cranking up the gain J


Type 0 system (no disturbance)

Type 1 system with disturbance

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

Lecture 11 Thursday, Feb. 28

Cranking up the gain L


Type 1 system (no disturbance)

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

Lecture 11 Thursday, Feb. 28

Cranking up the gain: poles and step response

Root
Locus

2.04A Spring 13

Lecture 11 Thursday, Feb. 28

Root Locus for non-unity negative feedback systems

Caveat: K>0
(i.e., negative
feedback)

Closed loop TF:

Nise Figure 8.1

Open loop TF:


KG(s)

Condition for closed-loop pole: denominator of closed-loop TF must equal zero:

2.04A Spring 13

Lecture 11 Thursday, Feb. 28

Break-in
point

Root Locus terminology

Breakaway
point
Real-axis
segment

RL imaginary axis
intercept

Breakaway
point

Nise Figure 8.10

Asymptote
angle
Departure/Arrival
angles

Branches
Asymptote
real-axis
intercept

Nise Figure 8.12

Nise Figure 8.25

Nise Figure 8.19

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

Lecture 11 Thursday, Feb. 28

Root-locus sketching rules

Rule 1: # branches = # poles


Rule 2: always symmetrical about the real axis
Rule 3: real-axis segments are to the left of an odd number of realaxis finite poles/zeros

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

Lecture 11 Thursday, Feb. 28

Root-locus sketching rules

Rule 4: RL begins at poles, ends at zeros

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

Lecture 11 Thursday, Feb. 28

10

Poles and zeros at infinity

2.04A Spring 13

Lecture 11 Thursday, Feb. 28

11

Root Locus sketching rules

Rule 5: Asymptotes: angles and real-axis intercept

Nise Figure 8.12


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

Lecture 11 Thursday, Feb. 28

12

Root Locus sketching rules

Rule 6: Real axis break-in and breakaway points

maxK for this


real axis
segment

minK for this


real axis
segment

Nise Figure 8.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

Lecture 11 Thursday, Feb. 28

13

Root Locus sketching rules

Rule 6: Real axis break-in and breakaway points

maxK for this


real axis
segment

minK for this


real axis
segment

Nise Figure 8.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

Lecture 11 Thursday, Feb. 28

14

Root Locus sketching rules

Rule 7: Imaginary axis crossings

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

Lecture 11 Thursday, Feb. 28

15

Root Locus sketching rules

Rule 7: Imaginary axis crossings

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

Lecture 11 Thursday, Feb. 28

16

Root Locus sketching rules summary


Rule 1: # branches = # poles
Rule 2: symmetrical about the real axis
Rule 3: real-axis segments are to the left of an odd number of realaxis finite poles/zeros
Rule 4: RL begins at poles, ends at zeros
Rule 5: Asymptotes: angles, real-axis intercept

Rule 6: Real-axis break-in and breakaway points

Rule 7: Imaginary axis crossings (transition to instability)

2.04A Spring 13

Lecture 11 Thursday, Feb. 28

17

Practice 1: Sketch the Root Locus

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/.

Nise Figure P8.2

2.04A Spring 13

Lecture 11 Thursday, Feb. 28

18

Practice 2:

Are these Root Loci valid? If not, correct them

Nise Figure P8.1

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/.

Lecture 11 Thursday, Feb. 28

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

2.004 Spring 12'

20

System Modeling

Km /N
Js + B

Ka
Kt

G(s)
21

System Parameters

22

Procedures

In MATLAB workspace, construct necessary system data


(transfer functions) based on the system model
Graphically tune the control parameters of the following general
forms.
C(s) = a1 ,

C(s) = a2 + b2 s,

C(s) = a3 + b3 /s

At the end of the class, turn in your result parameters, root


locus plots and system response.

12/03/13

2.004 Spring 13'

23

Useful Matlab Commands

>> 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

2.004 Spring 12'

24

Tips 1
In the command window type in sisotool tool open the SISO

Design Tool Interface.

Select appropriate control architecture

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.

Enter or import system system data (G, H) from workspace.

12/03/13

2.004 Spring 12'

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

plot under Graphical Tuning.

You can drag/add/remove poles & zeros in this graphical root


locus design window. Simulation result is instantaneous.
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

2.004 Spring 12'

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

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

Todays goal

Root Locus examples and how to apply the rules


single pole
single pole with one zero
two real poles
two real poles with one zero
three real poles
three real poles with one zero

Extracting useful information from the Root Locus


transient response parameters
limit gain for stability

2.04A Spring 13

Lecture 12 Tuesday, March 5

Root Locus definition

Root Locus is the locus on the complex plane of closed-loop poles


as the feedback gain is varied from 0 to .

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)

Lecture 12 Tuesday, March 5

...
2

Root-locus sketching rules

Rule 1: # branches = # poles


Rule 2: always symmetric with respect to the real axis
Rule 3: real-axis segments are to the left of an odd number of realaxis finite poles/zeros
Root Locus

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

nothing to the left


of one zero +
one pole
5

Lecture 12 Tuesday, March 5

to the left of
the pole

3
2
(seconds1)

Root-locus sketching rules

Rule 4: begins at poles, ends at zeros

K
X(s)
=
Y (s) CL
s + (K + 2)

closedloop
= (K + 2) ! 1, as
pole

K!1

X(s)
Y (s)

closedloop
pole

CL

We say that this TF


has a zero at infinity
Root Locus

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

nothing to the left


of one zero +
one pole
5

Lecture 12 Tuesday, March 5

to the left of
the pole

3
2
(seconds1)

Root Locus sketching rules

Rule 5: Real-axis intercept and angle of asymptote


a

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

Two branches (Rule 1)


Symmetric (Rule 2)
On real axis to the left of the

2
3.5

2.5

2.04A Spring 13

1.5
1
(seconds1)

0.5

0.5

a = /3

Two zeros at infinity (Rule 4)

first pole at -1 (Rule 3)

1.5

4
5
8

Three branches (Rule 1)


Symmetric (Rule 2)
On real axis to the left of the first pole

at -1 and the third pole at -3 (Rule 3)


Three zeros at infinity (Rule 4)
7

Lecture 12 Tuesday, March 5

4
3
(seconds1)

Root Locus sketching rules

Rule 6: Real axis breakaway and break-in points b


Solve

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

Two branches (Rule 1)


Symmetric (Rule 2)
On real axis to the left of the

2
3.5

2.5

2.04A Spring 13

1.5
1
(seconds1)

0.5

0.5

a = /3

Two zeros at infinity (Rule 4)

first pole at -1 (Rule 3)

1.5

4
5
8

Three branches (Rule 1)


Symmetric (Rule 2)
On real axis to the left of the first pole

1.423

at -1 and the third pole at -3 (Rule 3)


Three zeros at infinity (Rule 4)
7

Lecture 12 Tuesday, March 5

4
3
(seconds1)

Root Locus sketching rules


Rule 7: Imaginary axis crossings
Solve

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

Three branches (Rule 1)


Symmetric (Rule 2)
On real axis to the left of the first pole

1.423

at -1 and the third pole at -3 (Rule 3)


Three zeros at infinity (Rule 4)
7

Lecture 12 Tuesday, March 5

4
3
(seconds1)

What else is the Root Locus telling us

Gain = product of distances to the poles

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

Lecture 12 Tuesday, March 5

4
3
(seconds1)

The zeros are pulling the Root Locus

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

Lecture 12 Tuesday, March 5

3
2
(seconds1)

Practice 1: Sketch the Root Locus

Nise Figure P8.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

Lecture 12 Tuesday, March 5

10

Practice 2:
Are these Root Loci valid? If not, correct them

Nise Figure P8.1


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

Lecture 12 Tuesday, March 5

11

MIT OpenCourseWare
http://ocw.mit.edu

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

Classification of feedback compensators


compensator
C(s) +

Gp (s)

plant

compensator
R(s)

C(s) +

s+z
K
s

Proportional (P)

plant
R(s)

Gp (s)

Proportional-Integral (PI)

can meet one transient specification


(e.g. rise time)

can meet one specification (e.g. rise time)


zero steady-state error

other specifications (e.g. overshoot) unmet


steady state error

other specifications (e.g. overshoot) unmet


decreases stability (RL moves to the right)

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

Lecture 13 Tuesday, Mar. 5, 2013

Compensator rules of thumb


Nise Figure 9.1

Nise Figure 9.7

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

Lecture 13 Tuesday, Mar. 5, 2013

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

Lecture 13 Tuesday, Mar. 5, 2013

Evaluating different PD controllers

Gc (s) = K(s + 3)

Gc (s) = K

Nise Figure 9.15

(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

Lecture 13 Tuesday, Mar. 5, 2013

Example: speeding up the response

The closed-loop poles shown here are with


proportional control, designed for

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

Lecture 13 Tuesday, Mar. 5, 2013

Example: speeding up the response

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

Lecture 13 Tuesday, Mar. 5, 2013

Example: speeding up the response


PD

(
)
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

Lecture 13 Tuesday, Mar. 5, 2013

Example: speeding up the response


PD

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

Lecture 13 Tuesday, Mar. 5, 2013

Example: speeding up the response


PD

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

Lecture 13 Tuesday, Mar. 5, 2013

Example: speeding up the response


PD

(
)
K s+z

0.3162
s (s + 2)

PD compensator
zero

closed-loop poles

K=6.325 gives %OS=6.7; Ts=1.86sec


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

Lecture 13 Tuesday, Mar. 5, 2013

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

2.004 Spring 13'

11

Precision Position Control Example:


Scanning Electron Microscope (SEM) In Semiconductor Fabrication Process

300 mm diameter wafer


45 nm feature size
Control Console
Vacuum Chamber

200,000x magnification

Diameter of a human hair 0.1 mm = 1e5 nm


VRXUFHVXQNQRZQ$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

3/5/2013

2.004 Spring 13'

12

Position Sensing Using Encoder and EDAC2


Encoder Types:

Incremental (Relative): Only the relative


position of the shaft is known. No absolute 0
position.
Absolute: Unique code for each shaft position
(e.g., by adding a reference input to an
incremental encoder).

Reset Button
VRXUFHVXQNQRZQ$OOULJKWVUHVHUYHG7KLVFRQWHQWLVH[FOXGHGIURPRXU&UHDWLYH
&RPPRQVOLFHQVH)RUPRUHLQIRUPDWLRQVHHKWWSRFZPLWHGXKHOSIDTIDLUXVH

3/5/2013

2.004 Spring 13'

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

2.004 Spring 13'

14

Plant Transfer Functions


Now we are dealing with POSITION CONTROL,
DO NOT use the velocity transfer function.
TF voltage to velocity:

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) =

2.004 Spring 13'

(s)
1 (s)
Ka Km /N
=
=
s Vc (s)
s (Jeq s + Beq )
Vc (s)

15

Comparison of Closed-Loop Transfer Functions

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)

2.004 Spring 13'

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

2nd Order System Poles

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

2.004 Spring 13'

18

Control Action Comparison


P improve speed but with steady-state error
D improve stability but sensitive to noise
I improve steady state error but with less stability, overshoot, longer transient,
integrator windup (we will discuss PI and PID control next week)

3/5/2013

2.004 Spring 13'

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

2.004 Spring 13'

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

2.004 Spring 13'

21

MIT OpenCourseWare
http://ocw.mit.edu

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

Improving the steady-state error: simple integrator


Integrator as a Compensator:
Eliminates the steady-state error,
since it increases the system Type;
however, our desirable closed-loop
pole A is no longer on the
root locus;
this is because the new pole at s=0
changes the total angular
contributions to A so that the
180 condition is no longer
satisfied.
This means that our desirable
transient response characteristics
that would have been guaranteed by A
are no longer available L
Nise Figure 9.3
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

Lecture 14 Thursday, March 7

Improving the steady-state error: PI controller


Ideal Integral Compensator
(or Proportional-Integral Compensator):
Includes a zero on the negative real
axis but close to the integrators pole
at the origin. The zero

has approximately the same


angular contribution to A as the
integrators pole at the origin;
therefore, the two cancel out;

moreover, it contributes the same


magnitude to the pole at A, so
A is reached with the same feedback
gain K.
The net effect is that we have fixed
the steady-state error without
affecting the transient response J

Nise Figure 9.3


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

Lecture 14 Thursday, March 7

Implementing the PI controller

Nise Figure 9.8

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

Lecture 14 Thursday, March 7

Example (Nise 9.1)

Nise Figure 9.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.04A Spring 13

Lecture 14 Thursday, March 7

Steady-state and transients with the PI controller


UNCOMPENSATED
(Proportional controller)

COMPENSATED
(PI controller)

Nise Figure 9.5

Nise Figure 9.6

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

Lecture 14 Thursday, March 7

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

Lecture 14 Thursday, March 7

(Another) Limitation of P-control


Steady-state error
Kp is limited by the saturation limit of the system
Large Kp may amplify noise and disturbances and lead to instability

2.04A Spring 13

Lecture 14 Thursday, March 7

P Control Steady-Sate Errors


In real world a set-point profile is often more complex than a simple
step input.

2.04A Spring 13

Lecture 14 Thursday, March 7

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

Lecture 14 Thursday, March 7

P, I, and PI Comparison
P Control: steady-state error
I Control: overshoot, longer transient, integrator windup

Set-point

2.04A Spring 13

Lecture 14 Thursday, March 7

10

Comparison of Closed-Loop Transfer Functions


Let K = Ka Km

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

Complex pole pair

(Kp s + Ki )KKt
Vt (s)
=
=A
=A
2
R(s)
Js + (B + Kp KKt )s + Ki KKt

Lecture 14 Thursday, March 7

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

; set Kp to 2 and Ki to 1 and run simulation for 5 seconds.

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

Lecture 14 Thursday, March 7

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

Lecture 14 Thursday, March 7

MIT OpenCourseWare
http://ocw.mit.edu

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

2.04A Class Project

Tall Building Active Damping

2.04A Spring 13

Lecture 16&17 March 12&14 (Tue-Thu)

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.)

Courtesy of Rob Pongsajapan on flickr. CC-BY


Cartoons sources 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/.

2.04A Spring 13

Lecture 16&17 March 12&14 (Tue-Thu)

Simplified Building Model

We can model a tall building as a single


degree of freedom lumped-parameter
system.

2.04A Spring 13

Lecture 16&17 March 12&14 (Tue-Thu)

Passive Vibration Damping


Sliding Mass, m2

One way to stabilize these


tall builds from swaying too
much during earthquakes or
from high winds is to install
enormous pendulum
weights. When the building
sways sideways the
pendulum doesn't want to
move (inertia) and exerts a
pull in the opposite
direction.

Wind force,
Fw(t)

Spring

Damper

Passive Damper
(Tuned Mass Damper)

Ground
2.04A Spring 13

Lecture 16&17 March 12&14 (Tue-Thu)

Taipei 101 (http://www.taipei-101.com.tw)

Taipei 101

Courtesy of Jirka Matousek on flickr. CC-BY

2.04A Spring 13

Courtesy of Stefan Tan. Used with permission.

Lecture 16&17 March 12&14 (Tue-Thu)

The Tuned Mass Damper in Taipei 101

The passive wind damper with a


diameter of 5.5 meters and
weighting 660 metric tons, is
also the largest in the world now.

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/.

Courtesy of Daniel M. Shih. Used with permission.

2.04A Spring 13

Lecture 16&17 March 12&14 (Tue-Thu)

Active Damper Design


Sliding Mass, m2
controller

sensor
Spring

actuator
Wind force, Fw(t)

Damper

The actuator is commanded by a


control system, which requires
sensor feedback

2.04A Spring 13

Lecture 16&17 March 12&14 (Tue-Thu)

Experimental System

air-bearings

voice-coils

wire spring
accelerometer

2.04A Spring 13

Lecture 16&17 March 12&14 (Tue-Thu)

tall building

System Modeling

Air Bearings

Relative Velocity
Sensor:
Voice Coil

Actuator:
Voice Coil

Accelerometer

Spring
Sliding
mass
Building

2.04A Spring 13

Lecture 16&17 March 12&14 (Tue-Thu)

Tower feedback schematic

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)

(disturbance & actuation vector)

y=

v1
v2

v1

v1
v 2 V v1

measured

(observation vector)

w(t)

disturbance input (force due to wind)

a(t)

actuation input (force due to voice coil)

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

Lecture 16&17 March 12&14 (Tue-Thu)

10

Procedure #1

Obtain the Towers equation of motion

Derive the state-space representation of the system


q = Aq + Bu
y = Cq + Du

where

u=

y=

x1
6 v1 7
7
q6
4 x2 5
v2
w(t)
a(t)

(disturbance & actuation vector)

v1
v2

(state vector)

v1

(observation vector)

Hint: see also Problem 4 of PSet 4


2.04A Spring 13

Lecture 16&17 March 12&14 (Tue-Thu)

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

Lecture 16&17 March 12&14 (Tue-Thu)

12

Procedure #3 - Controlling the actuation force


The force from the wind w(t) is the disturbance, whereas the force
from the actuator is the controller which is meant to cancel the
disturbance. Both can be thought of as inputs to the tower plant. The
outputs are the velocity v1(t) and relative velocity v2(t)-v1(t), because
this is what our sensors measure. Thus, this is a MIMO (multipleinput, multiple-output) system.
The input to the feedback system is the difference between the
outputs from the sensors and the desired outputs (recall that the
desired outputs are the input commands). To quiet the Tower, the
input command/desired output requires the vibration of motion to
equal zero, i.e. (v1 (t) = 0 and v2 (t)

v1 (t) = 0) . Obtain a SISO model

that equivalently models this MIMO system [we will help you.]
2.04A Spring 13

Lecture 16&17 March 12&14 (Tue-Thu)

13

Procedure #4 - Controlling the actuation force


Design a PID controller using graphical tuning and analysis plots
from MATLAB SISOTOOL.
You will have to move around the zeros of the PID controller and
play around with the gains quite a bit to obtain a reasonable
response (i.e., quieting the Tower.)
However, all controller gain values must be limited to <2.0

Verify your controller design first using a simulation (uncomment the


last part of PID_template.m). Save and print some representative
responses from good and bad controllers.

2.04A Spring 13

Lecture 16&17 March 12&14 (Tue-Thu)

14

Procedure #5 - Design verification


Test on the real system. Dont be surprised if you find yourself
having to experimentally modify your PID design slightly compared
to the simulation; this is because our model can not fully represent
the real system. Also, dont expect any dramatic improvements; the
PID controller is quite limited in what it can do.
Turn in plots with the responses of the experimental and explain your
reasoning of the design process. Clearly note your final controller
design. Compare your system performance with and without the
controller. (Hint: use a characteristic time).
Demonstrate your PID design effectiveness on the actual system to
the instructors.

2.04A Spring 13

Lecture 16&17 March 12&14 (Tue-Thu)

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

Lecture 16&17 March 12&14 (Tue-Thu)

16

MIT OpenCourseWare
http://ocw.mit.edu

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY

Department of Mechanical Engineering

2.04A Systems and Controls


Spring 2013
Supplement to Lecture 18
Control of an inverted pendulum

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 ;

= mgl sin (t) + T (t).


ml2 (t)
g sin (t) = T (t) .
(t)
l
ml
Approximating sin (t) (t), we nd the linearized equation of motion as

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

Answer: Laplace transforming, we obtain


g
T (s)
s2 (s) (s) =
l
ml2

(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:

Root Locus Editor for Open Loop 1 (OL1)


5

Imag Axis

5
10

Real Axis

Root Locus Editor for Open Loop 1 (OL1)


1

0.8

0.6

0.4

Imag Axis

0.2

0.2

0.4

0.6

0.8

1
10

2
Real Axis

The zero can be farther than s = 3 or in between s = 0 and s = 3. Either


one can stabilize the system with a big gain. The second conguration (the zero
in between the two poles) will generally need a much bigger gain to stabilize. So
the rst one (zero to the left of the stable pole) is more practical choice (and
agrees with our general strategy for PD control that we saw earlier in this class.)
g) What is the additional information that the PD controller accounts for to succeed
in stabilizing the system where the P controller failed?
Answer: The additional information is velocity. In the PD controller, D stands
for derivative action. The error signal in the feedback loop (reference - output)
contains velocity as well as displacement. Therefore the controller sees how big
the error is and also how fast the error changes (the rate of error growth or decay.)

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

System: Closed Loop r to y


I/O: r to y

4 Peak amplitude: 3.53

Step Response

Overshoot (%): 21.8


At time (sec): 1.41

3.5

System: Closed Loop r to y


I/O: r to y
Final Value: 2.89

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.

The openloop transfer function is now


(s + zI ) 1
K(s + zD )
.
s
s2 9
This system includes one free integrator, so the steady state error to a step input
is zero.
We can conrm that by computing the steady state output as
 
1
y() = lim s
s0
s

(s + zI ) 1
s s2 9 = 1.
(s + zI ) 1
1 + K(s + zD )
s
s2 9
K(s + zD )

Therefore, the steadystate error is indeed e() = 1 y() = 0.


Step Response

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:

System: Closed Loop r to y


I/O: r to y
Peak amplitude: 4.72
Overshoot (%): 372
At time (sec): 1.5

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

PIDcompensated root locus

Zoomin on the PDcompensated


root locus (from question f)
near the origin. Clearly, z = p .

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

Answer: Now we control the individual gains of the P , I, and D components as


follows:

The transfer function of the PID controller is


K1 s + K2 + K3 s2
.
s
This is very similar to the approach that we took to control the 2.04A Tower in
the lab last week.
From the new requirement, we obtain the following relations:
d > 1.9513.
0.2 > exp

1 2

> 0.4559 (cos < 0.4559 < 62.8771 ).

The desired pole location can be drawn as follows:

All we need to do in this problem is to nd K1 , K2 , and K3 that make the


(dominant) closedloop poles to be in the desired region. Matlab allows us to
change K, zD and zI in the previous questions.
Alternatively, since we can change individual gains of K1 , K2 , and K3 , we want
to introduce another trick that you can play with. The transfer function of the
compensator has a secondorder numerator, so we can actually use a pair of
complex zeros as controller. (Many of you used that approach last week for the
2.04A Tower.) For example, when we add a pair of zeros at s = 3.7 j2.04
(and a pole at s = 0 of course), then you can satisfy the desired step response.
The resulting gains for this particular case are K3 = 28.208, K2 = 17.9, and
K1 = 7.4; and the root locus and step response are shown below.
9

Root Locus Editor for Open Loop 1 (OL1)


10

Imag Axis

10
20

15

10

Real Axis

Step Response

System: Closed Loop r to y


I/O: r to y
1.4
Peak amplitude: 1.2
Overshoot (%): 19.5
At time (sec): 0.164

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

The step response meets the transient requirements rather well.

10

MIT OpenCourseWare
http://ocw.mit.edu

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY

Department of Mechanical Engineering

2.04A Systems and Controls


Spring 2013
Supplement to Lecture 10
Dynamics of a DC Motor with Pinion Rack Load and Velocity Feedback
As an extension to Lecture 10, here we will analyze a DC motor connected to a pinion
rack with a massdamper load. The motor isconnected in a velocityfeedback con
guration with a dierential opamp providing the error signal as shown in Figure 1
below. This is similar to the ywheel that we have been studying in the labs, with
the important dierence that now the ywheel is assumed to be connected to a rack
and pinion converting angular motion to translational motion. Such conversions occur
often in mechanical systems.
Plant transfer function
We begin by analyzing the plant, i.e., the motor connected directly to a voltage
source input vs (t) and velocity output v(t). The result that we are about to derive is
referred to as the plant model. After we know the plant model, we can proceed to
model the entire system which includes the velocity feedback loop.
To analyze the plant, we begin by writing the bynow familiar electrical equation
of motion that is derived from KVL on the electrical circuit including the motor:
vs (t) i(t)R ve (t) = 0 vs (t) = i(t)R + Kv (t),

(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)

In the Laplace domain, the equation of motion is rewritten as


Km I(s) = Js(s) + D(s) + Tp (s).

(4)

Figure 1: Schematic of the feedback system to control the velocity of a pinion


We still have to nd Tp (s). This is done by forcebalance on the translational part of
the load, i.e. the pinions rack that carries the mass M . If Fp (t) denotes the force by
the pinion on the rack, then in the time domain we have
Fp (t) = M v(t) + fv v(t),

(5)

Fp (s) = M sV (s) + fv V (s).

(6)

or, in the Laplace domain,

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)

In the Laplace domain, we equivalently have


Tp (s) = rFp (s),
V (s) = r(s).

(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),

(9) and (10) to (4) to obtain


V (s)
+ r (M s + fv ) V (s)
r
J + r2 M
D + r 2 fv
s+
V (s).
rKm
rKm

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)

Substituting the (revised) numerical values R = 1, Km = 1N m/A. Kv =


1V
sec/rad, J = 0.1kg m2 , D = 0.5kg m2 / (rad sec), M = 9kg, fv = 5kg/sec and
r = 0.1m = 0.3162m, we obtain
V (s)
0.3162
=
Vs (s)
s+2

m/sec
.
V

(14)

Feedback transfer function


The velocity output is measured by a tachometer and fed back via a dierential
amplier. It is important to note that the tachometer converts the velocity to a voltage;
that voltage is then used as input in the negative terminal of the opamp. The positive
terminal is connected to a reference voltage. We will now take a few steps to appreciate
the signicance of the feedback and reference voltages.
Looking rst at the feedback loop, we model the tachometer as producing a voltage
Vtach equal in numerical value to the translational velocity v of the mass. This means
that
Volts
Vtach (t) [Volts] = 1
v(t).
(15)
m sec
This relationship expresses an ideal linear transducer with unit gain. It is especially
important to note that the unit conversion requires the presence of a unity gain with
units Volts/ (m/sec). In many practical situations the relationship is not unity; we
would then have to take transduction into account as a nonunity gain in the feedback
path. Moreover, many transducers are approximately linear but saturate or exhibit
other types of nonlinearities if the measured variables (the velocity, in this case) be
come too large. In the interest of keeping this discussion as clear as possible, we will
3

Vref

v(t)

Vtach
1

Figure 2: Block diagram representing the physical system of Figure 1.


neglect these practical diculties and assume an ideal unitygain tachometer; as we
proceed with the solution of this ideal case, however, it is important to keep in mind
its limitations in actual systems. Also, to avoid notational clutter we will hereafter
cease the explicit mention of units in each equation.1
As you will learn in 2.678 (or other classes on electronics), the voltage at the output
of the dierential amplier is given by
R2
(Vref Vtach ) .
R1

(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

v [m/ (sec V)]


0.1365
0.2402
0.4415
0.6126
0.9405

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

OpenLoop velocity response


8

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

ClosedLoop velocity response

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

ClosedLoop error signal

Figure 3: Unit step response of the velocity control system.

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

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY


Department of Mechanical Engineering
2.04C Systems and Controls
Spring 2013
Problem Set #1
Posted: Thursday, Feb. 7, 13

Due: Thursday, Feb. 14, 13

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

b) A pendulum consisting of a mass m attached to a rigid massless rod as


shown below. The system input is a horizontal external force and the output
is the angle .

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

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY

Department of Mechanical Engineering

2.04A Systems and Controls


Spring 2013
Problem Set #2

Posted: Thursday, Feb. 14, 13

Due: Thursday, Feb. 21, 13

1. Obtain the inverse Laplace transform of the following frequencydomain expres


sions:
(4s 10)
1.a) F1 (s) =
;
s(s + 2)(s + 5)
1.b) F2 (s) =

4
_;
_
s2 s2 + 4

s3 3s2 + s + 2
H(s), where H(s) is a wellbehaved function of s,
s

whose inverse Laplace transform is h(t).

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)

4. A mass m is initially at rest on an innitely long ramp surface and is released


abruptly at time t = 0. We assume that the motion of the mass is subject to
viscous friction from a lubricant applied at the interface with the ramp, and that
the viscous friction coecient is b. The ramp incline angle is and the distance
along the ramp that the mass will slide as function of time t > 0 is x(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

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY


Department of Mechanical Engineering
2.04A Systems and Controls
Spring 2013
Problem Set #3
Posted: Thursday, Feb. 28, 13

Due: Thursday, Mar. 6, 13

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

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY


Department of Mechanical Engineering
2.04A Systems and Controls
Spring 2013
Problem Set #4
Posted: Thursday, Mar. 7, 13

Due: Thursday, Mar. 14, 13

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)

The plant transfer function is


Gp (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

(You will have to adjust the gain K to a value of 3 4 or higher. The PI


controller is slightly slower, actually.)
3.f ) To enjoy the benefits of both PD and PI control (faster settling time and
no steadystate error, respectively), we finally consider the PID controller
Gc = (s + z)

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

4.c) Now define the tower displacement and velocity x1 , v1 = x1 , respectively,


and slider displacement and velocity x2 , v2 = x2 , respectively, as shown in
the Figure. We will refer to these as the state variables. We also define
the state vector

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

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY


Department of Mechanical Engineering
2.04A Systems and Controls
Spring 2013
Practice Problems #1
Please do not turn in practice only
Posted: Thursday, Feb. 21, 13

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)

Step response (1 e2t )u(t). 1st order system.


1.b)
T (s) =

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)

n2 = 12 and = 4/ 12 = 1.15 > 1. 2nd order overdamped system.


Step response [1 + K1 ep1 t + K2 ep2 t ] u(t).
1.c)
T (s) =

10(s + 7)
(s + 10)(s + 20)

Answer: Poles: p1 = 10, p2 = 20, Zeros: z1 = 7


Step Response

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

Answer: Poles: p1 = 3 + j11.619, p2 = 3 j11.619, Zeros: none

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

Answer: Poles: p1 = 3j, p2 = 3j, Zero: z = 2


PoleZero Map

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)

n2 = 9 and = 0. 2nd order undamped system.


Step response [1 K1 sin (3t) + K2 cos (3t)] u(t).
1.f )
T (s) =

(s + 5)
(s + 10)2

Answer: Poles: p = 10(double), Zeors: z = 5

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)

n2 = 100 and = 1. 2nd order critically damped system.


Step response [K0 + K1 e10t K2 te10t ] u(t).
2. A secondorder system has the step response shown below.1 Determine its transfer function.

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

we have to decide the parameters of A(constant),(damping ratio) and n (natural


frequency).
From the final value theorem,
1
An2
lim s 2
=A
2
s0 s s + 2n s + n
1

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 .



From the lecture note 7 (pp. 26), %OS = exp 1


: 72%.
2
Thus the damping ratio 0.1.

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.

f (t1 ) = 1 aed t1 = 1.72


f (t2 ) = 1 aed t2 = 1.4
Dividing the two equations, we obtain
aed t1
1 1.72
=
.
aed t1
1 1.4



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

3. Consider a pendulum and inverted pendulum, as shown in the figure below.


In this problem we will explore how they are different physically, and how the
difference is mapped out in the Laplace domain. We assume that the mass m
and length l are the same in both cases, and that they are both subject to viscous
friction with coefficient b from the surrounding medium (in reality, the pendulums
would be subject to drag forces as well, but we neglect them here to simplify the
problem.) In both cases, the pendulums are driven by a force r(t) applied in
the direction tangential to the motion. The initial conditions are (0) = 0 and

(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)

Substituting for viscous friction Ffriction = b(t),


and dividing across by ml2
we obtain the equation of motion
+ b (t)
+ g sin (t) = r(t) .
(t)
ml
l
ml

(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)

Following similar procedure in the case of the inverted pendulum (right


hand side in the above figure) torque balance yields
= r(t) + mgl sin (t) Ffriction l.
ml2 (t)

(4)

from which we obtain the liberalized equation of motion as


+ b (t)
g (t) = r(t) .
(t)
ml
l
ml

(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

Under normal conditions, we expect friction


to be weak, certainly so that
the friction coefficient satisfies b < 2m gl. Then the two poles become
complex, with real part
b

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

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY


Department of Mechanical Engineering
2.04A Systems and Controls
Spring 2013
Practice Problems #2
Please do not turn in practice only
Posted: Thursday, March 14, 13

1. Review questions The purpose of the following questions is to remind you of


some fundamental topics and results that we derived in this class. Answer as
accurately and succinctly as possible.
1.a) What is the relationship between the torque constant Km and backemf
constant Kv of a DC motor? What is the physical justification for this
relationship?
Answer: Km = Kv . This is because energy must be conserved when it is
converted from the electrical to the mechanical domain by the DC Motor. It
also follows from the derivation of the electromagnetic derivation of torque
and backemf in the motor coils.
1.b) In what sense are a spring and a capacitor analogous as elements in electro
mechanical systems?
Answer: Both spring and capacitor are energy storage elements (the spring
stores elastic energy, the capacitor stores charge, i.e. electrostatic energy.)
1.c) Which parameter specifies whether a 2ndorder system is overdamped/critically
damped/underdamped/undamped? How are the step responses of these systems different?
Answer: The damping ratio specifies the 2ndorder system behavior. If
> 1, the system is overdamped and there is no overshoot. If = 1, then
system is critically damped. If < 1, then the system is underdamped and
the step response is oscillation with exponential decay envelope. If = 0,
then the system is undamped. The step response is pure oscillation without
any decay.
1.d) If a DC motor is driven to spin faster, why does it get hotter?
Answer: Higher torque will require higher current, and therefore more of the
input energy will be converted into heat (inevitably, the motor wires have a
finite resistance.)

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.

Problem 1, parts (f) and (g).


2. The root locus of a feedback system with openloop poles at 1, 3 and open
loop zeros at 8, 10 is shown below. Study the diagram, then answer the
following two questions:
Root Locus for Open Loop TF K(s+8)(s+10)/(s+1)(s+3)
8

Imaginary axis (j)

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

graphically. If your answer is yes, there is no need to compute the value


of K that would give this settling time.
Answer: Settling time of 1sec requires
Ts =

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.

Answer: Damping ratio of = 1/ 2 requires that the closedloop poles


subtend angle to the origin such that
1
cos = = = 45 .
2
The given root locus does not intersect the line = 45 (see annotated
root locus below;) therefore, there are no closedloop poles for any value of
feedback gain in the given system that yield the desired overshoot.
Root Locus for Open Loop TF K(s+8)(s+10)/(s+1)(s+3)
8

T =1 sec
s

Imaginary axis (j)

=0.717

8
12

10

4
Real axis ()

3. We are given a feedback system whose openloop transfer function is


K (s + 20)
,
(s + 2) (s + 4) (s + 10)
where K is the feedback gain. In this problem, we will evaluate this systems
closedloop behavior using the root locus technique.
3.a) How many asymptotes are there in this systems root locus? What are the
asymptote angles?
Answer: This system has #p = 3 finite poles and #z = 1 finite zero; therefore, it should two openloop zeros at infinity. The closedloop poles should
approach the openloop zeros at infinity (as the feedback gain increases to
infinity) along #p #z = 2 asymptotes at angles


(2m + 1)
3
a =
=
,
.
31
2 2
3.b) Where is the asymptotes realaxis intercept?
Answer:
a =

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

(not drawn to scale)

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

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY

Department of Mechanical Engineering

2.04A Systems and Controls


Spring 2013

Quiz 1

Tuesday, February 26, 2013

PLEASE DO NOT TURN OVER UNTIL EXAM STARTS

DURATION: 60min (13:0514:05)

TOTAL PAGES: 3

NAME:

MIT ID:

PLEASE RETURN THIS SHEET WITH YOUR ANSWERS BOOKLET

MASSACHUSETTS INSTITUTE OF TECHNOLOGY

Department of Mechanical Engineering

2.04A Systems and Controls


Spring 2013
Quiz 1
Tuesday, February 26, 2013

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?

2. (40%) A conservation law for population growth in a society is the following:


(growth rate) = (immigration and births rate) (emigration and deaths rate).
Let p(t) denote the population at a time instance t. To build a very simple
model, let us assume that the immigration rate m(t) is independent of the pop
ulation, whereas the births, emigration and deaths rates are proportional to the
population according to
births rate = bp(t),
emigration rate = kp(t),
deaths rate = dp(t).
2.a) Based on the model described above, write down a 1st order ordinary dif
ferential equation that relates the population p(t) with its derivative p(t)
(the derivative p(t) is the population growth rate).
2.b) Further, let us assume that at time t = 0 the population is zero, at which
instance a constant immigration rate m0 starts. Moreover, we assume that
the births rate is smaller than the combined emigration and deaths rate, i.e.
b < k + d. What is the steadystate population?
2.c) Under the assumptions of the previous question, how long will it take for
the population to reach 63.2% of its steadystate value?
2.d) Let us now instead assume that the births rate exceeds the combined em
igration and deaths rate, i.e. b > k + d. How would the population grow
then? Is there a steadystate value?
[The model resulting from the last question is attributed to Malthus, 1798.]

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

2.04A Systems and Controls


Spring 2013

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

2.04A Systems and Controls


Spring 2013

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

Você também pode gostar