TU Berlin Discrete-Time Control Systems 1 Introduction to Discrete-Time Control Systems Overview • Computer-Controlled Systems • Sampling and Reconstruction • A Naive Approach to Computer-Controlled Systems • Deadbeat Control • Is there a need for a theory for computer-controlled systems? 17th April 2014
28
Embed
Introduction to Discrete-Time Control Systems - TU Berlin · TU Berlin Discrete-Time Control Systems 1 Introduction to Discrete-Time Control Systems Overview Computer-Controlled Systems
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
TU Berlin Discrete-Time Control Systems 1
Introduction to Discrete-Time Control Systems
Overview
• Computer-Controlled Systems
• Sampling and Reconstruction
• A Naive Approach to Computer-Controlled Systems
• Deadbeat Control
• Is there a need for a theory for computer-controlled systems?
17th April 2014
TU Berlin Discrete-Time Control Systems 2
Computer-Controlled Systems
• Implementation of controllers, designed in continuous-time, on a micro-controller or PC (digital
realisation of an ‘analogue’ controller)
ADC Computer Plant
Clock
DAC &
ZOH
Controller
r(t) e(t) u(t) y(t)e[k] u[k]
ADC - Analog-Digital-Converter (includes sampler), DAC - Digital Analogue Converter,
ZOH - Zero Order Hold
17th April 2014
TU Berlin Discrete-Time Control Systems 3
• Direct design of a digital controller for a discretised plant
– or for identified time-discrete models
– or for inherently sampled systems (e.g. control of neuro-prosthetic systems)
– enables larger sampling times compared to the digital realisation of ‘analogue’ controllers
– enables other features that are not possible in continuous time control (e.g. deadbeat control,
repetitive control)
Clock
Computer Plant ADCDAC &
ZOH
u(t)
Dicretised Plant
y(t)u[k]r[k] e[k] y[k]
17th April 2014
TU Berlin Discrete-Time Control Systems 4
• Components
– A-D converter (ADC) and D-A converter (DAC)
– Algorithm
– Clock
– Plant
• Contains both continuous and sampled, or discrete-time signals
→ sampled-data systems (synonym to computer-controlled system)
• Mixture of signals makes description and analysis sometimes difficult.
• However, in most cases, it is sufficient to describe the behaviour at sampling instants.
→ discrete-time systems
17th April 2014
TU Berlin Discrete-Time Control Systems 5
• ADC samples a continuous function f(t) at a fixed sampling period ∆
sequence {f [k]} of numbers
• {f [k]} denotes a sequence f [0], f [1], f [2], . . .
f [k] = f(k∆), k = 0, 1, 2, . . .
• Sampling times / sampling instants k∆ or short only k if sampling period is constant.
• Quantisation effects by the ADC (due to limited resolution) are not taken into account at the
moment.
• DAC and Zero-Order-Hold approximately reconstructs a continuous from a sequence of
numbers.
17th April 2014
TU Berlin Discrete-Time Control Systems 6
Sampling
• Sampling frequency needs to be large enough in comparison with the maximum rate of change
of f(t).
• Otherwise, high frequency components will be mistakenly interpreted as low frequencies in the
sampled sequence.
Example:
f(t) = 3 cos 2πt+ cos
(20πt+
π
3
)for ∆ = 0.1 s we obtain
f [k] = 3 cos(0.2πk) + cos
(2πk +
π
3
)f [k] = 3 cos(0.2πk) + 0.5
The high frequency component appears as a signal of low frequency (here zero). This phenomenon
is known as aliasing.
17th April 2014
TU Berlin Discrete-Time Control Systems 7
17th April 2014
TU Berlin Discrete-Time Control Systems 8
SHANNON’S SAMPLING THEOREM
A continuous-time signal with a spectrum that is zero outside the interval
(−ω0, ω0) is given uniquely by its values in equidistant points if the sampling
angular frequency ωs = 2πfs in rad/s is higher than 2ω0.
The continuous-time signal can be reconstructed from the sampled signal by the
interpolation formula
f(t) =
∞∑k=−∞
f [k]sin(ωs(t− k∆)/2)
ωs(t− k∆)/2
• The frequency ωN = ωs/2 plays an important role. This frequency is called the Nyquist
frequency.
• A typical rule of thumb is to require that the sampling rate is 5 to 10 times the bandwidth of the
system.
• The Shannon reconstruction given above is not useful in control applications as the operation is
non-causal requiring past and future values.
17th April 2014
TU Berlin Discrete-Time Control Systems 9
17th April 2014
TU Berlin Discrete-Time Control Systems 10
Sprectra of continuous-time band-limited signal and sampled signal for ωs > 2ω0 (ωN > ω0).
ω
ωωs
ωsωs/2ω0
ωs/2
Spectrum of the continuous-time signal
Spectrum of the sampled signal
−ωs −ωs/2 −ω0 0
−ωs/2−ωs −ω0 0 ω0
for signal reconstruction
Ideal low-pass filter
• Original signal could be reconstructed by ideal low-pass filter.
• Zero order hold is a not so good approximation of an ideal low-pass filter, but simple to
implement and therefore often used (risk that higher frequencies created by sampling remain in
the control system).
17th April 2014
TU Berlin Discrete-Time Control Systems 11
Sprectra of continuous-time band-limited signal and sampled signal for ωs < 2ω0 (ωN < ω0).
ω
ωωs
ωsωs/2
ωs/2
Spectrum of the continuous-time signal
Spectrum of the sampled signal
−ωs −ωs/2 0
−ωs/2−ωs 0−ω0 ω0
−ω0 ω0
for signal reconstruction
Ideal low-pass filter
• Original signal cannot be reconstructed filter due to aliasing.
• A signal with frequency ωd > ωN appears as signal with the lower frequency (ωN − ωd) in the
sampled signal.
17th April 2014
TU Berlin Discrete-Time Control Systems 12
Preventing Aliasing
• The sampling rate should be chosen high enough.
• All signal components with frequencies higher than the Nyquist frequency must be removed
before sampling. Anti-aliasing filters
ω20
s2 + 2ω0ζs+ ω2
ω20
s2 + 2ω0ζs+ ω2
Anti-aliasing
analog filter
Anti-aliasing
digital filter
A/D converter
(acquisition frequency) (∆ = n ·∆a)
Down-sampling
y[k]y(t)
∆a∆
17th April 2014
TU Berlin Discrete-Time Control Systems 13
Time dependence
• The presence of a clock makes computer-controlled systems time-varying.
ADCComputeralgorithm
DAC &ZOH
Clock
Continuous-timesystem
y[k] ys(t)
y(t)
u(t)
17th April 2014
TU Berlin Discrete-Time Control Systems 14
17th April 2014
TU Berlin Discrete-Time Control Systems 15
A Naive Approach to Computer-Controlled Systems
• The computer controlled system behaves as a continuous-time system if the sampling period is
sufficiently small!
Example: Controlling the arm of a disk drive
ArmAmplifierControlleryu
uc
17th April 2014
TU Berlin Discrete-Time Control Systems 16
• Relation between arm position y and drive amplifier voltage u: