Analog-to-digital Conversion and Digital-to-analog Conversion (with DSP) ES-3
A very simple (…too simple!) Digital-to-analog converter 8R 4R 2R R 8R V1V1 V2V2 V4V4 V8V8 V OUT
scitec.uwichill.edu.bb Analog Input A simple Analog-to-digital converter + -
scitec.uwichill.edu.bb Analog Input A simple Analog-to-digital converter v 0v high v v v v low v Improve accuracy: scale the DAC
Nyquist Sampling Rate The sampling of data must be at least twice the rate as the maximum frequency of the analog signal: f s >2f max V(t) Time, t Use a low pass filter with f c = f max to remove harmonics sine
Nyquist Sampling Rate The sampling of data must be at least twice the rate as the maximum frequency of the analog signal : f s >2f max V(t) Time, t Aliasing
Digital Signal Processing
Running average of 10 pts
Digital Filtering Removing Noise and Interference from a Digital Signal Find the average of N points
sine + noise filtered noise FFT of a noisy sine wave and its digitally filtered signal
DSP Example
Simple Notch Filter to remove 60 Hz interference t (s) V in (n) f S = 1440 samples per second 1/60 s 60 Hz sine V out (n) = V in (n) + V in (n - f s / 2f notch ) = V in (n)+V in (n-12) V in (n) V in (n-12) This adds the sample that is out of phase at 60 Hz
Matlab demo es3_60Hz.m