Experiment-1 SAMPLING
Experiment-1 SAMPLING
COMM02
Prof. Jenny Aruta
CEIT-29-501E
MEMBERS:
Preliminary Discussion
Regardless of the sampling method used, by definition it captures only pieces of the message.
So, how can the sampled signal be used to recover the whole message? This question can be answered
by considering the mathematical model that defines the sampled signal:
When the message is a simple sinewave (like in Figure 1) the equation’s solution (which
necessarily involves some trigonometry that is not shown here) tells us that the sampled signal consists
of:
A pair of sinewaves that are the sum and difference of the fundamental and message
frequencies
Many other pairs of sinewaves that are the sum and difference of the sampling signals’
This ends up being a lot of sinewaves but one of them has the same frequency as the message.
So, to recover the message, all that need be done is to pass the sampled signal through a low-pass filter.
As its name implies, this type of filter lets lower frequency signals through but rejects higher frequency
signals. That said, for this to work correctly, there’s a small catch which is discussed in Part C of the
experiment.
Equipment
The Emona Telecoms-Trainer 101 has a Dual Analog Switch module that has been designed for
sampling. This part of the experiment lets you use the module to sample a simple message using two
techniques.
Procedure
Ensure that:
5. Set the scope’s Mode control to the DUAL position to view the sampled message out of the Dual
Analog Switch module as well as the message.
7. Draw the input and output waveforms to scale in the space provided.
Question 1 What type of sampling is this an example of?
Natural
Flat-top
_____________________________________________________________________________________
The set-up in Figure 4 can be represented by the block diagram in Figure 5 below. The electronically
controlled switch in the original set-up has been substituted for a sample-and-hold circuit. However, the
message and sampling signals remain the same (that is, a 2kHz sinewave and an 8kHz pulse train).
9. Draw the new sampled message to scale in the space that you left on the graph paper.
Question 3 What two features of the sampled signal confirm that the set-up models the Flat-top
scheme?
Question 4 Comparing Figure 3 and Figure 5, what is the difference between their outputs? Explain
why this is so.
_____________________________________________________________________________________
Recall that the sampled message is made up of many sinewaves. Importantly, for every
sinewave in the message, there’s a sinewave in the sampled message with the same frequency. So
“reconstructing” the original message involves passing the sampled message signal through a low-pass
filter. This lets the sinewave (or sinewaves) with the same frequency as the message through while
rejecting the other sinewaves. The next part of the experiment lets you do this.
11. Locate the Tuneable Low-pass Filter module and set its Gain control to about the middle of its travel.
12. Turn the Tuneable Low-pass Filter module’s Cut-off Frequency Adjust control fully anticlockwise.
15. Slowly turn the Tuneable Low-pass Filter module’s Cut-off Frequency control clockwise and stop the
moment the message signal has been reconstructed
Part C – Aliasing
At present, the filter is only letting the message signal through to the output. It is comfortably
rejecting all of the other sinewaves (called aliases) that make up the sampled message. This is only
possible because the frequency of these other sinewaves is high enough. But, this isn’t an accident.
Their frequency is determined by the sampling rate (that is, the sampling signal’s frequency).
Many other pairs of sinewaves that are the sum and difference of the sampling signals’
harmonics and the message. In your set-up, a 2kHz sinewave message is sampled using an 8kHz
sampling signal.
That being the case, the lowest frequency components of the sampled message are:
2kHz
6kHz
10kHz
Now, suppose the frequency of the sampling signal is lowered. You’d still get the message but
the frequency of the aliases would go down as well. So for example, if the sampling signal is 7kHz, the
lowest frequency components of the sampled message become 2kHz, 5kHz and 9kHz. Clearly, if the
sampling signal’s frequency is low enough, one or more of the lower frequency aliases can pass through
the filter along with the reconstructed message. Obviously, this would distort the reconstructed
message which is a problem known as aliasing.
To avoid aliasing, the sampling signal’s theoretical minimum frequency is twice the message
frequency (or twice the highest frequency in the message if it contains more than one sinewave and is a
baseband signal). This principle is known as the Nyquist Sample Rate. So for this set-up, the minimum
sampling rate is 4kHz and the lowest frequency components would be 2kHz, 2kHz and 6kHz.
That said, filters aren’t perfect. Their rejection of frequencies beyond the cut-off is gradual
rather than instantaneous. So, in practice the sampling signal’s frequency needs to be a little higher than
the Nyquist Sample Rate.
The next part of the experiment lets you vary the sampling signal’s frequency to observe
aliasing.
17. Locate the VCO module and set its Frequency Adjust control fully clockwise.
At this point, the sampling of the message and its reconstruction should be working normally.
21. Slowly reduce the frequency of the VCO module’s output (by turning its Frequency Adjust control
anti-clockwise) while watching the reconstructed message signal.
Question 5 What’s the name of the distortion that appears when the VCO module’s Frequency Adjust
control is turned far enough?
- As a result of the oscilloscope taking photos of the signal too slowly, aliasing distortion causes
quick parts of the signal to seem jumbled and produce odd patterns on the screen.
Question 6 Given the message is a 2kHz sinewave, what’s the theoretical minimum frequency for the
sampling signal?
Question 7 Can you still use the Master Signal to provide sampling pulse in Figure 9 or 10, instead of a
VCO and get the same result? Explain.
- Yes, even if you use master signal the resulting sampling pulse will also be distorted.
_____________________________________________________________________________________
23. Turn the VCO module’s Frequency Adjust control clockwise and stop the moment the reconstructed
message is no-longer distorted.
24. Connect the scope’s Channel 1 input to the VCO module’s DIGITAL output.
26. Adjust the scope’s Timebase control to view two or so cycles of the VCO module’s DIGITAL output.
27. Measure the signal’s period and record this in Table 1 on the next page.
28. Use the period to calculate and record the signal’s frequency.
Question 8 Why is the actual minimum sampling frequency higher than the theoretical minimum that
you calculated for Question 6?
- The actual minimum sampling frequency is higher than the theoretical minimum because
filters cannot roll off infinitely fast.
_____________________________________________________________________________________
QUESTIONS:
Conclusion:
In conclusion, the experiment successfully demonstrates how the sampling and reconstruction of
the message signal work in digital transmissions. It was proven that different sampling methods affect the
message signal in the output. In the natural sampling method, it was shown that the top of each pulse in
the sampled signal preserved the shape of the analog signal during the pulse interval, while in the flat-top
method, the amplitude of each pulse remained the same. The experiment also proved how the sampled
signal was reconstructed back to its original form when it was introduced to the low-pass filter. To which
it was shown that the low-pass filter lets the lower frequency of the sampled signal pass through while
attenuating the higher frequency, recovering the original signal in the process. Lastly, in aliasing, the
experiment proved its anomalies when reconstructing the message signal. It was shown that when the
VCO produced a frequency that exceeded half of the sampling rate, the frequency appeared low in the
digital representation, making the intended output distorted.