3rd Tutorial SP
3rd Tutorial SP
Task 01
The Nyquist-Shannon Sampling Theorem states that a continuous signal can be accurately
reconstructed from its samples if the sampling rate fs is at least twice the maximum frequency
present in the signal. This minimum rate is known as the Nyquist rate.
Formula: fs≥2⋅fmax
Where:
2. Aliasing
Aliasing occurs when a signal is sampled at a rate lower than the Nyquist rate. Frequencies higher
than half the sampling rate will be misrepresented as lower frequencies due to this under sampling.
When a signal with frequency f is sampled at fs, the observed frequency falias can be found using:
falias=∣f−n⋅fs∣
where n is an integer chosen to make falias fall within the range [0,fs/2).
Example Calculation:
Scenario:
Consider a signal with a maximum frequency of 3,000 Hz. You choose a sampling rate of 4,000
Hz. Let’s analyze the potential aliasing issue.
1. Determine the Nyquist Rate:
The chosen sampling rate of 4,000 Hz is less than the Nyquist rate, so aliasing will occur.
For any frequency component f above half the sampling rate (i.e., 2,000 Hz), it will be aliased into
the range [0, 2000 Hz).
falias=∣f−n⋅fs∣
Where fs=4,000 Hz and f=3,500 Hz. We need to choose n such that falias falls within the range
[0,2000 Hz).
falias=∣3,500−1*4,000∣=∣3,500−4,000∣=500Hz
3. Consequences of Aliasing:
In this case, the signal will be inaccurately represented because the 3,500 Hz frequency is mapped
to 500 Hz. This aliasing can cause distortion and loss of information in the sampled signal.
To avoid aliasing, ensure your sampling rate is at least twice the highest frequency present
in the signal. If the sampling rate is lower, use the formula for aliasing to determine how
frequencies will be misrepresented and adjust your sampling strategy accordingly.
Task 02
You are designing a system to monitor vibrations in a mechanical structure. The vibrations have
frequency components up to 1,800 Hz. Your goal is to select an appropriate sampling rate for a
digital data acquisition system. You also need to evaluate the effects of aliasing if the sampling
rate is not sufficient.
Objective: Ensure that you sample the signal at a rate that avoids aliasing.
Solution:
fNyquist=2⋅fmax=2⋅1,800 Hz=3,600 Hz
fNyquist=2⋅fmax=2⋅1,800 Hz=3,600 Hz
Scenario: Suppose you mistakenly choose a sampling rate of 3,000 Hz instead of 3,600 Hz. We
need to determine how this incorrect sampling rate will affect the signal, specifically by calculating
the aliased frequencies.
Solution:
fs=3,000 Hz
Aliasing causes frequencies higher than half the sampling rate (1,500 Hz) to be misrepresented as
lower frequencies. To find the aliased frequency for components above 1,500 Hz, use the formula:
falias=∣f−n⋅fs∣
falias=∣f−n⋅fs∣
where n is an integer that shifts the frequency into the range [0,fs/2)
Example Calculation:
Any frequency component f where f>fs/2 (which is 1,500 Hz) will alias into the range below
1,500 Hz. We should check that our aliased frequencies fall within this range to understand the
impact.
Summary of Aliasing:
By sampling at 3,000 Hz, frequencies higher than 1,500 Hz are incorrectly mapped, causing the
2,200 Hz signal to appear as 800 Hz. This could result in significant distortion and incorrect
analysis of the vibration signal.
Objective: Ensure the sampling rate avoids aliasing and accurately captures the signal.
Solution:
To correct the situation, increase the sampling rate to at least 3,600 Hz to meet the Nyquist
criterion. This will ensure that all frequency components up to 1,800 Hz are accurately represented
without aliasing.
Aliasing Calculation:
falias=∣f−n⋅fs∣
By understanding and applying these mathematical concepts, you can ensure that your digital
sampling system accurately captures and represents the original signal without distortion due to
aliasing.