5.sensors and Signal Conditioning
5.sensors and Signal Conditioning
12/15/2024 [email protected] 1
Outline
• Basics of Sensors
• Sensor Characteristics and Classification
• Sensing Principles
• Automotive Sensors
• Actuators
• Electromechanical Actuators
• Electro-Hydraulic Actuators
• Non-mechanical actuators
12/15/2024 [email protected] 2
What is a Sensor?
• "A device which provides a usable output in response to a specified
measure" - American National Standards Institute (ANSI)
• Acquires a physical quantity/stimulus and converts into a usable signal
– mostly electrical
12/15/2024 [email protected] 3
Physical Quantities/Stimuli
12/15/2024 [email protected] 4
Electrical Response
• When we say electrical we mean a signal which can be channeled,
amplified, and modified by electronic devices:
• Voltage
• Current
• Charge
• Frequency
• Period / Pulse Width
• Resistance / Capacitance / Inductance
12/15/2024 [email protected] 5
Sensors as Energy Converters
• Example:
• A chemical sensor may have a part which converts the energy of a chemical
reaction into heat (transducer) and another part, a thermopile, which
converts heat into an electrical signal
12/15/2024 [email protected] 6
Characteristics of Sensors
• Range
• Accuracy
• Precision / Reproducability / Repeatability
• Sensitivity
• Linearity
• Hysterisis
• Resolution
• Response Time
12/15/2024 [email protected] 7
Fields of applications of Sensors
12/15/2024 [email protected] 8
Computer Process Control System
12/15/2024 [email protected] 9
Signal Conditioning
• Filter for expected frequency regime
• Subtract DC offset (“zeroing”)
• Amplify or attenuate signal (“scaling”)
• "Linearize" relationship between measured and observed electrical
parameter
• Analog-to-Digital (and Digital-to-Analog) conversion
12/15/2024 [email protected] 10
Analog-to-Digital Conversion
• Sampling – converts the continuous signal into a series of discrete
analog signals at periodic intervals
• Quantization – each discrete analog is converted into one of a finite
number of (previously defined) discrete amplitude levels
• Encoding – discrete amplitude levels are converted into digital code
12/15/2024 [email protected] 11
Features of an ADC
• Sampling rate – rate at which continuous analog signal is polled
(e.g., 1000 samples/sec)
• Quantization – divide analog signal into discrete levels
• Resolution – depends on number of quantization levels
• Conversion time – how long it takes to convert the sampled signal
to digital code
• Conversion method – means by which analog signal is encoded
into digital equivalent
• Example: Flash ADC, Dual Slope, Successive approximation
12/15/2024 [email protected] 12
Successive Approximation Method
• A series of trial voltages are successively compared to the
input signal whose value is unknown
• Number of trial voltages = number of bits used to encode
the signal
• First trial voltage is 1/2 the full scale range of the ADC
• If the remainder of the input voltage exceeds the trial
voltage, then a bit value of 1 is entered, if less than trial
voltage then a bit value of zero is entered
• The successive bit values, multiplied by their respective trial
voltages and added, becomes the encoded value of the input
signal
Example
• Analogue signal is 6.8 volts. Encode, using SAM, the signal for a 6
bit register with a full scale range of 10 volts.
Example
(2) Resolution:
= 60 / 65,536 = ~ 0.00092 Volts
E0 Eref 0.5 B1 0.25 B2 2
n 1
Bn
Where E0 is output voltage; Eref is reference voltage; Bn is status of successive
bits in the binary register
Example
• A DAC has a reference voltage of 100 V and has 6-bit
precision. Three successive sampling instances 0.5 sec
apart have the following data in the data register:
Instant Binary Data
1 101000
2 101010
• Output Values: 3 101101
E01 = 100{0.5(1)+0.25(0)+0.125(1)+0.0625(0)+0.03125(0)+0.015625(0)}
E01 = 62.50V
E02 = 100{0.5(1)+0.25(0)+0.125(1)+0.0625(0)+0.03125(0)+0.015625(0)}
E02 = 65.63V
E03 = 100{0.5(1)+0.25(0)+0.125(1)+0.0625(0)+0.03125(0)+0.015625(0)}
Circuits for DAC – Weighted Resistor
Circuits for DAC – R-2R Ladder
Circuits for DAC – Filtered PWM
https://www.edn.com/cancel-pwm-dac-ripple-with-analog-subtraction/
Sensor Classification
• By characteristic curve
• Continuous linear
• Continuous non-linear
• Discontinous multi-step
• Discontinous two-step
12/15/2024 [email protected] 23
Sensor Classification
• Analog signals
• Current/voltage, or a corresponding amplitude
• Frequency/period duration
• Pulse duration/pulse duty factor
• Discrete output signal
• Two-step (binary coded).
• Multi-step, with irregular steps (analog coded).
• Multi-step equidistant (analog or digital coded).
12/15/2024 [email protected] 24
Errors in Sensors
• Correctable errors
12/15/2024 [email protected] 26
Integrated/Smart Sensors
• Associated local electronics to increase accuracy
12/15/2024 [email protected] 27
Physical Principles of Sensors
12/15/2024 [email protected] 28
Capacitor
12/15/2024 [email protected] 29
Capacitor as Displacement Sensor
• If the inner conductor can be moved in and out, the
measured capacitance will be a function of l
12/15/2024 [email protected] 30
Capacitance in an Accelerometer
12/15/2024 [email protected] 31
Magnetism
• There are two methods of generating a magnetic field:
• permanent magnets (magnetic materials)
• magnetic field generated by a current
Magnetic field, B
“flux” is the field density, B
12/15/2024 [email protected] 32
Magnetic fields
Magnets are useful for fabricating magnetic sensors for the detection of motion,
displacement, and position.
[email protected]
12/15/2024 33
Induction
• A phenomenon related to magnetism is induction, the generation of voltage from
a changing magnetic field
• If the coil has no magnetic core, the flux is proportional to current and the voltage
proportional to di/dt
12/15/2024 [email protected] 34
Resistance
• If we apply a battery across two points of a piece of material, an electric
field will be set up where E=V/l
12/15/2024 [email protected] 35
Temperature measurement
• To Temperature:
Specific resistivity of tungsten
as a function of temperature.
12/15/2024 [email protected] 36
Piezoelectric Sensor
12/15/2024 [email protected] 37
Signal Conditioning
• Basic Sensor Signal Chain
• Sensing element outputs can be either voltage, current, or frequency-based
• Basic signal path consists of the sensing element, signal conditioning
circuitry, and a processor
Why signal conditioning?
• Analog signal conditioning needs vary by sensor
• signals must be clean and band-limited
• Anti-Aliasing Filter needed
• Sensor signals are often weak in amplitude
• Some conditioning may be needed for interfacing with ADC
• Amplification needed
• Level-shifter may be needed
• ADC power supply and voltage reference considerations
• All components are mostly OPAMP-based.
Operational Amplfier
Operational Amplifiers take small voltages and make
them MUCH larger.
Gain = - R2 / R1
Non-Inverting Gain Amplifier
Gain = (1 + R2 / R1)
Summing Amplfier
Differential Amplifier
• When signal conditioning and processing blocks are remotely located, or
placed in a noisy environment, single-ended amps are not so accurate
• Differential Amplifiers are used
• Also used for Wheatstone Bridge sensors
• More discrete components used
• Key requirements: large CMRR, small offset
• Example systems: Pressure sensors, Thermocouples
Difference Amplfier
Instrumentation Amplifier
• Type of differential amplifier with desired characteristics for
measurement systems
• Can be designed using op amps, or specialized Instrumentation
Amplifier ICs can be used
• Very low offset, drift and noise
• Very high gain, input impedance
• High CMRR across frequency, to reject supply noise
• Several possible configurations
• Two op-amp or three op-amp
• Single power-supply or dual power-supply
Two Op-Amp Instrumentation Amplifiers
Three Op-Amp Instrumentation Amplifiers
Examples – Dual Power Supply Thermocouple
Interface
Examples – Single Power Supply
Thermocouple Interface
Programmable Gain Amplifiers
• A specialized amplifier IC with multiplexed multiple inputs and
programmable gain
• Ideal for interfacing with multiple sensors
• Ideal for non-linear sensors, e.g. thermistor
• Gain can be adjusted for non-linearities
• Example: MCP6SX2
• Digital control of gain (1x - 32x) using SPI
• Up to 8 inputs, multiplexed using SPI
• External V REF pin centers amplified signal
Thermistor interfacing using PGA
Other Amplifier Types
• Transimpedance Amplifier
• Converts current to voltage
• Used for high-impedance sensors that generate current outputs,
• e.g. Photodiode or CCD
• Constant voltage bias due to “virtual short”
• Isolation Amplifier
• Avoids direct electrical connection between a high-voltage sensor and rest
of the system
• Avoids high voltages in rest of the system from entering sensor, e.g. in an
ECG or EEG
Example: Photodiode Interface
• the sensor element, in this case a
Photodiode D1, is connected across
the two inputs of the op-amp,
• the resultant output voltage, labeled
Vout, is directly proportional to the
current through D1, which is in turn
proportional to the light intensity
being measured
ADC Interfacing Considerations
• Proper decoupling of voltage rails using capacitors improves accuracy
• Amplified sensor output might contain offset that must be subtracted
from ADC conversions in software
• Using external voltage references often yields higher conversion
accuracy
• Reference identical to supply provides best results
• If ADC is unipolar, level of signal must be shifted up to be all-positive
• e.g. from [-1.65V, +1.65V] range to [0V, 3.3V] range
• Current output may not be enough for ADC input
• Need buffer amplifier to increase dive strength
Level Shifter and Buffer Amplifier
12/15/2024 [email protected] 66
Current Sensor
• Current Sensor
Converted to Voltage to be measured
Sensing element is a resistor or inductor
• Simple Resistive sensing
insert a resistor in the path of current to be sensed
Placed in series with voltage measuring circuit
Power loss to be minimized (low R, low Temp. Coeff)
Pros: Low cost, for AC/DC currents, low current can be measured
Cons: Adds a resistance (loading effect), loss of power
12/15/2024 [email protected] 67
Resistive Current Sensor
• Methods of Sensing
Direct
voltage is generated across the shunt resistor that is proportional to the system
load current (Ohm’s Law)
shunt resistor value is less than 50 mΩ, and in a number of cases it can fall
below 1 mΩ
measured by differential amplifiers, for example, current shunt amplifiers,
operational amplifiers or difference amplifiers
Less than 100A
Indirect
Uses Faraday or Ampere’s Law
puts a loop around a current-carrying conductor, a voltage is induced over the
loop that is proportional to the current
Used for high currents, large footprint (magnetic elements)
12/15/2024 [email protected] 68
Resistive Current Sensor
• Low Side Sensing
connects the sensing resistor between
the load and ground
Single Supply, Rail-Rail opamps.
Common Mode voltage near ground
Sense amplifier should consider the
common mode voltage vs supply
voltage
Issues: disturbances to the system
load’s ground potential and the
inability to detect load shorts.
12/15/2024 [email protected] 69
Resistive Current Sensor
• High Side Sensing
sensing resistor between the power
supply and load
directly monitors the current delivered
by the supply, which considers the
identification of load shorts
12/15/2024 [email protected] 70
Resistive Current Sensor
• OPAMP
Discrete, Lower accuracy
Only low side as single ended
Parasitic resistances are an issue
• DiffAmp
eliminate parasitic impedance errors
Low gain, used as buffer
• Instrumentation Amp
combine a difference amplifier with two buffers, one on each input
large input impedance, making it possible to measure very small
currents
common-mode voltage should fall within the supply voltage range.
• Current Sense Amp
high-precision, low-drift gain network that maximizes measurement
accuracy
can be exposed to common-mode voltages that are significantly
higher than the supply voltage
12/15/2024 [email protected] 71
• Will the measurement be on the high or low side?
73
Strain Gauges
• Foil strain gauge
• Least expensive
• Widely used
• Not suitable for long distance
• Electromagnetic Interference
• Sensitive to moisture & humidity
12/15/2024 [email protected] 75
Temperature
• Used in potential divider or wheatstone
configuration
• Supply current must be constant
• Current through thermistor should be
negligible
• used as sensors for - Air intake, Battery,
Engine and transmission temperature, Air
conditioning and internal/external,
environmental temperature, Oil and gas
temperatures.
12/15/2024 [email protected] 76
Wheatstone Bridge to measure unknown
resistance
12/15/2024 [email protected] 83
Position Sensor
• The positions sensors are generally speed sensors
of different working principle used for detecting
the position of different parameters.
• Parameters Measured,
• Crankshaft Position Sensor
• Camshaft Position Sensor
• ABS Wheel Sensors
• Vehicle Speed Sensor
• Working Principles used: 1. Magnetic Reluctance
(Variable Reluctance) type 2. Hall Effect type 3.
Optical Type
12/15/2024 [email protected] 84
Crankshaft / Camshaft Sensor
12/15/2024 [email protected] 85
Throttle Position Sensor
• Capacitive accelerometer
• Good performance over low frequency range, can measure
gravity!
• Heavier (~ 100 g) and bigger size than piezoelectric
accelerometer
• Measurement range up to +/- 200 g
• More expensive than piezoelectric accelerometer
• Sensitivity typically from 10 – 1000 mV/g
• Frequency bandwidth typically from 0 to 800 Hz
• Operating temperature: -65 – 120 C
• Linear Potentiometer
• Resolution (infinite), depends on?
• High frequency bandwidth (> 10 kHz)
• Fast response speed
• Velocity (up to 2.5 m/s)
• Low cost Photo courtesy of Duncan Electronics
Standard
Type of Construction
tubular
by 8mm
Fixing Mode
diameter
Total Measuring Range 2(+/-1)mm
Pneumatic Retraction No
Repeatability 0.1um
Operating -10 to +65 Courtesy of Microstrain, Inc.
• Shock Accelerometer
• Measurement range up to +/- 70,000 g
• Frequency bandwidth typically from 0.5 – 30
kHz at -3 dB
• Operating temperature: -40 to 80 C
• Light (weighs ~ 5 g)
Angular Motion Sensing (Tilt Meter)