Aliasing and samplingAliasing is a phenomenia which comes to live when you are sampling an analog signal to slow. This will disturb your digitized analog signal. The Nyquist Shannon theorem states that you must sample with more the twice the highest frequency in the signal to void aliasing. The phenoma can be viewed on figure below. Red dot indicates sampling and by trying to reconstruct the sampled signal a red curve connects the sample points. But the orgiginal blue signal do not look like the orginal blus analog signal. Something is wrong
The problemThe basic problem is that we are sampling to slow.
See https://www.youtube.com/watch?v=Jv5FU8oUWEY for a more in depth explanation. Three other links for in depth explanation
Conclusion 1 - sampling rateGiven highest frequency in the signal is Fs we shall with a frequency higher than 2 * Fs
Theory sets a lower limit at 2 * Fmax. But to be able to handle small remains of high frequency in the signal sampling with at least 4 times stipulated max signal frequency is normally choosen. Take this as a engineering approach just 2 b sure As shown in the menu above we cant reconstruct signal if we do not obey to this rule https://en.wikipedia.org/wiki/Nyquist\-Shannon_sampling_theorem Problem solving locationSo high frequencies must be removed before we sample the signal with an ADC - at analog level So what we need is an analog anti aliasing filter in front of the ADC Ideally it should be like
As the figure above indicate the lowpass filter (the antialiasing filter) should/should be of very high order - but this is in most /many cases unrealistic. We need a implementable solution: From https://www.sciencedirect.com/topics/computer-science/butterworth-filter: A Butterworth filter is defined as a maximally flat filter that provides the sharpest roll-off possible without inducing peaking in the Bode plot. It is commonly used in control systems due to its lack of peaking. Butterworth filters are often used allthough there exist a range of very high filters. Those are not the scope here. Butterworth filterA Butterworth filter is describes as: The Butterworth filter is a type of signal processing filter
Some things to considerTo be used as anti aliasing filter we have to select a comprimise of
Order of antialiasing filterIncreasing order of filter increase the slope or rate of damping as seen in figure below
Order of filter - the figure belowAbout the figure - can be used for simple scaling to other frequencies for discussing and design. The figure is normalised to 1 rad/sec in cut off frequency,
Steepness is orderOfFilter * 20dB/decade or 6 dB/octave
An example From the figure
Please note 10 rad/sec is 2.5 times sampling frequency - this is just for illustarting purpoes My more or less subjective selections criteria
Out of scope here - adc resolutionWe should use an anti aliasing filter
Implemention of BW lowpass filter to be used for anti aliasingWe are now dealing with analog electronics. In the links below there are suifficent mth to calculator BW filters, so no need to repeat it here.
Butterworth as second and first order blocks
An example normalized to cut off freq is 1 [rad/sec] A third order consists of - acc to table - of two blocks in series
Analog considerationsSee the figure below
If R2 are around same size as R3 then cutoff frequency for the filter is dependent of R2+R3 and not R3 alone. omega_0 = 1/(R3*C1) changes to omega_0 = 1/((R2+R3)*C1) on fig below
Its our of scope for to design it but should be fairly simple FILMSIllustrative movie https://www.youtube.com/watch?v=ACWa_mMhSJs EOP parking lot for links |