EE3CL4 C01: Trans. Newton. Mech. Rot. Newton. Mech. Introduction - - PowerPoint PPT Presentation

ee3cl4 c01
SMART_READER_LITE
LIVE PREVIEW

EE3CL4 C01: Trans. Newton. Mech. Rot. Newton. Mech. Introduction - - PowerPoint PPT Presentation

EE 3CL4, 2 1 / 97 Tim Davidson Modelling physical systems EE3CL4 C01: Trans. Newton. Mech. Rot. Newton. Mech. Introduction to Linear Control Systems Linearization Laplace Section 2: System Models transforms Laplace in action


slide-1
SLIDE 1

EE 3CL4, §2 1 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

EE3CL4 C01: Introduction to Linear Control Systems

Section 2: System Models Tim Davidson

McMaster University

Winter 2020

slide-2
SLIDE 2

EE 3CL4, §2 2 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Outline

1

Modelling physical systems Translational Newtonian Mechanics Rotational Newtonian Mechanics

2

Linearization

3

Laplace transforms

4

Laplace transforms in action

5

Transfer function

6

Step response

7

Transfer function of DC motor

8

Our first model-based control system design

9

Block diagram models Block diagram transformations

slide-3
SLIDE 3

EE 3CL4, §2 4 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Differential equation models

  • Most of the systems that we will deal with are dynamic
  • Differential equations provide a powerful way to

describe dynamic systems

  • Will form the basis of our models
  • We saw differential equations for inductors and

capacitors in 2CI, 2CJ

  • What about mechanical systems?

both translational and rotational

slide-4
SLIDE 4

EE 3CL4, §2 5 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Translational Spring

F(t): resultant force in direction x Recall free body diagrams and “action and reaction”

  • Spring. k: spring constant,

Lr: relaxed length of spring F(t) = k

  • [x2(t) − x1(t)] − Lr
slide-5
SLIDE 5

EE 3CL4, §2 6 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Translational Damper

F(t): resultant force in direction x

  • Viscous damper. b: viscous friction coefficient

F(t) = b dx2(t) dt − dx1(t) dt

  • = b
  • v2(t) − v1(t)
slide-6
SLIDE 6

EE 3CL4, §2 7 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Mass

F(t): resultant force in direction x

  • Mass: M

F(t) = M d2xm(t) dt2 = M dvm(t) dt = Mam(t)

slide-7
SLIDE 7

EE 3CL4, §2 8 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Rotational spring

T(t): resultant torque in direction θ

  • Rotational spring. k: rotational spring constant,

φr: rotation of relaxed spring T(t) = k

  • [θ2(t) − θ1(t)] − φr
slide-8
SLIDE 8

EE 3CL4, §2 9 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Rotational damper

T(t): resultant torque in direction θ

  • Rotational viscous damper.

b: rotational viscous friction coefficient T(t) = b dθ2(t) dt − dθ1(t) dt

  • = b
  • ω2(t) − ω1(t)
slide-9
SLIDE 9

EE 3CL4, §2 10 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Rotational inertia

T(t): resultant torque in direction θ

  • Rotational inertia: J

T(t) = J d2θm(t) dt2 = J dωm(t) dt = Jαm(t)

slide-10
SLIDE 10

EE 3CL4, §2 11 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Example system (translational)

  • Horizontal. Origin for y: y = 0 when spring relaxed
  • F = M dv(t)

dt

  • v(t) = dy(t)

dt

  • F(t) = r(t) − b dy(t)

dt

− ky(t) M d2y(t) dt + bdy(t) dt + ky(t) = r(t)

slide-11
SLIDE 11

EE 3CL4, §2 12 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Example, continued

M d2y(t) dt + bdy(t) dt + ky(t) = r(t) Resembles equation for parallel RLC circuit.

slide-12
SLIDE 12

EE 3CL4, §2 13 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Example, continued

  • Stretch the spring a little and hold.
  • Assume an under-damped system.
  • What happens when we let it go?
slide-13
SLIDE 13

EE 3CL4, §2 15 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Taylor’s series

  • Nature does not have many linear systems
  • However, many systems behave approximately linearly

in the neighbourhood of a given point

  • Apply first-order Taylor’s Series at a given point
  • Obtain a locally linear model
  • Use this to obtain insight into behaviour of physical

system via Laplace Transforms, poles and zeros, etc

  • In this course we will focus on the case of a single

