32
Basic controls tutorial ISC Meeting Hannover, 28.03.12 Michèle Heurs

Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

  • Upload
    others

  • View
    15

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Basic controls tutorial

ISC Meeting Hannover, 28.03.12 Michèle Heurs

Page 2: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

The goals of this tutorial are...

• ... to introduce some basic controls nomenclature – block diagrams – feedback vs. feed-forward control – open loop vs. closed loop – different types of plots – stability

• ... to provide a hands-on controls approach

– transfer functions: definition and examples – characterisation tools: specifications, noise spectra,

transfer functions, stability evaluation – practical skill set: prototyping, experimental testing,

iteration,...

Page 3: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Examples of control in physics

• Astronomy: Tracking telescopes, adaptive optics, satellite ranging, ...

• Quantum Optics: diode laser temperature control, length control of optical resonators, MOTs, ...

• Gravitational Wave Detection: optics auto-alignment, interferometer control, recycling techniques,...

• ...

Page 4: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Example in GWD: optical resonator

• Laser frequency stabilisation (for metrology) – Lock laser to cavity OR lock cavity to laser

(depending on what is more stable!) – Consider cavity locking (e.g. for GWD)

→ have to keep cavity length „matching“ to laser output frequency What is needed?

• actuator (e.g. PZT) • sensor (e.g. photodetector) • feedback (controller)

Page 5: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

„physics“ example: optical resonator

laser laser

controller PD

PBS λ/4 ∆L νc νl

∆ν = νl − νc

must be small!

PZT sensor

actuator

laser EOM

or

possibilities to imprint phase modulation sidebands on laser light

Page 6: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

∆L

L

PD

Signal of PD in transmission

Error signal (with sign!)

L

Page 7: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Feedback vs. feed-forward (on the example of laser intensity stabilisation)

Often: feedback

laser laser

G PD

e.g. laser intensity stabilisation, laser frequency stabilisation,...

Sometimes: feed-forward!

laser laser

G PD

mod

here: laser intensity stabilisation, too. But also e.g. seismic vibration cancellation,...

Effect of feedback is measured with detector in the loop

Effect of feed-forward is NOT measured with detector in the loop

Page 8: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

In loop vs. out of loop (again, on the example of laser intensity stabilisation)

feedback

laser laser

G

to exp.

feed-forward

laser laser

G

mod

out-of-loop PD

in loop PD in loop

PD

out-of-loop PD

The in-loop result only tells you if your controller is working to specs. Only the out-of-loop result tells you if you‘ve been successful in suppressing the noise in the light going to the experiment! They can be (and often are) vastly different (with OOL suppression being a lot less than IL).

Page 9: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Some assumptions we will make

• frequency domain design methods only • assume linearity (i.e. small signals only), but

be aware of the dominant nonlinearities like range limits, saturation etc.

Page 10: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

System of interest: the plant (the thing we want to stabilise)

Ideal world: plant output = constant but: external disturbances & intrinsic noise → fluctuations

• measure output with sensor • error signal = reference level – plant output

→ goes into controller (compensator) • controller output drives actuator • Change reference signal → modify output: control input

• Goals: disturbance suppression and output control

Page 11: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Block diagram

actuator A(s)

+

(controlled) plant

output „plant“

P(s) sensor

B(s)

controller G(s)

+

reference

error signal

disturbance

-

each block is described by a DE for a(t) use Laplace transform A(s) with s= σ + iω s: Laplace variable, σ: damping, ω=2πf : angular frequency, f: Fourier frequency

damping oscillatory behaviour

Page 12: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Laplace transform

• Definition of Laplace transform: there and back again

• Example:

Page 13: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Laplace transform

• Go to the (complex) frequency domain and use Laplace transforms → operations become simple multiplications

A(s) Xin Xout

A(s) B(s)

A(s)

B(s)

Xin

Xin

Xout

Xout +

A(s)

B(s)

Xin Xout + C(s)

???

Page 14: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Block diagram with inputs, outputs and noise

actuator H * A

+

sensor output

Es plant P

sensor B

controller G(s)

+

disturbance Xd

-

+

sensor noise Ns

controlled output

Xcl

correction signal Xc

controller output EG +

reference voltage

Er

electronics noise of controller

NG

X

reference noise / error

Nr

Page 15: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

