control system design - mit opencoursewarecontrol systems • an integral part of any industrial...

36
Feedback Control System Design 2.017 Fall 2009 Dr. Harrison Chin 10/29/2009

Upload: tranxuyen

Post on 31-Jan-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Feedback Control System Design 2.017 Fall 2009

Dr. Harrison Chin

10/29/2009

Page 2: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Announcements

• Milestone Presentations on Nov 5 in class– This is 15% of your total grade:

5% group grade10% individual grade

– Email your team’s PowerPoint file to Franz and Harrison by 10 am on Nov 5– Each team gets 30 minutes of presentation + 10 minutes of Q&A– Select or design your own presentation template and style

Page 3: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Control Systems

• An integral part of any industrial society

• Many applications including transportation, automation, manufacturing, home appliances,…

• Helped exploration of the oceans and space

• Examples:– Temperature control– Flight control– Process control– …

Page 4: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Types of Control Systems

Plant yr SensorsActuatorsControlleru

dcontrol input

disturbance

command output

Open loop system

Plant+

_yr

eSensorsActuatorsController

uderror

control input

disturbance

command output

Closed loop system

Page 5: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Control System Comparison

• Open loop:– The output variables do not affect the input variables– The system will follow the desired reference commands if no unpredictable effects occur– It can compensate for disturbances that are taken into account– It does not change the system stability

• Closed loop:– The output variables do affect the input variables in order to maintain a desired system behavior– Requires measurement (controlled variables or other variables)– Requires control errors computed as the difference between the controlled variable and the reference

command– Computes control inputs based on the control errors such that the control error is minimized– Able to reject the effect of disturbances– Can make the system unstable, where the controlled variables grow without bound

Page 6: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Overview of Closed Loop Control Systems

Disturbances

Computer /Microcontroller

PlantInputs

Outputs

Sensors

Actuators

ADCDAC

Control Algorithm

Scope

FunctionGenerator

Model

Power Amp

Reference Inputs(Setpoints)

Page 7: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Control System Representations

• Transfer functions (Laplace)

• State-space equations (System matrices)

• Block diagrams⎩⎨⎧