linearized differential equation model for the system, in which the coefficients are constants

  • e.g., in previous examples mass, viscosity and spring

constant did not change with time, position, velocity, temperature, etc

slide-14
SLIDE 14

EE 3CL4, §2 16 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Pendulum example

  • Assume shaft is light with respect to M,

and stiff with respect to gravitational forces

  • Torque due to gravity: T(θ) = MgL sin(θ)
  • Apply Taylor’s series around θ = 0:

T(θ) = MgL

  • θ − θ3/3! + θ5/5! − θ7/7! + . . .
  • For small θ around θ = 0 we can build an approximate

model that is linear T(θ) ≈ MgLθ

slide-15
SLIDE 15

EE 3CL4, §2 18 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Laplace transform

  • Once we have a linearized differential equation (with

constant coefficients) we can take Laplace Transforms to obtain the transfer function

  • We will consider the “one-sided” Laplace transform, for

signals that are zero to the left of the origin. F(s) = ∞

0− f(t)e−st dt

  • What does

∞ mean? limT→∞ T.

  • Does this limit exist?
  • If |f(t)| < Meαt, then exists for all Re(s) > α.

Includes all physically realizable signals

  • Note: When multiplying transfer function by Laplace of input, output

is only valid for values of s in intersection of regions of convergence

slide-16
SLIDE 16

EE 3CL4, §2 19 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and zeros

  • In this course, most Laplace transforms will be rational

functions, that is, a ratio of two polynomials in s; i.e., F(s) = nF(s) dF(s) where nF(s) and dF(s) are polynomials

  • Definitions:
  • Poles of F(s) are the roots of dF(s)
  • Zeros of F(s) are the roots of nF(s)
  • Hence,

F(s) = KF M

i=1(s + zi)

n

j=1(s + pj)

= KF M

i=1 zi

n

j=1 pj

M

i=1(s/zi + 1)

n

j=1(s/pj + 1)

where −zi are the zeros and −pj are the poles

slide-17
SLIDE 17

EE 3CL4, §2 20 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Visualizing poles and zeros

  • Consider the simple Laplace transform F(s) =

s(s+3) s2+2s+5.

  • zeros: 0, −3; poles: −1 + j2, −1 − j2
  • Pole-zero plot (left) and magnitude of F(s) (right)
slide-18
SLIDE 18

EE 3CL4, §2 21 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Visualizing poles and zeros

  • F(s) =

s(s+3) s2+2s+5; zeros: 0, −3; poles: −1 + j2, −1 − j2

  • |F(s)| from above (left) and prev. view of |F(s)| (right)
slide-19
SLIDE 19

EE 3CL4, §2 22 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Laplace transform pairs

  • Simple ones can be computed analytically;
  • ften available in tables; see Tab. 2.3 in 12th ed. of text
  • For more complicated ones, one can typically obtain

the inverse Laplace transform by

  • identifying poles
  • constructing partial fraction expansion
  • using of properties and some simple pairs to invert

each component of partial fraction expansion

slide-20
SLIDE 20

EE 3CL4, §2 23 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Some Laplace transform pairs

Recall that complex poles come in conjugate pairs.

slide-21
SLIDE 21

EE 3CL4, §2 24 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Key properties

Linearity df(t) dt ← → sF(s) − f(0−) t

−∞

f(x) dx ← → F(s) s + 1 s 0−

−∞

f(x) dx

slide-22
SLIDE 22

EE 3CL4, §2 25 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Final value theorem

Can we avoid having to do an inverse Laplace transform? Sometimes. Consider the case when we only want to find the final value

  • f f(t), namely limt→∞ f(t).
  • If F(s) has all its poles in the left half plane, except,

perhaps, for a single pole at the origin, then lim

t→∞ f(t) = lim s→0 sF(s)

Common application: Steady state value of step response What if there are poles in RHP , or on the jω-axis and not at the origin?

slide-23
SLIDE 23

EE 3CL4, §2 27 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Mass-spring-damper system

  • Horizontal (no gravity)
  • Set origin of y where spring is “relaxed”
  • F = M dv(t)

dt

  • v(t) = dy(t)

dt

  • F(t) = r(t) − b dy(t)

dt

− ky(t) M d2y(t) dt + bdy(t) dt + ky(t) = r(t)

slide-24
SLIDE 24

