You are on page 1of 67

DIGITAL CONTROL SYSTEMS

CHAPTER ONE
Linear discrete dynamic system analysis

11/4/2022 Prepared by Alem G. 1


OUTLINE
Linear discrete dynamic system analysis
Review of analog control and analog signals
 Introduction to digital control (Digitization)
Sample and hold, discrete equivalents to
continuous transfer function
Effect of quantization in digital data
Review of Z-transform and discrete data
system
11/4/2022 Prepared by Alem G. 2
Review of analog control and analog signals
What is a control system

11/4/2022 Prepared by Alem G. 3


Cont...
Objective:
To make the system OUTPUT and the desired
REFERENCE as close as possible, i.e., to make
the ERROR as small as possible.
Key points:
1) How to describe the system to be controlled?
(Modeling)
2) How to design the controller? (Control)

11/4/2022 Prepared by Alem G. 4


Cont...
In your introduction to Control Systems, you
know how to make an analog controller D(s)
to control a linear-time-invariant (LTI) plant
G(s).
We used feedback control system to:
Reduce error due to disturbance
Reduce error due to model mismatch
Stabilize an unstable plant
Improve transient response.

11/4/2022 Prepared by Alem G. 5


Cont...
Modeling of dynamic systems
Model: A representation of a system
Types of model
1) Physical model (prototype)
2) Mathematical model
Example :- input output relationship

11/4/2022 Prepared by Alem G. 6


Cont...
Signal categories for identifying control system
1. Continuous time signal and quantized signal
Continuous time signal is defined continuously
in the time domain. Figure below shows a
continuous time signal represented by x(t). The
real world consists of analog signals.
Quantized signal is a signal whose amplitudes
are discrete and limited. Figure below shows a
quantized signal.

11/4/2022 Prepared by Alem G. 7


Cont...
Figure 1.1 Continuous and quantized signal

11/4/2022 Prepared by Alem G. 8


Cont...
2. Discrete time signal and sampled data signal
Discrete time signal is defined only at a certain
time instants. The amplitude between two
consecutive time instants is just not defined.
Figure below shows discrete time signal.
Sampled data signal is a discrete time signal
resulting by sampling a continuous time signal
by a sampling process.

11/4/2022 Prepared by Alem G. 9


Cont...
Figure 1.2 discrete time signal and sampled
data signal

11/4/2022 Prepared by Alem G. 10


Cont...
3 . Digital signal
Digital signal is a sequence of binary numbers. In
or out from a microprocessor, a semiconductor
memory or a shift register.
In practice a digital signal is derived as shown in
the figure below is derived by two process.
Sampling and then quantized.

11/4/2022 Prepared by Alem G. 11


Cont...
Figure 1.3 digital signal

11/4/2022 Prepared by Alem G. 12


Exercise on Analog Controler
Consider the feedback control system shown
below

11/4/2022 Prepared by Alem G. 13


Cont...
The controller transfer function is given by

Implement the analog controller


N.B: Do all the necessary derivations
(realization)
11/4/2022 Prepared by Alem G. 14
Digital control system
Digital controls are used for achieving optimal
performance for example in the form of
maximum productivity, maximum profit,
minimum cost or minimum energy use.

11/4/2022 Prepared by Alem G. 15


Cont...
Fig 1.4 digital control system for the given
digital input

11/4/2022 Prepared by Alem G. 16


Cont...
 Fig 1.5 digital control system for the given
continuous input

11/4/2022 Prepared by Alem G. 17


Cont...
Figure 1.6 below shows the topology of the
typical continuous system

11/4/2022 Prepared by Alem G. 18


Cont..
Digital implementation of the continuous
system shown in figure 1.6 is given by

11/4/2022 Prepared by Alem G. 19


Cont...
The fundamental difference between the two
implementations are:
The digital system operates on samples of the
sensed plant output rather than on the continuous
signal.
The controller D(s) in the digital implementation is
represented by algebraic recursive equations called
difference equations

11/4/2022 Prepared by Alem G. 20