The maths to the above block diagram Eliminate Es and EG: insert in I

in II

in III

with HAPGB = L :

open-loop transfer function:

closed –loop transfer function:

(disregarding sensor noise Ns)

For (high gain limit):

Page 16: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

...and that means

• Closing the feedback control loop causes Xcl to track the reference scaled by the sensor gain (Er/B) to accuracy Xfr/|L|+ noise in the system, and it and suppresses the free-running plant output to Xfr/|L|. This is very useful if large open loop gain L and low noise can be achieved.

• High performance = high open loop gain

Page 17: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Simplified feedback control system (FCS) block diagram

• Disregard all noise contributions • Assume high gain limit |L|>>1

What we‘ll do now: • calculation of open loop TF and closed loop TF • calculation of

• „disturbance transfer function“ • „disturbance suppression function“

Page 18: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

open loop transfer function

H G

plant output y controller

output u plant input w

Open loop transfer function

Page 19: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

H

G

+ plant output y

disturbance w controller output u

closed loop transfer function

Closed loop transfer function

- +

Page 20: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

H

G

+ plant output y

disturbance w controller output u -

+

disturbance transfer function: disturbance suppression function:

Two different kinds of CL TFs!

Page 21: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=
Page 22: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Displaying transfer functions

Multiple options: Bode plot, Nyquist plot, Pole-zero-plot, ...

We‘ll focus on Bode plots here, to display the

frequency response of linear time-invariant systems

A Bode plot (usually) consists of two graphs:

Page 23: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Bode plot

• Bode magnitude plot = frequency response gain (in dB)

• Bode phase plot= frequency response phase shift (in deg)

The two are connected by dispersion relations! (Kramers-Kronig)

Page 24: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Bode plot of a lowpass

Magnitude (in dB):

Unity gain:

Phase (in deg):

asymptotes

(more like) „actual“ behaviour

unity gain frequency

1/f

Page 25: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Stability

• Definition: A system is stable if it settles following a disturbance.

• For intuitive understanding: look at behaviour of feedback signal at – frequencies well below UG – frequencies around UG – frequencies far above UG

Page 26: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Stability • Instability leads to oscillation, possibly saturation! • Dynamics of systems can be described by DEs:

General behaviour of x(t): solve DE with f(t)=0

• System is stable if x(t) is bounded for t → ∞

•x(t) : parameter of interest •ai : coefficients (constant) •f(t) : driving force (inhom. DE)

ri : roots of characteristic equation associated with DE

Pn(r): characteristic polynomial of DE

Page 27: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Poles and zeros (briefly)

Pole • low-pass filter behaviour • for real poles: cut-off freq.

of system is position of pole • for complex poles: cut-off

freq. of system is length of vector (absolute value)

• roll-off: 20dB/decade per pole

• poles cause phase lag (-45° @ position of pole, -90° @ frequencies far above)

Zero • high-pass filter behaviour • for real zeros: cut-off freq.

of system is position of zero • for complex zeros: cut-off

freq. of system is again length of vector (absolute value)

• roll-up: 20dB/decade per zero

• zeros cause phase lead (+45° @ position of zero, +90° @ frequencies far above)

Page 28: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Stability and transfer functions

• TFs are usually fractions of polynomials – zeros of numerator = zeros of TF – zeros of denominator: poles of TF

# of poles must be larger than # of zeros! (i.e. TF → 0 for iω large)

Page 29: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

|required noise reduction| ~ gain in loop (including the plant!)

unity gain frequency ωUG : phase at UG:

(otherwise system oscillates – positive feedback) Phase margin: “stay away from -180°“

Loop gain and stability

Page 30: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Phase and gain margin

Page 31: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

Stabilisation: How do we do it?

• What is the stabilisation task? – What system? – Which sensors and actuators? – Free-running noise? => measure noise spectrum – Specifications to be achieved? => plot in noise

spectrum – TF of plant? => measure (OL if possible) => the „difference“ (in dB) is what we need to

provide by our controller!

Page 32: Basic controls tutorial - University of Glasgow...A Bode plot (usually) consists of two graphs: Bode plot • Bode magnitude plot = frequency response gain (in dB) • Bode phase plot=

obse

rvab

le (a

.u.)

frequency (a.u.)

free running noise

max. allowed noise