EE 3CL4, §2 28 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

MSD system

M d2y(t) dt + bdy(t) dt + ky(t) = r(t) Consider t ≥ 0 and take Laplace transform M

  • s2Y(s)−sy(0−)− dy(t)

dt

  • t=0−
  • +b
  • sY(s)−y(0−)
  • +kY(s) = R(s)

Hence Y(s) = 1/M s2 + (b/M)s + k/M R(s) + (s + b/M) s2 + (b/M)s + k/M y(0−) + 1 s2 + (b/M)s + k/M dy(t) dt

  • t=0−

Note that linearity yields superposition

slide-25
SLIDE 25

EE 3CL4, §2 29 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Response to static init. cond.

Spring stretched to a point y0, held, then let go at time t = 0 Hence, r(t) = 0 and dy(t)

dt

  • t=0− = 0

Hence, Y(s) = (s + b/M) s2 + (b/M)s + k/M y0 What can we learn about this response without having to invert Y(s)

slide-26
SLIDE 26

EE 3CL4, §2 30 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Standard form

Y(s) = (s + b/M) s2 + (b/M)s + k/M y0 = (s + 2ζωn) s2 + 2ζωns + ω2

n

y0 where ωn =

  • k/M and ζ =

b 2 √ kM

Poles: s1, s2 = −ζωn ± ωn

  • ζ2 − 1
  • ζ > 1 (equiv. b > 2

√ kM): distinct real roots, overdamped

  • ζ = 1 (equiv. b = 2

√ kM): equal real roots, critically damped

  • ζ < 1 (equiv. b < 2

√ kM): complex conj. roots, underdamped

slide-27
SLIDE 27

EE 3CL4, §2 31 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Overdamped case

  • s1, s2 = −ζωn ± ωn
  • ζ2 − 1
  • Overdamped response: ζ > 1 (equiv. b > 2

√ kM)

  • y(t) = c1es1t + c2es2t
  • y(0) = y0 =

⇒ c1 + c2 = y0

  • dy(t)

dt

  • t=0 = 0 =

⇒ s1c1 + s2c2 = 0

  • What does this look like when strongly overdamped
  • s2 is large and negative, s1 is small and negative
  • Hence es2t decays much faster than es1t
  • Also, c2 = −c1s1/s2. Hence, small
  • Hence y(t) ≈ c1es1t
  • Looks like a first order system!
slide-28
SLIDE 28

EE 3CL4, §2 32 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Critically damped case

  • s1 = s2 = −ωn
  • y(t) = c1e−ωnt + c2te−ωnt
  • y(0) = y0 =

⇒ c1 = y0

  • dy(t)

dt

  • t=0 = 0 =

⇒ −c1ωn + c2 = 0

slide-29
SLIDE 29

EE 3CL4, §2 33 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Underdamped case

  • s1, s2 = −ζωn ± jωn
  • 1 − ζ2
  • Therefore, |si| = ωn: poles lies on a circle
  • Angle to negative real axis is cos−1(ζ).
slide-30
SLIDE 30

EE 3CL4, §2 34 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Underdamped case

  • Define σ = ζωn, ωd = ωn
  • 1 − ζ2. Response is:

y(t) = c1e−σt cos(ωdt) + c2e−σt sin(ωdt) = Ae−σt cos(ωdt + φ)

  • Homework: Relate A and φ to c1 and c2.
  • Homework: Write the initial conditions y(0) = y0 and

dy(t) dt

  • t=0 = 0 in terms of c1 and c2, and in terms of A and φ
slide-31
SLIDE 31

EE 3CL4, §2 35 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Numerical examples

  • Y(s) =

(s+2ζωn) s2+2ζωns+ω2

n y0, where ωn =

  • k/M, ζ =

b 2 √ kM

  • Poles: s1, s2 = −ζωn ± ωn
  • ζ2 − 1
  • ζ > 1: overdamped; ζ < 1: underdamped
  • Consider the case of M = 1, k = 1. Hence, ωn = 1,
  • b = 3 → 0. Hence, ζ = 1.5 → 0
  • Initial conds: y0 = 1, dy(t)

dt

  • t=0 = 0
slide-32
SLIDE 32

EE 3CL4, §2 36 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and transient response, b = 3

slide-33
SLIDE 33

EE 3CL4, §2 37 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and transient response, b = 2.75

slide-34
SLIDE 34

