1.2 Basic Digital Control System: Input To A Controlled System
1.2 Basic Digital Control System: Input To A Controlled System
1.2 Basic Digital Control System: Input To A Controlled System
where
𝑟 𝑡 : reference input / desired output
𝑦 𝑡 : controlled output / actual output
𝑒 𝑡 : error
𝑢 𝑡 : control input
𝐴/𝐷: Analog to Digital converter
𝐷/𝐴: Digital to Analog converter
Continued ……………..
Regulation : process of holding 𝑦 𝑡 close to 𝑟 𝑡 .
A s/m that has Good disturbance rejection
Has good regulation in the presence of disturbance
signals.
A s/m that has low sensitivity to parameter variations
Has good regulation in the face of changes in the
plant parameters.
Robust s/m :
Has both Good disturbance rejection and low
sensitivity to parameter variations.
Steps in digital feedback realization
Step 1- Analysis of closed loop system
• Modeling of the system
• Determining the control goals and the required control
efforts
Step 2- design of digital controller
• Determine the required sensors and actuators
• Design the controller based on models
Step 3- realization of digital controller
• Simulate the controller on model of the system
• Implement the controller using digital computer or
other hard ware
• Test the system performance
• Loop back
1.3 Description of discrete time systems
Description of discrete time systems
a) Difference equation method
b) Transform method /Transfer function method/
c) Impulse response method
d) State space method
Analysis of discrete time systems
Analysis based on difference equation
Analysis based on transform method
Analysis using impulse response method
Analysis using state space method
Continued ……………..
Assume 𝑦 be the output of the s/m and 𝑢 be the input of
the system, then the system can be represented by the
following 4 methods.
a) Difference /recurrence/ equation method
o General form is
𝒚 𝒌 + 𝒂𝟏 𝒚 𝒌 − 𝟏 + 𝒂𝟐 𝒚 𝒌 − 𝟐 +. . . . +𝒂𝒏 𝒚 𝒌 − 𝒏 =
𝒃𝟎 𝒖 𝒌 + 𝒃𝟏 𝒖 𝒌 − 𝟏 + 𝒃𝟐 𝒖 𝒌 − 𝟐 +. . . . +𝒃𝒎 𝒖 𝒌 − 𝒎
1 𝑓𝑜𝑟 𝑘 = 0
where 𝑢 𝑘 = 𝛿 𝑘 = ቊ
0 𝑓𝑜𝑟 𝑘 ≠ 0
d) State space method
• State equation is set of first order difference equations
• state space equation of discrete time systems is
𝑥 𝑘 + 1 = 𝐹𝑥 𝑘 + 𝐺𝑢 𝑘
y 𝑘 = 𝐶𝑥 𝑘 + 𝐷𝑢 𝑘
Discrete approximation to Integration
Suppose we have a continuous signal 𝑒(𝑡) of which a segment is
sketched in below and we wish to compute an approximation to the
integral
𝑡
𝐽 = 0 𝑒 𝑡 𝑑𝑡
using only the discrete values 𝑒(0) , 𝑒(1) , 𝑒(2) , . . . , 𝑒(𝑡𝑘−1 ), 𝑒 𝑡𝑘 .
1.4. Euler's method of digital approximation
Euler’s method of Digital Approximation
From the definition of derivative
∆𝑥(𝑡)
𝑥ሶ 𝑡 = lim
∆𝑡→0 ∆𝑡
𝒌 𝒌
𝟐 𝟓 𝟏 𝟓 𝟏 𝟓
⇒𝒖 𝒌 = + − −
𝟓 𝟐 𝟐 𝟐 𝟐
𝟏 𝟓
here since + > 1, the system is unstable.
𝟐 𝟐
1.6 Sample and Hold
Sampling
process of converting a continuous analog signal to a
discrete signal.
Modulation process in which a pulse train 𝒑(𝒕) with a
magnitude of 1Τ𝜎 and a period 𝑇 multiplies a
continuous function 𝒇(𝒕) and produces a sampled
function 𝑓 ∗ (𝑡).
Where 𝒑 𝒕 = σ∞
𝒌=𝟎 𝜹 𝒕 − 𝒌𝑻
Continued ……………..
Sampler
have infinite switching frequency
output of the sampler 𝒇∗ (𝒕) is a series of impulse signals
whose amplitude is equal to the original signal 𝑓 𝑡 .
𝒇 𝒕 𝒇∗ (𝒕) = 𝒇 𝒌𝑻
𝒑 𝒕
Where 𝒇∗ (𝒕) = 𝒇(𝒕) ∗ 𝒑 𝒕
= 𝒇(𝒕) ∗ σ∞
𝒌=−∞ 𝜹 𝒕 − 𝒌𝑻
= σ∞
𝒌=−∞ 𝒇(𝒕) ∗ 𝜹 𝒕 − 𝒌𝑻
= 𝒇(𝒌𝑻)
T: sampling period / interval
𝜹: impulse function
In general,
𝒇 𝒌𝑻 = 𝒇(𝒕) ∗ 𝜹 𝒕 − 𝒌𝑻
Continued ……………..
o E.g. Find the sampled o/p of the following signals. {Assume
a sampling period f 2 seconds}.
a) 𝑓 𝑡 = 2𝑒 −𝑡
b) 𝑓 𝑡 = 1 𝑡 − 2(𝑡 − 2)
Sampled signals
Easier to transmit
Easily regenerated
Easy for coding
Can be easily multiplexed
Continued ……………..
Sampler is introduced to improve dynamic behavior of control
loop
Better reliability
Better sensitivity behavior
Noise reduction
Less weight
Less hardware cost
Less software/ maintenance cost
Sampled control
Multiple use of expensive equipment
Usually in controlled system data are available/ modified
in certain instants only {e.g., Radar control, chemical
analysis, }
Naturally discrete {E.g. Stepping motor, encoders}
Continued……………………
Data hold
converts the sampled analog signal into a continuous
time analog signal.
approximates an ideal low pass filter
three types of data hold circuits
• Zero order hold, first order hold and second
order hold.
Zero order hold
takes the value of the sampled analog signal at 𝑡 = 𝐾𝑇
and holds it constant for the time interval of 𝑘𝑇 ≤ 𝑡 <
(𝑘 + 1)𝑇.
o E.g. find the sampled and ZOH output of
𝑓 𝑡 =𝑟 𝑡 −2 𝑡−2
1.7 Digitization