Professional Documents
Culture Documents
Sampling:
FIGURE Computer-controlled system for an analog plant (e.g., cruise control for a
car). The reference signal is r(t) (e.g., desired speed) and the output is y(t) (e.g., car
speed). The analog signals are converted to digital signals by an ADC, while the
digital signal from the computer is converted into an analog signal (an actuator is
probably needed to control the car) by a DAC. The signals w(t) and v(t) are
disturbances or noise in the plant and the sensor (e.g., electronic noise in the sensor
and undesirable vibration in the car).
The difference between continues and discrete signals is that we can represent the
discrete signal by samples given at the output from A/D and the resolution is given
We think about the periodic sample, here the periodic sample discrete obtained
from continues
May not have ideal, instead after reconstruction we may have noise i.e. instead of
getting this value we may have another value
𝑥[𝑛] = 𝑦[𝑛𝑇] + 𝑍[𝑛] where 𝑍[𝑛] is the noise cr.eated from sampling and
quantization.
Analog
Signal
A/D output
This process can be viewed as taking one sample and convolving it with another
function.
1T 7T
∗ T
Zero order holds process reconstructed by convolving each pulse function (2) with
function (3)
Bad case undersampling the output can not be reconstructed and uncorrectr output
from sampler.
Good case
𝑋𝑐 (𝜔) = 0 for |𝜔| > 𝜔𝐵 WB اي ﻻ ﯾوﺟد اﺷﺎرة ﻓﻲ ﺗردد اﻛﺑر ﻣن ﺗردد
|𝑋𝑐 (𝜔)|
𝜔
𝜔𝐵
- 𝜔𝐵
إذا وﻓﻘط إذاﻛﺎﻧتWB ﯾﻣﻛن إﻋﺎدة ﺗﺷﻛﯾل إﺷﺎرة ﻣﺣدودة اﻟﻧطﺎق ﻣﻊ ﺗردد
WS>2WB
Sampling Theorm:
We have to sample more than nyquist rate because it is some times good and some
times not good.
i.e. we sample at low frequency , the result appear at high frequency and high
frequency appear at low frequency and so on. We can not isolate them.
Xs(nT)=x(t) P(t)
where p(t) is the pulse train with a period T =1/fs. From spectral analysis, the
original spectrum (frequency components) X( f) and the sampled signal spectrum
Xs(f) in terms of Hz are related as
∞
1
𝑋𝑠 (𝑓) = ∑ 𝑋(𝑓 − 𝑛𝑓𝑠 )
𝑇
𝑛=−∞
Therefore we have
1 1 1
𝑋𝑠 (𝑓) = ⋯ . . + 𝑋(𝑓 + 𝑓𝑠 ) + 𝑋(𝑓) + 𝑋(𝑓 − 𝑓𝑠 )
𝑇 𝑇 𝑇
EX:
Solution:
a. Since the analog signal is sinusoid with a peak value of 5 and frequency of
1,000 Hz, we can write the sine wave using Euler’s identity:
𝑒 𝑗2𝜋𝑥1000𝑡 + 𝑒 −𝑗2𝜋𝑥1000𝑡
5 cos(2𝜋 ∗ 1000𝑡) = 5 ( )
2
= 2.5𝑒 𝑗2𝜋𝑥1000𝑡 + 2.5𝑒 −𝑗2𝜋𝑥1000𝑡
Fourier series expansioinof periodic signal
b. After the analog signal is sampled at the rate of 8,000 Hz, the sampled signal
spectrum and its replicas centered at the frequencies ±𝑛𝜔𝑠 , each with the
scaled amplitude being 2.5/T, are as shown in Figure below.
Example:
Assuming that an analog signal is given by
𝑥(𝑡) = 5 cos(2𝜋. 2000𝑡) + 3cos(2𝜋. 3000) for 𝑡 ≥ 0
and it is sampled at the rate of 8,000 Hz.
a- Sketch the spectrum of the sampled signal up to 20 kHz.
b- Sketch the recovered analog signal spectrum if an ideal lowpass filter
with a cutoff frequency of 4 kHz is used to filter the sampled signal (yn =
x(n) in this case) to recover the original signal.
3 5 5 3
𝑥(𝑡) = 𝑒 −𝑗2𝜋.3000𝑡 + 𝑒 −𝑗2𝜋.2000𝑡 + 𝑒 −𝑗2𝜋.2000𝑡 + 𝑒 −𝑗2𝜋.3000𝑡
2 2 2 2
Based on the spectrum in (a), the sampling theorem condition is satisfied; hence,
we can recover the original spectrum using a reconstruction lowpass filter. The
recovered spectrum is shown in figure below