Signal Conditioning: Excitation, Amplification, Filtering and Isolation
A load cell delivers to riding on of common-mode voltage, a thermocouple at the end of a long cable next to a motor, a pressure transmitter to from the other end of a plant. An ADC wants to , referenced to its own ground, band-limited below half its sample rate. Signal conditioning is everything in between: exciting the sensor, amplifying the difference and rejecting the common mode, shifting and scaling to the ADC's range, filtering, and isolating when grounds cannot be shared. This lesson assembles those blocks into a chain and builds its error budget.
The circuits themselves (op-amps, the three-op-amp instrumentation amplifier, active filters) are designed in Analog Electronics; here they are measurement blocks with specifications.
The conditioning chain
| Block | Job | Key specifications |
|---|---|---|
| excitation | power the sensor: voltage for bridges, current for RTDs, AC for LVDTs | stability, or use ratiometric measurement |
| protection | survive overvoltage, ESD and miswiring | clamp level, leakage added to the signal |
| instrumentation amplifier | amplify , reject common mode | gain accuracy, offset and drift, CMRR at the relevant frequency, input bias current, noise |
| level shift and scaling | map the sensor's span onto the ADC's input range | reference accuracy, headroom |
| anti-alias filter | remove content above before sampling | cutoff, order, passband flatness, phase |
| isolation | break the ground connection, withstand a high common-mode voltage | isolation voltage, CMTI, bandwidth, gain error |
Amplification and common-mode rejection
An instrumentation amplifier (in-amp) has two high-impedance inputs, a gain set by one resistor (the classic AD620, a three-op-amp-style in-amp, has from its laser-trimmed internal resistors; other parts use other constants, so check the datasheet), and a high common-mode rejection ratio:
The common-mode term, referred to the input, is : of CMRR turns of bridge common mode into of apparent signal. CMRR falls with frequency, so pickup on long cables is rejected less than DC. A difference amplifier built from one op-amp and four resistors has a CMRR limited by resistor matching ( resistors give only about worst case), which is why in-amps use laser-trimmed networks. The ee-analog-electronics lesson on instrumentation amplifiers derives the circuit.
Gain and bandwidth. High gain costs bandwidth: a voltage-feedback stage with gain has a closed-loop bandwidth of about . For slow sensors that is fine; for a strain gauge on a vibrating structure it may not be.
Simulation. A non-inverting stage with and has a gain of ; with a GBW op-amp its closed-loop bandwidth is . At a peak input gives about peak. Raise to and the output falls well below input; raise the input to and it clips at the rails.
Scaling, filtering and isolation
Scaling. Choose the gain so the largest expected signal uses most of the ADC range (about , leaving headroom for overload detection), and an offset so that bipolar signals fit a unipolar ADC. Every gain and reference resistor adds its tolerance and tempco to the budget; ratiometric designs (Strain Gauges) cancel the reference.
Filtering. An anti-alias filter must attenuate everything above that could fold into the band of interest by enough to fall below the resolution, which sets its order (next lesson). Its passband must be flat enough not to add gain error, and for multichannel or control systems its phase delay matters. Sigma-delta converters relax the analog filter because they oversample.
Isolation. When the sensor sits at a different potential (a shunt in a motor drive, a cell in a battery stack, a patient), or when connecting grounds would create a ground loop (Grounding and Shielding), the signal crosses an isolation barrier: an isolation amplifier, an isolated sigma-delta modulator, or a digital isolator after the ADC, with an isolated power supply for the sensor side. Specifications: working and test isolation voltage, common-mode transient immunity (CMTI, kV/µs) for switching environments, and the gain and offset error of the barrier.
Current loops. Industrial transmitters send to : a current is immune to wire resistance and most pickup, and the live zero at distinguishes "zero" from "broken wire" (below about ) and powers two-wire transmitters. The receiver reads the current across a sense resistor (commonly for to ); the loop supply must cover the transmitter's minimum voltage plus every resistance in the loop.
Worked example: a load-cell front end and its error budget
Given: a full-bridge load cell, to at common mode; an in-amp with offset , drift , CMRR , gain error , to noise (illustrative figures); output to a ADC; temperature range.
Find: the gain, , and the input-referred error budget before and after a zero calibration.
Solve: for , , with the AD620-type gain equation . Errors referred to the input:
import numpy as np
# Load-cell front end: full bridge 0..10 mV (5 V excitation, 2.5 V common mode) into an in-amp, then a 3.3 V ADC
Vfs_in, Vcm = 10e-3, 2.5
G = 3.0 / Vfs_in # leave headroom: 10 mV -> 3.0 V
Rg = 49.4e3 / (G - 1) # a common 3-op-amp in-amp: G = 1 + 49.4 kohm / Rg (AD620-type)
print(f"gain {G:.0f}, Rg = {Rg:.1f} ohm (nearest E96 value 165 ohm gives G = {1 + 49.4e3 / 165:.1f})")
# Errors referred to the input (RTI), illustrative in-amp figures
terms = {
"offset (25 C)": 50e-6,
"offset drift 1 uV/K x 20 K": 1e-6 * 20,
"CMRR 100 dB x 2.5 V": Vcm * 10 ** (-100 / 20),
"gain error 0.1 % of 10 mV": 0.001 * Vfs_in,
"noise 0.1-10 Hz, 0.3 uVpp": 0.3e-6 / 6.6, # pp to rms (~6.6 sigma for 0.1 % peak probability)
}
for k, v in terms.items():
print(f" {k:28s} {1e6 * v:7.2f} uV RTI = {100 * v / Vfs_in:6.3f} % FS")
worst = sum(terms.values())
rss = np.sqrt(sum(v**2 for v in terms.values()))
print(f" sum {1e6 * worst:.1f} uV ({100 * worst / Vfs_in:.2f} % FS), RSS {1e6 * rss:.1f} uV ({100 * rss / Vfs_in:.2f} % FS)")
left = np.sqrt(terms["offset drift 1 uV/K x 20 K"]**2 + terms["gain error 0.1 % of 10 mV"]**2)
print(f" after a zero calibration at 25 C (offset and the constant CMRR term removed): RSS {1e6 * left:.1f} uV")
# 4-20 mA loop: 24 V supply, transmitter needs at least 10 V, 250 ohm sense resistor at the receiver
Vs, Vmin, Rsense = 24.0, 10.0, 250.0
Rmax = (Vs - Vmin) / 0.020
print(f"4-20 mA: max loop resistance {Rmax:.0f} ohm incl. the {Rsense:.0f} ohm sense resistor "
f"(leaves {Rmax - Rsense:.0f} ohm for wiring); 4 mA -> {4e-3 * Rsense:.1f} V, 20 mA -> {20e-3 * Rsense:.1f} V")gain 300, Rg = 165.2 ohm (nearest E96 value 165 ohm gives G = 300.4)
offset (25 C) 50.00 uV RTI = 0.500 % FS
offset drift 1 uV/K x 20 K 20.00 uV RTI = 0.200 % FS
CMRR 100 dB x 2.5 V 25.00 uV RTI = 0.250 % FS
gain error 0.1 % of 10 mV 10.00 uV RTI = 0.100 % FS
noise 0.1-10 Hz, 0.3 uVpp 0.05 uV RTI = 0.000 % FS
sum 105.0 uV (1.05 % FS), RSS 60.2 uV (0.60 % FS)
after a zero calibration at 25 C (offset and the constant CMRR term removed): RSS 22.4 uV
4-20 mA: max loop resistance 700 ohm incl. the 250 ohm sense resistor (leaves 450 ohm for wiring); 4 mA -> 1.0 V, 20 mA -> 5.0 V
Check: the in-amp's offset alone is of full scale, so a scale without a tare (zero) button would be poor; after taring, the drift and gain error leave about , of full scale, before the load cell's own errors. A span calibration with a known weight removes most of the gain error too (Calibration). The noise term is negligible here; it would dominate in a design that needed resolution.
Guided lab: condition a thermistor for a 3.3 V ADC
Hand calculation. A NTC () in a divider with from gives at , at and at (Temperature Sensors): it already spans most of the ADC range, so it needs no gain, only a buffer (or a low source impedance for the ADC's sampling capacitor) and an RC filter.
Simulation. Use the op-amp lab in non-inverting mode with gain 1 or 2 to see how much headroom a single supply leaves (set Vs to 3, head to your op-amp's output swing).
What you would measure. Build the divider from the board's (the same supply as the ADC reference: ratiometric), add and as a filter (), and read it with a microcontroller ADC or a DMM. Expect readings within a few millivolts of the hand calculation at room temperature, about near , and that changing the supply by changes the voltage but not the ratio .
Hazards and safe setup. Board supply only (). No isolation experiments with high voltages; isolation is a design topic here.
Pitfalls
- Building a "differential amplifier" from 5 % resistors and expecting good CMRR.
- Forgetting the in-amp's input common-mode range (inputs near a rail may saturate internal nodes even if the difference is small).
- Choosing a gain that uses only a tenth of the ADC range, or one that clips on the largest real signal.
- Isolating the signal but not the sensor's power supply.
Practice
- An in-amp has and CMRR . A common-mode change appears at the output as what?
- A to loop reads . What does that indicate?
Answer
- RTI ; at the output .
- Below the live zero: a fault (broken wire, failed transmitter or a deliberate fault signal, often below by convention).
Test yourself
The common-mode error referred to the input of an amplifier is
- zero for any in-amp
Why does a 4-20 mA loop use 4 mA for zero?
- to save power
- a live zero detects broken wires and can power two-wire transmitters
- 4 mA is the ADC minimum
- to double the resolution
A gain-100 stage built with a 1 MHz GBW op-amp has a bandwidth of about
- 1 MHz
- 100 kHz
- 10 kHz
- 100 Hz
When is an isolation amplifier needed?
- whenever the signal is small
- when the sensor sits at a different, possibly high, potential or a ground loop must be broken
- for any AC signal
- only for digital signals