Survey
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
MAS836 – Sensor Technologies for Interactive Environments Second Nature – Sensor Conditioning Electronics 2/04 JAP Reference Sources • Jacob Fraden – AIP Handbook of Modern Sensors, >2’nd Edition • Ramon Pallas-Areny and John G. Webster – Sensors and Signal Conditioning, 2’nd Edition • Thomas Petruzzellis (getting old…) – The Alarm, Sensor, & Security Cookbook 2 2/04 JAP Auxilary References (signals) • Ramon Pallas-Areny & John G. Webster – Analog Signal Processing • Paul Horowitz & Winifield Hill – The Art of Electronics • Don Lancaster (online sources) – Active Filter Cookbook 3 2/04 JAP Magazines • • • • • Sensors Magazine - Free! Circuit Cellar - Best EE-hacker magazine out NASA Tech Briefs - Free! (still there?) Test and Measurement - Free! IEEE Sensors Journal 4 2/04 JAP Websites • http://www.sensorsportal.com/ – References, hints, sources • http://www.sensorsmag.com/ – Sensors Magazine site • Buyers guide, Archive articles • http://www.cs.cmu.edu/~chuck/robotpg/robofaq/10.html – Robotics sites often list sensor vendors, hints • http://www.billbuxton.com/InputSources.html – Bill Buxton’s encyclopedia on input devices 5 2/04 JAP Some Classic Sensor Module Sources • • • • http://www.parallax.com/ http://www.sparkfun.com/ http://www.ramseyelectronics.com/ http://www.adafruit.com/ 6 2/04 JAP Basic Sources for Electronics Digikey - www.digikey.com Mouser - www.mouser.com Newark Allied Hosfelt Electronics JameCo Mat Electronics JDR All Electronics Radio Shack (mainly online now) 7 2/04 JAP Trading Modality • Sensor modes are intrinsically synaesthetic • Use physics and constraints to couple a measured quantity into an unknown – Temperature can infer wind velocity (heat loss) – Displacement can infer: • • • • • Pressure (with an elastomer or spring: F = kx) Volume of fluid in a tank (V = Ah) Velocity (2 measurements at different times: v = dx/dt) Temperature (thermometer level) Angle from vertical (displacement of a bubble) – Measurements are used with a mathematical model to derive other parameters • Estimation and Kalman Filtering, etc. – Not covered here... 8 2/04 JAP Signal Conditioning Zo i i Wants High Zi Zi Zo Io Zi Vo Wants Low Zi • Sensors produce different kinds of signals – Voltage output or current output – Can’t necessarily take sensor output and put right into microprocessor ADC or logic input – Signal may need: • High-to-low impedance buffer, current-to-voltage conversion, gain, detection, filtering, discrimination... 9 2/04 JAP The Comparator • Makes an analog signal into a 1-bit digital signal – Directly drives logic pin on microprocessor • Detects when signal is above threshold 10 2/04 JAP The Schmidt Trigger Deadband • Suppresses jitter and spurious triggering from noisy signals • Deadband thresholds, V+ and V-, can be calculated via superposition • Ground VIN, and with Rf Tand Ri asT a voltage divider on Vout , calculate the voltage at the OpAmp’s noninverting pin • Note that this assumes a low-impedance VIN (source impedance sums with Ri) 11 2/04 JAP Negative Feedback • • • • • Transimpedance Amplifier Voltage Follower Non-Inverting Amplifier Inverting Amplifier Inverting Summer 12 2/04 JAP The Voltage Follower • A unity-gain buffer to enable high-impedance sources to drive low-impedance loads 13 2/04 JAP The Non-Inverting Amplifier • Like voltage follower, but gives voltage gain – Gain can be adjusted from unity upward via resistor ratio – High-Z input is good for conditioning High-Z sensors 14 2/04 JAP The Transimpedance Amplifier • Converts a current into a voltage – Generates a proportional (w. Rf) voltage from an input current – Produces a low-impedance output that can drive a microcomputer’s A-D converter, for example 15 2/04 JAP The Inverting Amplifier • Inverts signal, voltage gain varies from zero upward with the ratio of two resistors – Extension to summer is trivial with additional Ri’s – Input impedance is not infinite: Zin = Ri 16 2/04 JAP The Summing Amplifier • No crosstalk between inputs because of virtual ground 17 2/04 JAP Biasing • AC Coupling • Biasing noninverting input • Biasing at inverting input Buffer the voltage divider’s output and use it everywhere... 18 2/04 JAP Biasing an entire circuit with a Buffered Voltage Bias Buffer AC Coupling Capacitor X11 noninverting stage X10 inverting stage AC Coupling Capacitor (decouple accumulated offset errors) X10 inverting stage A 60 dB (x1100) highimpedance, ACCoupled amplifier with bias made from a quad OpAmp 19 2/04 JAP The Simple Differential Amplifier • Subtracts two input signals – Input resistors must be equal, feedback and shunt resistors must be equal – Provides voltage gain • The input impedances aren’t equal, however – The amplifier is unbalanced! • A high-impedance sensor will produce common-mode errors (e.g., the system will be sensitive to the common voltage) • Differential sensors will be more sensitive to induced pickup signals (which tend to be high impedance) 20 2/04 JAP The Basic Instrumentation Amplifier • Buffer each leg of the differential amplifier by a voltage follower – Impedance is now extremely high at both inputs – Impedance can be set by a shunt resistor across inputs – This is a balanced “instrumentation” amplifier 21 2/04 JAP The Three-OpAmp Instrumentation Amplifier • Gain is varied by changing only one resistor, R1 – No need to re-trim other components for a gain change – Gain at first stages is better for signal/noise – This is the instrumentation amplifier of choice 22 2/04 JAP Commercial Instrumentation Amplifiers INA2321 500 kHz, 94 dB CMRR, R-R, µA sleep • • • • Analog Devices AD623 Analog Devices AD AMP01 BurrBrown (TI) INA series (INA2321) TI TLC271 Can be fairly slow, but precise DC properties, low drift, high gain, well matched 23 2/04 JAP Passive RC Filters • Passive LP Filter: RC network: fc = 1/(2πRC) -3dB = 0.707 • Passive HP filter: RC network: fc = 1/(2πRC) 24 2/04 JAP Passive RC Filter Rolloff Bode Plot: Freq. Response as a log-log plot Rolloff is 6 dB per Octave (2x) 20 dB per Decade (10x) 25 2/04 JAP The First-Order Active High Pass Filter • Low impedance drive • Voltage gain via Rf/Ri 26 2/04 JAP The First-Order Active Low Pass Filter f 27 2/04 JAP The Band-Select Filter • Cascaded high and low pass filters – Always follow high-pass with low-pass (noise) • Low-Pass cutoff needs to be below high-pass cutoff! – No Q, first-order rolloffs 28 2/04 JAP Sallen-Key Filters – Ref. Active Filter Cookbook VCVS Filters 29 2/04 JAP Multiple Feedback Bandpass Single-OpAmp VCVS BP filter 30 2/04 Fr. Active Filter Cookbook JAP Low Pass Filter Responses Response set by adjusting R’s and C’s 31 2/04 JAP Or just run an applet… • Analog Devices, etc. http://www.analog.com/en/amplifierslinear/products/dt-adisim-design-simtool/filter_wizard/resources/fca.html 32 2/04 JAP Picking an OpAmp High-Level Tree (AD) OLD 33 2/04 JAP Picking a Particular OpAmp Low-Level Tree (AD) OLD 34 2/04 JAP Picking a Particular OpAmp Interactive Parametric Search (AD) CURRENT 35 2/04 JAP Sampling • Nyquist: fin < fs/2 • Bandlimited (demodulation) sampling – Dfin < fs/2 – Loose absolute phase information • Don’t know whether phase moves forward or backward – Quadrature sampling • Bandlimited sampling at t and a quarter-period later • Form the “Analytic Signal” – I.E., the Quadrature (complex) Amplitude • Can also do this with multipliers and quadrature demodulation – Synchronous undersampling for periodic signals 36 2/04 JAP Peak Detector Vs t Vo Capacitor holds peaks! Need reset switch to continue tracking t 37 2/04 JAP Pulse Stretcher Vs C R -Resistor continually (and slowly) bleeds capacitor charge Vo e-t/RC -Automatic “reset” -Tune time constant to match signal dynamics (so peaks are always followed) -Enables “lazy” sampling to catch transients t 38 2/04 JAP Analog Multiplexers 39