lecture notes data acquisition and digital signal processing
TRANSCRIPT
![Page 1: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/1.jpg)
CENG 314Embedded Computer Systems
Lecture NotesData Acquisition
and Digital Signal Processing
Asst. Prof. Tolga Ayav, Ph.D.
Department of Computer Engineeringİzmir Institute of Technology
![Page 2: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/2.jpg)
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.
İzmir Institute of Technology Embedded Systems Lab
![Page 3: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/3.jpg)
Data Acquisition
İzmir Institute of Technology Embedded Systems Lab
![Page 4: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/4.jpg)
Data Acquisition and Control
Physical systems (real-world phenomena) Transducers and ActuatorsSignal Conditioning equipmentData Acquisition & Control HardwareSoftware
İzmir Institute of Technology Embedded Systems Lab
![Page 5: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/5.jpg)
Analog-to-Digital Conversion
Analog-to-digital conversion (ADC) and digital-to-analog 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
İzmir Institute of Technology Embedded Systems Lab
![Page 6: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/6.jpg)
ADC Principles: S/H and Quantization
İzmir Institute of Technology Embedded Systems Lab
![Page 7: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/7.jpg)
Quantization Error
İzmir Institute of Technology Embedded Systems Lab
![Page 8: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/8.jpg)
Analog-to-Digital Conversion
İzmir Institute of Technology Embedded Systems Lab
![Page 9: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/9.jpg)
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.
İzmir Institute of Technology Embedded Systems Lab
![Page 10: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/10.jpg)
Sampling Theory
Aliasing !
İzmir Institute of Technology Embedded Systems Lab
![Page 11: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/11.jpg)
Using Analog Filters
İzmir Institute of Technology Embedded Systems Lab
![Page 12: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/12.jpg)
Basic A/D Architecture
Flash ADCSuccesive-approximation ADCSigma-delta ADC
ADC Types:
İzmir Institute of Technology Embedded Systems Lab
![Page 13: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/13.jpg)
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.
İzmir Institute of Technology Embedded Systems Lab
![Page 14: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/14.jpg)
Succesive-approximation ADC
Uses an internal n-bit DACConversion logic is a simple n-bit counterN-bit ADC requires 2^n cycles to perform a conversionin worst case.
İzmir Institute of Technology Embedded Systems Lab
![Page 15: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/15.jpg)
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.
İzmir Institute of Technology Embedded Systems Lab
![Page 16: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/16.jpg)
Digital-to-Analog Converter (DAC)
İzmir Institute of Technology Embedded Systems Lab
![Page 17: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/17.jpg)
Transducers
• Converts physical properties such as temperature, pressure, force etc. to electrical signals.
Pt-100
thermocoupleİzmir Institute of Technology Embedded Systems Lab
![Page 18: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/18.jpg)
Signal Conditioning
AmplifyingScalingOffsettingFilteringLinearizationIsolation
Signal Conditioning
to A/D or dataAcquisition equipment
Input signal from sensor
İzmir Institute of Technology Embedded Systems Lab
![Page 19: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/19.jpg)
Digital Signal Processing
1) Specialized microprocessors (DSP)2) Digital Signal Controllers (DSC)3) FPGA, ASIC4) Powerful general purpose microprocessors
İzmir Institute of Technology Embedded Systems Lab
![Page 20: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/20.jpg)
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
İzmir Institute of Technology Embedded Systems Lab
![Page 21: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/21.jpg)
Case Study
Amplifier Scaling MCU+-5 volt analogİnput range
12-bit resolution
Ambient Temperature:0-120 C
İzmir Institute of Technology Embedded Systems Lab
EMI disturbance
Ain
N-TypeThermocouple
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.
![Page 22: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/22.jpg)
Table for Thermocouple
Take these twelve points to construct a look-up table in the microcontroller
İzmir Institute of Technology Embedded Systems Lab
![Page 23: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/23.jpg)
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).
İzmir Institute of Technology Embedded Systems Lab
![Page 24: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/24.jpg)
Programmable Gain Amplifier
Typically, PGAs are designed in two varieties: powers of two (G = 1,2,4,...) and powers of ten (G = 1,10,100,...).Let's piece one together for gains of 1,2,4 and 8. What resistor collection provides these gains? One solution is:R1 = 2 kΩ, R2 = 1 kΩ, R3 = 500 Ω and R4 = 500 Ω. This pattern can be extended to any number of gain ranges.
İzmir Institute of Technology Embedded Systems Lab
![Page 25: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/25.jpg)
Digital Filtering
A very simple FIR filter (moving average filter) attenuating the high frequencies:
İzmir Institute of Technology Embedded Systems Lab
![Page 26: Lecture Notes Data Acquisition and Digital Signal Processing](https://reader030.vdocuments.site/reader030/viewer/2022012022/6169bf7d11a7b741a34aebc6/html5/thumbnails/26.jpg)
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 microcontrollerImplement 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 accordingto your design?
İzmir Institute of Technology Embedded Systems Lab