+=+=

)()()()()()(

tutxtytutxtx

DCBA&

+

_)(sY)(sR

)(sE

)(sG

)(sD

)(sGc

)(sH

)(sGd

+

+

Page 8: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Laplace Transform

• Convert functions of time into functions that are algebraic in the complex variables.

• Replaces differentiation & integral operations by algebraic operations all involving the complex variable.

• Allows the use of graphical methods to predict system performance without solving the differential equations of the system. These include response, steady state behavior, and transient behavior.

• Mainly used in control system analysis and design.

Page 9: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Laplace vs. Fourier Transform

• Laplace transform:

• Fourier transform

• Laplace transforms often depend on the initial value of the function

• Fourier transforms are independent of the initial value.

• The transforms are only the same if the function is the same both sides of the y-axis (so the unit step function is different).

∫∞ −=

0)()( dtetfsF st )()( ssFtf ⇒′

∫∞

∞−

−= dtetfF tjωω )()(

Page 10: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

System Modeling (1st Order System)

Transfer function:Differential equation:Laplace transform

)()()( sFsbVssmV =+)()()( tftbvtvm =+&

( )( ) 1/

/11)()(

+=

+=

sbmb

bmssFsV0)()( =+ tbvtvm &

tmb

etvtv⎟⎠⎞

⎜⎝⎛−

= )()( 0

( ) τ1

/1 −

=−

=−

=mb

bms

84.15 1 =× −e

5.1≈τ

Time constant

Page 11: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

System Modeling (2nd Order System)

)()()()( tftkxtxbtxm =++ &&&

bk

m

vx,)()()( tftbvtvm =+&

⎟⎠⎞⎜

⎝⎛ += −−−− tmkmbtmkmbtmb BeAeex )/()2/()/()2/()2/( 22

⎪⎪⎩

⎪⎪⎨

=

=⇒

++⇔++

kmbmk

kbsmsss

n

nn

2

2 222

ζ

ω

ωζω

Page 12: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

2nd Order System Poles

100%

41

21

2

×=

=

−=

⎟⎟

⎜⎜

−−

ζ

ζπ

ζω

ζωπ

eOS

T

T

ns

n

p02 22 =++ nnss ωζω

22,1 1 ζωζωωσ −±−=±−= nndd jjs

Page 13: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

System Identification (Time Domain)

Step Input, Open Loop

τ

Page 14: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

System Identification (Frequency Domain)

101 102 103

10-2

100

102

Frequency (Hz)

Gai

nZ-Axis

101 102 103

-300

-200

-100

0

Frequency (Hz)

Phas

e La

g (d

eg)

MeasuredModelFit

Center Stage Modes

Page 15: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Closed-Loop Transfer Function

• The gain of a single-loop feedback system is given by the forward gain divided by 1 plus the loop gain.

)()()(1)()()(

sHsGsGsGsGsG

c

ccl +

=

+

_

)(sE)()( sGsGc

)(sH

)(sR )(sY

Page 16: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

PID Controller Transfer Function

⎟⎟⎟⎟

⎜⎜⎜⎜

⎛⎟⎠⎞⎜

⎝⎛+⎟

⎠⎞

⎜⎝⎛+

=

++=

++=

s

sKKsK

K

K

ssKsKK

sKs

KKsG

i

d

i

p

i

dpi

di

pc

2

2

1

)(

Page 17: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Disturbance Rejection (Active Vibration Cancellation)

Controller

disturbanceP, PI, PD, PID,…

Plant

Page 18: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Control Actions• Proportional – improves speed but with steady-state error• Integral – improves steady state error but with less stability, overshoot,

longer transient, integrator windup• Derivative – improves stability but sensitive to noise

Page 19: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Root Locus

• Can we increase system damping with a simple proportional control ?

Dominant Poles

2σ 1σ

Page 20: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

SISO Design Tool• command: ‘sisotool’ or ‘rltool’

PID Controller Transfer Function

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.

MATLABMATLAB

Page 21: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

State-Space Representation

⎩⎨⎧

+=+=

)()()()()()(

tutxtytutxtx

DCBA&

⎩⎨⎧

+=+=

⇒)()()()()()(

sUsXsYsUsXssX

DCBA

)()()()()()(

1 sUssXsUsXsBAI

BAI−−=⇒

=−

DBAIC

DBAIC

+−==⇒

+−=

1

1

)()()()(

)()()()(

ssUsYsG

sUsUssY

Page 22: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Characteristic Polynomial

Resolvent

)det()det()det(

)det()(adj)()(

0

1

AIAIBCAI

BAIAICBAIC

D

−−−+−

=

⎥⎦

⎤⎢⎣

⎡−−

=−=⇒

=

sss

ssssG

if

MATLAB ss2tf command uses this formula to compute the transfer function(s)

Characteristic polynomial

Page 23: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Controllability

x2

x(tf)

x(t0)

x1

Courtesy of Kamal Youcef-Toumi. Used with permission.

Page 24: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Observability

Courtesy of Kamal Youcef-Toumi. Used with permission.

Page 25: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Stabilizability and Detectability

Courtesy of Kamal Youcef-Toumi. Used with permission.

Page 26: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Example

• Can we observe and/or control the position (x) of the following system?

x& xu

Page 27: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Full-State Feedback

⎩⎨⎧

=+=

xyuxx

CBA&

[ ] 0det =−AIsOpen-loop characteristic equation:

xu K−=

( )xxxx BKABKA −=−=&

[ ] 0)(det =−− BKAIsClosed-loop characteristic equation:

Page 28: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Where to Place The Poles?

• Must meet the performance requirements:– Stability– Speed of response– Robustness

• For a given state the larger the gain, the larger the control input

• Avoid actuator saturation

• Avoid stressing the hardware (not exciting any structural modes)

• The gains are proportional to the amounts that the poles are to be moved. The less the poles are moved, the smaller the gain matrix.

Page 29: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Butterworth Pole Configurations

• The bandwidth of a system is governed primarily by its dominant poles (i.e., the poles w/ real parts closest to the origin)

• Efficient use of the control signal would require that all the closed-loop poles be about the same distance from the origin (a.k.a Butterworth configuration)

( ) 1613.222613.2)(

122)(

12)(

1)(

2344

233

22

1

+++++=

+++=

++=

+=

sssssB

ssssB

sssB

ssB

Page 30: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

State-Space Design Summary

• Formulate the state-space model

• Make sure the system is both controllable and observable by checking the ranks of the controllability and the observability matrices– Add additional actuators if necessary– Add additional sensors if necessary– Eliminate redundant states

• Select a bandwidth high enough to achieve the desired speed of response

• Keep the bandwidth low enough to avoid exciting unmodeled high-frequency modes and noise

• Place the poles at roughly uniform distance from the origin for efficient use of the control effort

Page 31: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Example

⎩⎨⎧

=+=

)()()()()(

txtytutxtx

CBA&

⎥⎦

⎤⎢⎣

⎡=

10

B⎥⎦

⎤⎢⎣

⎡−

=24

10A [ ]11=C

Place closed-loop poles according to the Butterworth configuration

[ ] 12)()(det 22 ++==−− sssBs BKAI

( ) ( )aa −⎥⎦⎤

⎢⎣⎡ ′=

− )1

QWKBass-Gura formula:

Ackermann’s formula: MATLAB command “acker(A,B,p)”

Page 32: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Code

% 2.14/2.140 State-Space Method Example

%% Set up an SS model

A = [0 1

4 -2];

B = [0

1];

C = [1 1];

D = 0;

%% Convert to transfer function

[num,den] = ss2tf(A,B,C,D,1);

sys_tf = tf(num,den)

zpk(sys_tf)

pzmap(sys_tf)

hold

%% Test controllability and observabilityCtrlTestMatrix = ctrb(A,B)rank(CtrlTestMatrix)

ObsrbTestMatrix = obsv(A,C)rank(ObsrbTestMatrix)

%% Place the poles to Butterworth configurationp = roots([1 sqrt(2) 1])% K = acker(A,B,p) % this method is not numerically reliable and starts to break down rapidly for problems of order greater than 5K = place(A,B,p)

% check the closed-loop pole locationseig(A-B*K)pzmap(1,poly(eig(A-B*K)))

MATLABExample

Page 33: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Frequency Design Methods

• Loop shaping

• Bode, Nyquist

• Crossover frequency

• Closed-loop bandwidth

• Phase margin

Page 34: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Frequency Response (Gain and Phase)

)(sGcl)(tvin )(tvout

Vin p-p Vout p-p

Phase shift

Page 35: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

Frequency Response (Bode Plot )

• The frequency response of a system is typically expressed as a Bode plot.

Gain Plot

Phase Plot

00 707.04

sin MMM c ⋅=⎟⎠⎞

⎜⎝⎛⋅=π

τπω 12 == cc f

dB3)707.0(log20 10 =⋅

Cutoff frequency

Page 36: Control System Design - MIT OpenCourseWareControl Systems • An integral part of any industrial society • Many applications including transportation, automation, manufacturing,

MIT OpenCourseWarehttp://ocw.mit.edu

2.017J Design of Electromechanical Robotic Systems Fall 2009

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