Embedded Computer Systems
Lecture Notes
Data Acquisition
and
Digital Signal Processing
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Data Acquisition
Data acquisition is the sampling of the real world to generate data that can be manipulated by a computer.
Sometimes abbreviated DAQ or DAS, data acquisition typically involves acquisition of signals and waveforms and processing the signals to obtain desired information.
The components of data acquisition systems include appropriate sensors that convert any measurement parameter to an electrical signal, which is acquired by data acquisition hardware.
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Data Acquisition
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Data Acquisition and Control
Physical systems (real-world phenomena)
Transducers and Actuators
Signal Conditioning equipment
Data Acquisition & Control Hardware
Software
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Analog-to-Digital Conversion
Analog-to-digital conversion (ADC) and digital-toanalog conversion (DAC) are the processes that allow digital computers to interact with everyday signals: voltage, current, distance, velocity, temperature, altitude, force, acceleration, pressure etc.
Digital information is different from its analog counterpart in two respects:
- it is sampled
- it is quantized
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
ADC Principles: S/H and Quantization
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Quantization Error
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Analog-to-Digital Conversion
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Sampling Theory
Nyquist theorem:
Analog signal that has been digitized can be perfectly reconstructed
if the sampling rate was 1/(2W) seconds,
where W is the highest frequency in the original signal.
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Sampling Theory
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Using Analog Filters
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Basic A/D Architecture
Flash ADC
Succesive-approximation ADC
Sigma-delta ADC
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Flash ADC
• Requires 4095 parallel comparators for 12-bit.
• Very fast, conversion is done in one step.
• Complexity doubles with each added bit of resolution.
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Succesive-approximation ADC
Uses an internal n-bit DAC
Conversion logic is a simple n-bit counter
N-bit ADC requires 2^n cycles to perform a conversion in worst case.
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Delta-sigma ADC
• Requires 1-bit DAC: less susceptible to noise
• Requires high sampling rate, suitable for audio applications
• It has digital filter, so no need for expensive low-pass filters at input
• Resolution can be very high.
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Digital-to-Analog Converter (DAC)
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Transducers
• Converts physical properties such as temperature, pressure, force etc. to electrical signals.
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Signal Conditioning
Amplifying
Scaling
Offsetting
Filtering
Linearization
Isolation
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Digital Signal Processing
1) Specialized microprocessors (DSP)
2) Digital Signal Controllers (DSC)
3) FPGA, ASIC
4) Powerful general purpose microprocessors
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Example: Digital Filters
• Reproducable response
• Temperature insensitive
• Programmable
Example: FIR filter with 4 coefficients
• Unable to pass power
• Requires a power supply
• Frequency range limitations
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Case Study
Getting the most from an ADC means scaling the maximum signal from each sensor to match the maximum input of the ADC. Therefore, we have to use an amplifier along with a scaling circuit. We may left the noise filtering on the acquired temperature to the program
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Table for Thermocouple
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Linear Interpolation
f(3)=0+(3-0)(0.261-0)/(10-0)=0.0783
(In the table, f(3) is given as 0.078)
Calculate the output of N-type thermocouple at 3 °C.
We will use two points: (0, 0) and (10, 0.261).
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Programmable Gain Amplifier
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
Digital Filtering
A very simple FIR filter (moving average filter) attenuating the high frequencies:
Embedded Computer Systems ------------------------------------------Next Slide --------------- Tolga Ayav
A Solution
Amplify the signal such that the output of the signal is approximately 10 volts at 120 C.
Shift the signal 5 volts downwards.
Implement a look-up table in the microcontroller
Implement a digital Low Pass Filter to reduce EMI disturbance.
Assume that ADC take the following samples
(Sampling rate is 10 ms):
− (2.81v, 2.94v, 2.68v, 2.56v, 2.78v, 2.12v, 2.48v, ...)
What would be the current temperature according to your design?
1. What is data acquisition? | ![]() |
2. How does digital signal processing (DSP) contribute to data acquisition? | ![]() |
3. What are the advantages of digital signal processing over analog signal processing in data acquisition? | ![]() |
4. What are the common methods of data acquisition? | ![]() |
5. What are some applications of data acquisition and digital signal processing? | ![]() |