introduction to analog and digital sensors
play

Introduction to Analog and Digital Sensors Ahmet Onat 2019 - PowerPoint PPT Presentation

Introduction to Analog and Digital Sensors Ahmet Onat 2019 onat@sabanciuniv.edu Layout of the Lecture Analog interfacing to sensors: Signal conditioning Sampling and quantization Bridge circuits and instrumentation amplifiers


  1. Introduction to Analog and Digital Sensors Ahmet Onat 2019 onat@sabanciuniv.edu

  2. Layout of the Lecture  Analog interfacing to sensors:  Signal conditioning  Sampling and quantization  Bridge circuits and instrumentation amplifiers  Linearization  Digital interfacing to sensors  Properties  Communication

  3. Desirable Sensor Characteristics  Sensor reading equal to the measured quantity  Suitable:  accuracy, precision,  range, sensitivity → gain  resolution, etc.  Low noise  Linearity

  4. Characteristics of Instrumentation  Accuracy: How close is the measurement to measured.  Precision: What is the uncertainty in the measurement.  Range: Which value interval is measurable?  Sensitivity: For a given change in input, the amount of the change in output.  Resolution: Smallest amount of measurable change  Repeatability: Under the same conditions, can we get the same measurement?

  5. Accuracy - Precision  How are accuracy and precision related? Accurate, (In)accurate, Inaccurate, Precise Imprecise Precise  Inaccurate but precise?  Metal ruler on a hot day: Same precision bad accuracy

  6. Sensitivity - Range  Generally high sensitivity sounds good.  However, high sensitivity restricts range.  Deliberately→nonlinear sensor can be used. High sensitivity Low sensitivity Nonlinear  1mV precision;  8bit: 256m V range  12bit: 4,096m V

  7. Analog Interfacing to Sensors There are 3 main stages in sensing:  Physics  Electronics  Information  →Pysics will not be treated.

  8. Signal Conditioning Electronics

  9. Signal Conditioning System 1.Sensor Output 2.Preamplifier stage 3.Removal of offset 4.Antialiasing filter 5.Amplifier

  10. Signal Conditioning: Sensor 1.Sensor Low voltage  Low power electrical signal → Low current  Wide frequency bandwidth  Aliasing during sampling  Offset voltage  Prevents use of full quantizer range

  11. Signal Conditioning: Sensor 1.Sensor  Voltage source with impedance  OR P o max → r o = r i r i →∞ : V s = X s  r i = V s / i i (Calculate like a voltage divider)

  12. Signal Conditioning: Preamplifjer 2. Preamplifier stage  Extract largest amount of power from signal or,  Draw the least amount of current.  Matched impedance circuit  Low noise  High gain

  13. Signal Conditioning: Preamplifjer  Draw the least amount of current: Voltage follower configuration 17 Ω r i = 2 × 10  Susceptibility to ESD increases.

  14. Signal Conditioning: Ofgset Removal Xp 3. Offset remove  The information content is confined to Information content a small part of the signal range. No information  Amplification will not allow t max precision of the quantizer: Xo 2 MSB always set: 11xxxxxx 12 bit ADC → 10bit ADC t

  15. Signal Conditioning: Ofgset Removal 3. Offset remove  Difference amplifier. V o = R f ( V p − V off ) R 1 : Constant offset voltage for removal.  V o f f

  16. Signal Conditioning: Filter 4. Antialiasing Filter  “A bandlimited function can be completely determined by its samples taken at more than twice the maximum frequency component”  It is necessary to limit the bandwidth of the signal for:  Sampling  Noise suppression

  17. Signal Conditioning: Filter  Filter characteristic:  Passband ripple must be less than ADC resolution. Passband  Bandwidth limit frequency 2 − N at 2 -N gain. Stopband  What order filter? f s f max

  18. Signal Conditioning: Amplifjer 5. Amplification V ref  Signal is amplified to the reference voltage of the ADC. V a ( t )< V max = V ref t

  19. Signal Conditioning: Amplifjer  Simple non-inverting amplifier circuit. V o =( 1 + R f  Ideal gain ( A ≈∞): ) V i R 1 = A ( R 1 + R f ) V o  Actual gain: V i AR 1 + R 1 + R f  Error for A=50,000, R 1 =1kΩ, R 2 =9kΩ , V i =0.500V : V o ∞ = 5.000 V e = 2000 μ V V o 50 k = 4.998 V 2 counts on the quantizer  For 5V , 12bit: Δ = 1221 μ V

  20. Data Converter 6.Sample and Hold 7.Quantizer

  21. Sample and Hold  Ideal sampling requires  zero duration and  infinite currents. Ideal sample and hold  Actual sampling uses a transistor… Actual sample and hold  The body resistance of the transistor turns the S&H into a low pass filter. Sample and hold equivalent circuit

  22. Sample and Hold  Time constant of a 1 st order RC filter: τ= RC  Must continue sampling for at least 5 τ to allow the capacitor to be charged to V a  Microprocessors allow adjustment of the charging period.  Higher precision ADC requires longer charge times: “Acquisition Time” f = 1  It is not possible to exceed for sampling. 5 τ

  23. Sample and Hold  How to sample several signals at the same instant:  Several ADC can be used.  More commonly, synchronous sampling, sequential conversion:  In specialized applications several ADC are used: Motor current sampling, lab measurement etc.

  24. Sampling of Continuous Time Signals  Fourier transform of a time signal: ∞ X ( f )= ∫ − 2 π f t dt Cont: x ( t ) e −∞ x s ( t ) : x ( nT s ) ; T s = 1 / f s ∞ X s ( f )= ∑ X ( f + kf s ) Sampl: k =−∞  When a signal is sampled by f s , its frequency spectrum becomes periodic by f s .

  25. Sampling of Continuous Time Signals Sampled. Note spacing X ( ƒ) ƒ −B B Continuous time signal frequency spectrum With correct filtering, original signal can be exactly recovered. Source of figures: Wikipedia.org

  26. Sampling of Continuous Time Signals  However, if low sampling frequency is used: ∞ X s ( f )= ∑ X ( f + kf s ) k =−∞  There are overlaps: [( k + 1 ) f s − B,kf s + B ] ,k ∈−∞ , ∞ Which ad up.  Original signal is lost. Source of figures: Wikipedia.org

  27. The Data Converter AKA Quantizer  Analog to digital conversion (ADC) is a search operation. x q = ⌊ 2 2 ⌋ N V in + Δ V ref N Δ = V ref / 2  Precision is limited to finite value,  Information about input is lost.  Time consuming OR complex operation.

  28. The Data Converter AKA Quantizer  Ideal, normalized, 3 bit quantizer. Source of figures: D.H. Sheingold, Analog Digital Conversion Handbook, 1986

  29. Quantization Error as Linear Noise  V in is unknown→  Quantization can be modeled as additive noise. x q = V in + n q

  30. Quantization Error as Linear Noise  Vin is not known→  Quantization can be modeled as additive noise. x q = V in + n q SNR dB = 6.02 N + 1.76 ( V in = Asin (ω t ) , N bit quantizer )

  31. Quantizer Performance  Gain not unity:  Does not start from zero:  Step change voltages are not uniform:  Each can be corrected in software (not easily!) Source of figures: D.H. Sheingold, Analog Digital Conversion Handbook, 1986

  32. Efgective Number of Bits: ENOB  The output of an ADC contains noise. → Less precision than datasheet specification.  How many of the bits are above noise threshold?  Experimentally measure the SNR of the ADC: SNRM ENOB = SNRM dB − 1.76 6.02  The ADC precision is efgectively: ENOB.

  33. Quantizer Realizations: Flash  Low latency  High complexity O(2 N )  Bad linearity

  34. Quantizer Realizations: Successive Approx.  Higher latency.  Low complexity.  Good linearity. Source of figures: D.H. Sheingold, Analog Digital Conversion Handbook, 1986

  35. Digital Signal Processing

  36. From Physical Quantity to Physical Value  The final stage is digital signal processing.

  37. Oversampling / Noise Shaping  Higher precision than available in quantizer is possible:  Signal is sampled at much higher rate than Shannon.  After ADC, DSP low pass filter is applied.  Low order anti-aliasing filter is sufficient.  Increase in precision is obtained due to averaging. LPF V a X q + S&H ↓ OSR ω c ω c =π/ OSR f s = 2 f m × OSR n q Electronics Information

  38. Oversampling / Noise Shaping  Sampling rate is much higher than required by Shannon theorem.  Quantization noise power is constant, regardless of sampling rate.  Signal spectrum amplitude is inreased proportionally. V a ( f ) ' = V a ( f )× OSR  Signal occupies less of the digital bandwith. f ' max = f max / OSR

  39. Oversampling / Noise Shaping  Downsampling by OSR brings the signal back to desired band. X q ↓ OSR

  40. Oversampling / Noise Shaping  Oversampling increases the ADC precision. 4 w  OSR= → w bit increase in quantizer precision.  For 4 bit increase: OSR= =256 times oversampling. 4 4  44.1KSPS → 11.3MSPS: too much!  Oversampling can be augmented with noise shaping to improve ratio.

  41. Oversampling with Noise Shaping  Quantization noise is injected during ADC.  The feedback system causes the quantization noise spectrum to be:  low at low frequencies.  Higher at high frequencies. LPF Sampled V a X q + S/H ADC ↓ OSR data ω c Integrator π/ OSR f s = 2 f m × OSR DAC Information Electronics

  42. Oversampling with Noise Shaping  The feedback loop has different gains for  quantization noise and  Signal.  Quantization noise is concentrated towards higer frequencies.  For 4 bit increase: OSR=8 is sufficient vs. OSR=256

  43. High Precision Applications

Recommend


More recommend