0% found this document useful (0 votes)
16 views10 pages

BSC EEE BEE 4102 Control Systems II Lecture 5 Digital Controllers 2024

Uploaded by

lemi.tereka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views10 pages

BSC EEE BEE 4102 Control Systems II Lecture 5 Digital Controllers 2024

Uploaded by

lemi.tereka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

BEE 4102 Control Systems II

4 Digital Controllers – Analogue Controller Emulation


4.1 Some background in digital control
We can implement our analogue controllers with op-amp circuits (Chapter 2 )
Modern controllers are implemented using digital computers (e.g., microcontrollers) are
used to implement our control algorithms.

There are two main approaches to digital controller design:


1. Emulation of an analog controller.
2. Direct digital controller design—subject of more advanced courses. (eg Fuzzy Logic,
Neural Networks, Re-enforcement Learning etc)

Eng. Prof. Mwangi Mbuthia – August - 2024


BEE 4102 Control Systems II
4 Digital Controllers – Analogue Controller Emulation
4.2 Analog Controller Emulation
Emulation is when a digital computer algorithm approximates analog controllers shown in Fig. 4.2.1.

Fig. 4.2.1 Feed Back Control System Block Diagram with Options for Gain, Lead, Lag, PI, PD and PID
Controllers.
Eng. Prof. Mwangi Mbuthia – August - 2024
BEE 4102 Control Systems II
4 Digital Controllers – Analogue Controller Emulation
4.2.1 Discrete Time Signal
An ideal sample f *(t) of a continuous signal f(t) is a series of zero width impulses spaced at
sampling time T seconds.
%
𝑓 ∗ 𝑡 = $ 𝑓(𝑘𝑇)𝛿(𝑡 − 𝑘𝑇)
"#$%

where 𝛿(𝑡 − 𝑘𝑇) is the input impulse function occurring at 𝑡 = 𝑘𝑇


A sampler (i.e an A to D converter) is represented by a switch shown below.
f(t) can be reconstructed from f *(t) by using a zero-order hold (D/A converter). The unit impulse at
time kT is converted into a pulse of width T at time 𝑡 − 𝑇

Eng. Prof. Mwangi Mbuthia – August - 2024


;6% (&)*'%$ (#2"&' #( 3%*3%(%"0%$ <= %>1&0#-" +89?,9
#
T f (6+8"?,
T) f (kT )
!
! ! +", " ! +$#,!+" $ $#,
$"$#

56%3% !+" $ $#, #( 06% 1"#0 #)*1'(% .1"/0#-" -//133#"2 &0 " " $#9

BEE 4102 Control Systems II


! (&)*'%3 +#9%9 &" !@A /-"B%30%3, #( 3%*3%(%"0%$
t 0 T<= 2&T(5#0/6 3T (=)<-'
4T 5T&( 6(6-5"
T . .. ..#" kT t
7#213% 89C9 D0 #( *-((#<'% 0- 3%/-"(031/0 ! +", &**3-E#)&0%'= .3-) ! ! +", <= 06% 1(% -. &
(a) 06%
6-'$ $%B#/%F Continuous Signal-. 56#/6 #( 06% 4%3-G-3$%3 6-'$
)-(0 /-))-" (b) +A@!
Sampled Signal &(
/-"B%30%3,
(6-5" #" 7#213% 89H9 73-) 7#213% 89H #0 /&" <% (%%" 06&0 & 4%3-G-3$%3 6-'$ /-"B%30( &
4 Digital Controllers – Analogue Controller Emulation
(%3#%( -. #)*1'(%( #"0- & (%3#%( -. *1'(%( -. 5#$06 #9 I%"/% & 1"#0 #)*1'(% &0 0#)% " #(
!"# $%&'()*+
,." !"0/-"B%30%$ #"0-',-.#$$/
& *1'(% -. 5#$06 #F 56#/6 )&= <% /3%&0%$ <= & *-(#0#B% !!"#"$%!&'!()*+($!,-.!/.01"."23453453%6!!"#"$%&'(
1"#0 (0%* &0
4.2.1 Discrete Time Signal
7 )$) 7 8%947$+%!+:; 9<4<$33% $'++=>
0#)% "F .-''-5%$ <= & "%2&0#B% 1"#0 (0%* &0 0#)% +" $ #,F #9%9 $%'&=%$ <= #9
;6% 03&"(.%3 .1"/0#-" .-3 & 4%3-G-3$%3 6-'$ #(
? ? $#%
!J ! +",K " $ %
% %
f (t) f *(t ) +8"L,
$#%
?$%
&6 +%, " !"! !"#$%&'" ()%*+), -%./%''+/%.
%T
Sampler
f *(t ) f(t)
,." !"1 0 $%&'(#,/
f (t ) f*(t)

T T
T f (6T ) f (kT )

t 0 T 2T 3T 4T 5T 6T . .. .. kT t t
(a) Discrete Time Signal (b) Continous Time Signal
(a) Continuous Signal (b) Sampled Signal

Sampled Signal ADC Reconstruction


012" !"3 !"#$%&'(%)"# "* + ("#%)#'"'$ $),#+- '$)#, + ./&"0"&1/& 2"-13 DAC
/,." !"0 !"# $%&'()*+ ',-.#$$/
Eng. Prof. Mwangi Mbuthia – August - 2024
BEE 4102 Control Systems II
4 Digital Controllers – Analogue Controller Emulation
4.2.1 Discrete Time Signal
The zero-order hold (ZOH) operation is commonly used in digital signal processing and control systems. It represents
the holding of a constant value over a specific time interval, which is the sampling period in discrete-time systems. The
Laplace transform of a zero-order hold can be expressed as follows;

Suppose u(t) is the input signal to the zero-order hold. The output f(t) of the zero-order hold operation can be
represented as;

𝑓(𝑡) = u(kT), kT ≤ t < (k+1)T

Here, T is the sampling period, and k is an integer representing the discrete sampling instants. Taking the Laplace
Transform;

Eng. Prof. Mwangi Mbuthia – August - 2024


BEE 4102 Control Systems II
4 Digital Controllers – Analogue Controller Emulation
4.2.1 Discrete Time Signal
(!$%)'
F(s) = ∫!" 𝑒 ()' 𝑢(kT)𝐝𝐭
% ()' (!$%)" %
F(s) = − 𝑒 =− 𝑒 ((!$%)" − 𝑒 ()!"
) !" )
For k = 0
% - !"# %(- !"#
𝐿[𝑓(𝑡)] = 𝐹(𝑠)*+, = 𝐺*+, (𝑠) = − =
) ) )