EE 3CL4, §2 38 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and transient response, b = 2.5

slide-35
SLIDE 35

EE 3CL4, §2 39 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and transient response, b = 2.25

slide-36
SLIDE 36

EE 3CL4, §2 40 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and transient response, b = 2

slide-37
SLIDE 37

EE 3CL4, §2 41 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and transient response, b = 1.95

slide-38
SLIDE 38

EE 3CL4, §2 42 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and transient response, b = 1.75

slide-39
SLIDE 39

EE 3CL4, §2 43 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and transient response, b = 1.5

slide-40
SLIDE 40

EE 3CL4, §2 44 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and transient response, b = 1.25

slide-41
SLIDE 41

EE 3CL4, §2 45 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and transient response, b = 1

slide-42
SLIDE 42

EE 3CL4, §2 46 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and transient response, b = 0.75

slide-43
SLIDE 43

EE 3CL4, §2 47 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and transient response, b = 0.5

slide-44
SLIDE 44

EE 3CL4, §2 48 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and transient response, b = 0.25

slide-45
SLIDE 45

EE 3CL4, §2 49 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and transient response, b = 0

slide-46
SLIDE 46

EE 3CL4, §2 51 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Transfer function

Definition: Laplace transform of output over Laplace transform of input when initial conditions are zero

  • Most of the transfer functions in this course will be

ratios of polynomials in s.

  • Hence, poles and zeros of transfer functions have

natural definitions Example: Recall the mass-spring-damper system,

slide-47
SLIDE 47

EE 3CL4, §2 52 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Transfer function, MSD system

For the mass-spring-damper system, Y(s) = 1/M s2 + (b/M)s + k/M R(s) + (s + b/M) s2 + (b/M)s + k/M y(0−) + 1 s2 + (b/M)s + k/M dy(t) dt

  • t=0−

Therefore, transfer function is: 1/M s2 + (b/M)s + k/M = 1 Ms2 + bs + k

slide-48
SLIDE 48

EE 3CL4, §2 54 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Step response

  • Recall that u(t) ←

→ 1

s

  • Therefore, for transfer function G(s), the step response

is: L −1G(s) s

  • For the mass-spring-damper system, step response is

L −1 1 s(Ms2 + bs + k)

  • What is the final position for a step input?

Recall final value theorem. Final position is 1/k.

  • What about the complete step response?
slide-49
SLIDE 49

EE 3CL4, §2 55 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Step response

  • Step response: L −1

G(s) 1

s

  • Hence poles of Laplace transform of step response are

poles of G(s), plus an additional pole at s = 0.

  • For the mass-spring-damper system, using partial

fractions, step response is: L −1 1 s(Ms2 + bs + k)

  • = L −11/k

s

  • − 1

k L −1 Ms + b Ms2 + bs + k

  • = 1

k u(t) − 1 k L −1 Ms + b Ms2 + bs + k

  • Consider again the case of M = k = 1, b = 3 → 0.

ωn = 1, ζ = 1.5 → 0.

slide-50
SLIDE 50

EE 3CL4, §2 56 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and step response, b = 3

slide-51
SLIDE 51

EE 3CL4, §2 57 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and step resp., b = 2.75

slide-52
SLIDE 52

EE 3CL4, §2 58 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and step resp., b = 2.5

slide-53
SLIDE 53

EE 3CL4, §2 59 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and step resp., b = 2.25

slide-54
SLIDE 54

EE 3CL4, §2 60 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and step resp., b = 2

slide-55
SLIDE 55

EE 3CL4, §2 61 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and step resp., b = 1.95

slide-56
SLIDE 56

EE 3CL4, §2 62 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and step resp., b = 1.75

slide-57
SLIDE 57

EE 3CL4, §2 63 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and step resp., b = 1.5

slide-58
SLIDE 58

EE 3CL4, §2 64 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and step resp., b = 1.25

slide-59
SLIDE 59

EE 3CL4, §2 65 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and step resp., b = 1

slide-60
SLIDE 60

EE 3CL4, §2 66 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and step resp., b = 0.75

slide-61
SLIDE 61

EE 3CL4, §2 67 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and step resp., b = 0.5

slide-62
SLIDE 62

EE 3CL4, §2 68 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and step resp., b = 0.25

slide-63
SLIDE 63

EE 3CL4, §2 69 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Poles and step resp., b = 0