Cont...
 Simplified version of a digital control systems
when we have discrete input signal to the
controller is as shown below.

11/4/2022 Prepared by Alem G. 21


Cont...
A/D converter converts analog signal most
commonly an electrical voltage into a binary
number that usually consists of 10 or 12 bits.
The conversion from the analog signal occurs
repetitively at instant of time that are T
seconds apart.
T is called sample period and 1/T is sample
rate in cycle per second or Hz.

11/4/2022 Prepared by Alem G. 22


Cont...
The digital signal is converted to a continuous
signal by the D/A and hold.
The D/A converts the binary number to an
analog voltage and a zero order hold (ZOH)
maintains that the same voltage throughout
the sample period.
The discrete signal is converted to a
quantized signal by ZOH only.
 The continuous signal is converted into a
discrete signal by using sampler.

11/4/2022 Prepared by Alem G. 23


Cont...
Why digital control?
Control systems in continuous-time setting in
the past are usually implemented using
analogue devices such resistors, capacitors,
inductors and operational amplifiers together
with some necessary mechanical components.
These devices are neither economical nor
durable.

11/4/2022 Prepared by Alem G. 24


Cont...
 The advances in computer technologies make the
implementation of control systems in discrete-
time setting (i.e., digital controllers) much more
efficiently and economically possible.
 Most of control systems nowadays are
implemented using either computers such as PCs
or Digital Signal Processes (DSP), which are
specially designed to carry out computations
related to control algorithm realizations.

11/4/2022 Prepared by Alem G. 25


Cont...
Advantages
The advantages of digital controllers using PC
or DSP are obvious — it is fast, reliable,
reusable and can be modified through simple
recoding whenever needed.

11/4/2022 Prepared by Alem G. 26


Cont...
Disadvantages
Sampling and quantization process will
degrade system performance
Software errors
Need power supply

11/4/2022 Prepared by Alem G. 27


Cont...
To make a digital computer approximation the
continuous transfer function D(s) must be
converted into difference equation using
Euler’s method.
Forward Difference
The Taylor series is given by

Where

11/4/2022 Prepared by Alem G. 28


Cont...
Figure of forward difference

11/4/2022 Prepared by Alem G. 29


Cont....
If we truncate the Taylor series after the 1st
derivative:

Hence the forward difference is given by

Where h = T = Sample period

11/4/2022 Prepared by Alem G. 30


Cont...
Backward difference
 It is possible to write the Taylor series as
follows

Where

11/4/2022 Prepared by Alem G. 31


Cont...
Figure of backward difference

11/4/2022 Prepared by Alem G. 32


cont...
If we truncate the Taylor series after the 1st
derivative:

Hence the backward difference is given by

11/4/2022 Prepared by Alem G. 33


Cont...
Central difference
by subtracting backward difference from
forward difference that is given by

11/4/2022 Prepared by Alem G. 34


Cont..
Subtracted result will be

Hence by neglecting higher derivative the


central difference is given by

11/4/2022 Prepared by Alem G. 35


Cont...
Example
Find the difference equation using forward
difference

Solution

11/4/2022 Prepared by Alem G. 36


Con...
Exercise
let

Use “forward rectangular rule” to digitize the


above transfer function and Choose to try a
sample rate of 20 Hz and also try 40 Hz.

11/4/2022 Prepared by Alem G. 37


Cont...
Exercise
Proof that the 2nd Order Forward Difference is
given by

Proof that the 2nd Order backward Difference


is given by

11/4/2022 Prepared by Alem G. 38


Cont...
Proof that the 2nd Order central Difference is
given by

11/4/2022 Prepared by Alem G. 39


Effect of quantization in digital data

11/4/2022 Prepared by Alem G. 40


11/4/2022 Prepared by Alem G. 41
11/4/2022 Prepared by Alem G. 42
Z-TRANSFORM
we saw that the Laplace transform is a very
powerful tool for analysis and design of
analog control systems.
But Z-transform is a very powerful tool for
analysis and design discrete-time (digital)
control systems.

11/4/2022 Prepared by Alem G. 43


Cont...
DEFINITION: if X(z) is the z-transformer of x(k)
and is given by

11/4/2022 Prepared by Alem G. 44


Cont...
Example
Define the digital impulse (unit pulse) function
to be

Hence the Z-transform is given by

11/4/2022 Prepared by Alem G. 45


Cont...
Let x[k] be the discrete unit-step function.

11/4/2022 Prepared by Alem G. 46


Cont...
Consider now the identity

Hence

Let find X(Z)

11/4/2022 Prepared by Alem G. 47


Cont...
Hence

11/4/2022 Prepared by Alem G. 48


Properties of the z-transform
Linearity
If x[k] ↔ X (z) and v[k] ↔ V (z),

Real translation
Suppose x[k] ↔ X (z), and q is a positive integer

11/4/2022 Prepared by Alem G. 49


Cont...
Complex translation
Given that the z-transform of e(k) is E(z) then

Initial value: given the z-transform of e(k) is E(z).


Then
Final value: given the z-transform of e(k) is E(z).
Then

11/4/2022 Prepared by Alem G. 50


Cont....
Generally z-transform properties are listed
below:

11/4/2022 Prepared by Alem G. 51


Cont...

11/4/2022 Prepared by Alem G. 52


Solution of difference equation
 There are different techniques for solving
linear time invariant difference equations.
Some of them are:
sequential method
Inverse z-transform method

11/4/2022 Prepared by Alem G. 53


Cont....
Example using sequential method
1. Find m(k) for the equation

Where and both e(-1) and


m(-1) are zero.
solution

11/4/2022 Prepared by Alem G. 54


Cont....
Using inverse z-transform method
 Assume the difference equation is given by

The z-transform using the real translation


property is given by

11/4/2022 Prepared by Alem G. 55


Cont....
Solving the expression above for M(z) yields

Hence m(k) can be find by taking the inverse


z-transform of M(z).

11/4/2022 Prepared by Alem G. 56


Cont...
Example
Find m(k) using inverse z-transform for the
equation

Where
solution
The z-transform of this equation via real
translation property is given by

11/4/2022 Prepared by Alem G. 57


Cont...
and E(z) is given by

Hence

If we expand M(z) by into a power series by


dividing the numerator of M(z) by its
denominator so as to obtain

11/4/2022 Prepared by Alem G. 58


The Inverse z-transform
We have different methods to find the inverse z-
transform.
1. Power series method:
This method is for finding the inverse z-
transform of a function by dividing the
numerator into the denominator.
Example
It is desired to find e(k)for E(z) given by the
expression

11/4/2022 Prepared by Alem G. 59


Cont...
Solution

From the above division


e(0)= 0, e(1) = 1, e(2)=3, e(3)=7, e(4)=15, ...
Hence

11/4/2022 Prepared by Alem G. 60


Cont...
2. Partial fraction expansion method
The function can be expanded in partial
functions and then tables of known z-transform
pairs can be used to determine the inverse z-
transform.
The order of num(s) < order of den(s).
Example: using partial fraction expansion
determine the inverse z-transform of the
function

11/4/2022 Prepared by Alem G. 61


Cont...
Solution

Exercise: find the inverse z-transform

11/4/2022 Prepared by Alem G. 62


Cont....
Z-transforms

11/4/2022 Prepared by Alem G. 63


Cont...
3. Using the theorem of residue

If the function 𝐸(𝑧)𝑧 𝑘−1 has a simple pole at


z = a, the residue is evaluated as

For a pole of order m at z = a, the residue is


calculated as using the expression

11/4/2022 Prepared by Alem G. 64


Cont...
Example
Determine the inverse z-transform of the
function E(z) using residue theorem

Solution

Exercise: find the inverse z-transform using


residue theorem
11/4/2022 Prepared by Alem G. 65
Cont...

11/4/2022 Prepared by Alem G. 66


11/4/2022 Prepared by Alem G. 67

You might also like