Continuous time controllers are analysed, simulated and designed using Laplace
transformations as described in Chapter 2.

Eng. Prof. Mwangi Mbuthia – August - 2024


BEE 4102 Control Systems II
4 Digital Controllers – Analogue Controller Emulation
4.2.2 Discrete Time Signal – z Transform
The z-transform is the principal analytical and design tool for SISO discrete-time systems that is analogous
to Laplace transform for continuous time systems.
( (

𝐹 ∗ 𝑠 = 𝐿[𝑓 ∗ 𝑡 ] = , (𝑓(𝑘𝑇))𝑒 )*%+ = , (𝑓(𝑘𝑇))(𝑒 *+ ))%


%&' %&'
Define z = 𝑒 *+
The z-transform of 𝑓(𝑘𝑇) becomes

𝐹 𝑧 = , (𝑓(𝑘𝑇))𝑧 )% = 𝑍[𝑓 𝑡 ]
%&'

Or 𝐹 𝑧 = 𝑓 0 + 𝑓 𝑇 𝑧 ), + 𝑓 2𝑇 𝑧 )- + 𝑓 3𝑇 𝑧 ). + … … … … … … . +
Eng. Prof. Mwangi Mbuthia – August - 2024
BEE 4102 Control Systems II
1"."23453453%6!!"#"$%&'( 7 )$' 7 8%947$+%!+:; 9<4<$33% $'++=>

4 Digital Controllers – Analogue Controller Emulation


4.2.2 Discrete Time Signal – z Transform
!"#"$%& '()$*(& +,+$-. /-+"#) !"#
Example Sampled Unit Step
f *(t )

1.0

0 T 2T 3T 4T t

( (
!"#$ %$% +!"#$%&'(#) (' $ &$)*+,- .%/0 &0,* '.%10/(%2
𝐹 𝑧 = , (𝑓(𝑘𝑇))𝑧 )% = , 1 𝑧 )%
!"#$%&"' %&' %&'
!"#$ %&'()*#+, -./01 (+2 -./.1), / ,
𝐹 𝑧 =1+𝑧 + 𝑧 )- + 𝑧 ). + ⋯ = /), = ,)/ !"
"
!
(34-%15 ! 4-)*1+#) -.!71
Eng. Prof. Mwangi Mbuthia – August - 2024
)!6
BEE 4102 Control Systems II
4 Digital Controllers – Analogue Controller Emulation
4.2.3 z-transform properties
(a) Linearity

Z(f1(t) ± f2(t)) = F1(z) ± F2(z)

(b) Initial Value Theorem

𝑓 0 = lim 𝐹(𝑧)
/→(

(c) Final Value Theorem


/
𝑓 ∞ = lim 𝐹(𝑧)
/→, /),

Eng. Prof. Mwangi Mbuthia – August - 2024


BEE 4102 Control Systems II
!"# !"#$%&'" ()%*+), -%./%''+/%.

4.2.4 Laplace and z-Transform Table


!"#$% &'( B/11/% C(;)(6, (%9 "@'0(%:</01:

! !0# /0 ! !12# #!/# #!"#

4 "!0# 4 4
D "!0 $ 12# ,$12/ "$1
4 "
5 4!0#
/ "$4

4 2"
8 0
/D !" $ 4#D
4 "
E ,$&0
!/ % &# " $ ,$&2

& "!4 $ ,$&2 #


F 4 $ ,$&0
/!/ % &# !" $ 4#!" $ ,$&2 #

4 & "&!&2 $ 4 % ,$&2 #" % !4 $ ,$&2 $ &2,$&2 #'


3 !&0 $ 4 % ,$&0 #
& D
/ !/ % &# &!" $ 4#D !" $ ,$&2 #

# " :&% #2
G :&% #0
/D % #D "D $ D" 6/: #2 % 4

/ "!" $ 6/: #2#


H 6/: #0
/D % #D "D $ D" 6/: #2 % 4

# ",$&2 :&% #2
42 ,$&0 :&% #0
!/ % &#D % #D "D $ D",$&2 6/: #2 % ,$D&2

!/ % &# "D $ ",$&2 6/: #2


44 ,$&0 6/: #0
!/ % &#D % #D "D $ D",$&2 6/: #2 % ,$D&2

Eng. Prof. Mwangi Mbuthia – August - 2024

You might also like