slide-64
SLIDE 64

EE 3CL4, §2 71 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

A DC motor

  • We will consider linearized model for each component
  • Flux in the air gap: φ(t) = Kfif(t) (Magnetic cct, 2CJ4)
  • Torque: Tm(t) = K1φ(t)ia(t) = K1Kfif(t)ia(t).
  • Is that linear?
  • Only if one of if(t) or ia(t) is constant
  • We will consider “armature control”: if(t) constant
slide-65
SLIDE 65

EE 3CL4, §2 72 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Armature controlled DC motor

  • if(t) will be constant (to set up magnetic field), if(t) = If
  • Torque: Tm(t) = K1KfIfia(t) = Kmia(t)
  • Will control motor using armature voltage Va(t)
  • What is the transfer function from Va(s) to angular

position θ(s)?

  • Origin?
slide-66
SLIDE 66

EE 3CL4, §2 73 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Towards transfer function

  • Tm(t) = Kmia(t) ←

→ Tm(s) = KmIa(s)

  • KVL: Va(s) = (Ra + sLa)Ia(s) + Vb(s)
  • Vb(s) is back-emf voltage, due to Faraday’s Law
  • Vb(s) = Kbω(s), where ω(s) = sθ(s) is rot. velocity
  • Remember: transfer function implies zero init. conds
slide-67
SLIDE 67

EE 3CL4, §2 74 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Towards transfer function

  • Torque on load: TL(s) = Tm(s) − Td(s)
  • Td(s): disturbance. Often small, unknown
  • Load torque and load angle (Newton plus friction):

TL(s) = Js2θ(s) + bsθ(s)

  • Now put it all together
slide-68
SLIDE 68

EE 3CL4, §2 75 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Towards transfer function

  • Tm(s) = KmIa(s) = Km
  • Va(s)−Vb(s)

Ra+sLa

  • Vb(s) = Kbω(s)
  • TL(s) = Tm(s) − Td(s)
  • TL(s) = Js2θ(s) + bsθ(s) = Jsω(s) + bω(s)
  • Hence ω(s) = TL(s)

Js+b

  • θ(s) = ω(s)/s
slide-69
SLIDE 69

EE 3CL4, §2 76 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Block diagram

  • Tm(s) = KmIa(s) = Km
  • Va(s)−Vb(s)

Ra+sLa

  • Vb(s) = Kbω(s)
  • TL(s) = Tm(s) − Td(s)
  • TL(s) = Js2θ(s) + bsθ(s) = Jsω(s) + bω(s)
  • Hence ω(s) = TL(s)

Js+b

  • θ(s) = ω(s)/s
slide-70
SLIDE 70

EE 3CL4, §2 77 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Transfer function

  • Set Td(s) = 0 and solve (you MUST do this yourself)

G(s) = θ(s) Va(s) = Km s

  • (Ra + sLa)(Js + b) + KbKm
  • =

Km s(s2 + 2ζωns + ω2

n)

  • Third order :(
slide-71
SLIDE 71

EE 3CL4, §2 78 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Second-order approximation

G(s) = θ(s) Va(s) = Km s

  • (Ra + sLa)(Js + b) + KbKm
  • Sometimes armature time constant, τa = La/Ra, is

negligible

  • Hence (you MUST derive this yourself)

G(s) ≈ Km s

  • Ra(Js + b) + KbKm

= Km/(Rab + KbKm) s(τ1s + 1) where τ1 = RaJ/(Rab + KbKm)

slide-72
SLIDE 72

EE 3CL4, §2 79 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Model for a disk drive read system

  • Uses a permanent magnet DC motor
  • Can be modelled using arm. contr. model with Kb = 0
  • Hence, motor transfer function:

G(s) = θ(s) Va(s) = Km s(Ra + sLa)(Js + b)

  • Assume for now that the arm is stiff
slide-73
SLIDE 73

EE 3CL4, §2 80 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Typical values

G(s) = θ(s) Va(s) = Km s(Ra + sLa)(Js + b) G(s) = 5000 s(s + 20)(s + 1000)

slide-74
SLIDE 74

EE 3CL4, §2 81 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Time constants

  • Initial model

G(s) = 5000 s(s + 20)(s + 1000)

  • Motor time constant = 1/20 = 50ms
  • Armature time constant = 1/1000 = 1ms
  • Hence

G(s) ≈ ˆ G(s) = 5 s(s + 20)

slide-75
SLIDE 75

EE 3CL4, §2 83 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

A simple feedback controller

Now that we have a model, how to control? Simple idea: Apply voltage to motor that is proportional to error between where we are and where we want to be. Here, V(s) = Va(s) and Y(s) = θ(s).

slide-76
SLIDE 76

EE 3CL4, §2 84 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Simplified block diagram

  • What is the transfer function from command to

position? Derive this yourself Y(s) R(s) = KaG(s) 1 + KaG(s)

  • Using second-order approx. G(s) ≈ ˆ

G(s) =

5 s(s+20),

Y(s) ≈ 5Ka s2 + 20s + 5Ka R(s)

  • For 0 < Ka < 20: overdamped;

for Ka > 20: underdamped

slide-77
SLIDE 77

EE 3CL4, §2 85 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Response to r(t) = 0.1u(t); Ka = 10

Poles in s-plane Response

  • Slow. Slower than IBMs first drive from late 1950’s.

Disks in the 1970’s had 25ms seek times; now < 10ms Perhaps increase Ka? That would result in a “bigger” input to the motor for a given error

slide-78
SLIDE 78

EE 3CL4, §2 86 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Response to r(t) = 0.1u(t); Ka = 10, 15

Poles in s-plane Response Changing Ka changes the position of the closed-loop poles Hence, step response changes

slide-79
SLIDE 79

EE 3CL4, §2 87 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Response to r(t) = 0.1u(t); Ka = 10, 15, 20

Poles in s-plane Response Changing Ka changes the position of the closed-loop poles Hence, step response changes (now critically damped)

slide-80
SLIDE 80

EE 3CL4, §2 88 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Response to r(t) = 0.1u(t); Ka = 10, 15, 20, 40

Poles in s-plane Response Changing Ka changes the position of the closed-loop poles Hence, step response changes (now underdamped)

slide-81
SLIDE 81

EE 3CL4, §2 89 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Response to r(t) = 0.1u(t); Ka = 10, 15, 20, 40, 60

Poles in s-plane Response Changing Ka changes the position of the closed-loop poles Hence, step response changes (now more underdamped)

slide-82
SLIDE 82

EE 3CL4, §2 90 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Response to r(t) = 0.1u(t); Ka = 10, 15, 20, 40, 60, 80

Poles in s-plane Response What is happening to the settling time of the underdamped cases? Only just beats IBM’s first drive What else could we do with the controller? Prediction?

slide-83
SLIDE 83

EE 3CL4, §2 92 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Bock diagram models

  • As we have just seen, a convenient way to represent a

transfer function is via a block diagram

  • In this case, U(s) = Gc(s)R(s) and Y(s) = G(s)U(s)
  • Hence, Y(s) = G(s)Gc(s)R(s)
  • Consistent with the engineering procedure of breaking

things up into little bits, studying the little bits, and then put them together

slide-84
SLIDE 84

EE 3CL4, §2 93 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Simple example

  • Y1(s) = G11(s)R1(s) + G12(s)R2(s)
  • Y2(s) = G21(s)R1(s) + G22(s)R2(s)
slide-85
SLIDE 85

EE 3CL4, §2 94 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Example: Loop transfer function

  • Ea(s) = R(s) − B(s) = R(s) − H(s)Y(s)
  • Y(s) = G(s)U(s) = G(s)Ga(s)Z(s)
  • Y(s) = G(s)Ga(s)Gc(s)Ea(s)
  • Y(s) = G(s)Ga(s)Gc(s)
  • R(s) − H(s)Y(s)
  • Y(s)

R(s) = G(s)Ga(s)Gc(s) 1 + G(s)Ga(s)Gc(s)H(s)

  • Each transfer function is a ratio of polynomials in s
  • What is Ea(s)/R(s)?
slide-86
SLIDE 86

EE 3CL4, §2 95 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Block diagram transformations

slide-87
SLIDE 87

EE 3CL4, §2 96 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Using block diagram transformations

slide-88
SLIDE 88

EE 3CL4, §2 97 / 97 Tim Davidson Modelling physical systems

  • Trans. Newton.

Mech.

  • Rot. Newton. Mech.

Linearization Laplace transforms Laplace in action Transfer function Step response Transfer fn of DC motor Our first model-based control system design Block diagram models

Block dia. transform.

Using block diagram transformations