TExcelTAD
Home › Electrical & Electronic Measurements › Signal Conditioning: Excitation, Amplification, Filtering and Isolation

Signal Conditioning: Excitation, Amplification, Filtering and Isolation

A load cell delivers 00 to 10 mV10\ \text{mV} riding on 2.5 V2.5\ \text{V} of common-mode voltage, a thermocouple 40 μV/K40\ \mu\text{V/K} at the end of a long cable next to a motor, a pressure transmitter 44 to 20 mA20\ \text{mA} from the other end of a plant. An ADC wants 00 to 3.3 V3.3\ \text{V}, 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

sensor bridge, RTD protection clamp, RC in-amp gain, CMRR scale/shift to ADC range anti-alias low-pass isolation optional ADC ref excitation ratiometric: excitation also used as the ADC reference
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 v+−v−v_+ - v_-, 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 fs/2f_s/2 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 G=1+49.4 kΩ/RGG = 1 + 49.4\ \text{k}\Omega/R_G from its laser-trimmed internal resistors; other parts use other constants, so check the datasheet), and a high common-mode rejection ratio:

vo=G (v+−v−)+G vcmCMRR,CMRRdB=20log⁡10CMRRv_o = G\,(v_+ - v_-) + \frac{G\,v_\text{cm}}{\text{CMRR}}, \qquad \text{CMRR}_\text{dB} = 20\log_{10}\text{CMRR}

The common-mode term, referred to the input, is vcm/CMRRv_\text{cm}/\text{CMRR}: 100 dB100\ \text{dB} of CMRR turns 2.5 V2.5\ \text{V} of bridge common mode into 25 μV25\ \mu\text{V} of apparent signal. CMRR falls with frequency, so 50 Hz50\ \text{Hz} 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 (0.1 %0.1\,\% resistors give only about 54 dB54\ \text{dB} 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 GG has a closed-loop bandwidth of about GBW/G\text{GBW}/G. For slow sensors that is fine; for a strain gauge on a vibrating structure it may not be.

Simulation. A non-inverting stage with Rin=1 kΩR_\text{in} = 1\ \text{k}\Omega and Rf=100 kΩR_f = 100\ \text{k}\Omega has a gain of 101101; with a 1 MHz1\ \text{MHz} GBW op-amp its closed-loop bandwidth is 9.9 kHz9.9\ \text{kHz}. At 1 kHz1\ \text{kHz} a 20 mV20\ \text{mV} peak input gives about 2 V2\ \text{V} peak. Raise ff to 20 kHz20\ \text{kHz} and the output falls well below 101×101 \times input; raise the input to 0.2 V0.2\ \text{V} and it clips at the rails.

-+voutRfRinvingain falling (above f_CL/10)ideal gain101.00 V/VfCL (-3 dB)9.90 kHz|A(f)| linear100.489 V/Vout pk wanted2.01 Vrail limit+/-11.00 V2 pi f Vpk needs0.013 V/usSR available0.50 V/ussupply+/-12.0 V-100100T/2T3T/22TVf = 1.00 kHz+VS-VSvinvoutideal gain x vin

Scaling, filtering and isolation

Scaling. Choose the gain so the largest expected signal uses most of the ADC range (about 90 %90\,\%, 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 fs/2f_s/2 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 44 to 20 mA20\ \text{mA}: a current is immune to wire resistance and most pickup, and the live zero at 4 mA4\ \text{mA} distinguishes "zero" from "broken wire" (below about 3.6 mA3.6\ \text{mA}) and powers two-wire transmitters. The receiver reads the current across a sense resistor (commonly 250 Ω250\ \Omega for 11 to 5 V5\ \text{V}); 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, 00 to 10 mV10\ \text{mV} at 2.5 V2.5\ \text{V} common mode; an in-amp with offset 50 μV50\ \mu\text{V}, drift 1 μV/K1\ \mu\text{V/K}, CMRR 100 dB100\ \text{dB}, gain error 0.1 %0.1\,\%, 0.10.1 to 10 Hz10\ \text{Hz} noise 0.3 μVpp0.3\ \mu\text{V}_\text{pp} (illustrative figures); output to a 3.3 V3.3\ \text{V} ADC; ±20 K\pm 20\ \text{K} temperature range.

Find: the gain, RGR_G, and the input-referred error budget before and after a zero calibration.

Solve: for 10 mV→3.0 V10\ \text{mV} \to 3.0\ \text{V}, G=300G = 300, with the AD620-type gain equation RG=49.4 kΩ/299=165.2 ΩR_G = 49.4\ \text{k}\Omega/299 = 165.2\ \Omega. Errors referred to the input:

python · try it yourself
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 0.5 %0.5\,\% of full scale, so a scale without a tare (zero) button would be poor; after taring, the drift and gain error leave about 22 μV22\ \mu\text{V}, 0.22 %0.22\,\% 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 0.001 %0.001\,\% resolution.

Guided lab: condition a thermistor for a 3.3 V ADC

Hand calculation. A 10 kΩ10\ \text{k}\Omega NTC (B=3950 KB = 3950\ \text{K}) in a divider with 10 kΩ10\ \text{k}\Omega from 3.3 V3.3\ \text{V} gives 2.54 V2.54\ \text{V} at 0 ∘C0\,^\circ\text{C}, 1.65 V1.65\ \text{V} at 25 ∘C25\,^\circ\text{C} and 0.87 V0.87\ \text{V} at 50 ∘C50\,^\circ\text{C} (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 3.3 V3.3\ \text{V} 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 3.3 V3.3\ \text{V} (the same supply as the ADC reference: ratiometric), add 1 kΩ1\ \text{k}\Omega and 1 μF1\ \mu\text{F} as a filter (fc=159 Hzf_c = 159\ \text{Hz}), and read it with a microcontroller ADC or a DMM. Expect readings within a few millivolts of the hand calculation at room temperature, about −37 mV/K-37\ \text{mV/K} near 25 ∘C25\,^\circ\text{C}, and that changing the supply by 5 %5\,\% changes the voltage but not the ratio V/VrefV/V_\text{ref}.

Hazards and safe setup. Board supply only (3.3 V3.3\ \text{V}). 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

  1. An in-amp has G=100G = 100 and CMRR =90 dB= 90\ \text{dB}. A 1 V1\ \text{V} common-mode change appears at the output as what?
  2. A 44 to 20 mA20\ \text{mA} loop reads 3.1 mA3.1\ \text{mA}. What does that indicate?
Answer
  1. RTI 1 V/31 623=31.6 μV1\ \text{V}/31\,623 = 31.6\ \mu\text{V}; at the output 3.16 mV3.16\ \text{mV}.
  2. Below the live zero: a fault (broken wire, failed transmitter or a deliberate fault signal, often below 3.6 mA3.6\ \text{mA} by convention).

Test yourself

The common-mode error referred to the input of an amplifier is

  1. vcm×CMRRv_\text{cm} \times \text{CMRR}
  2. vcm/CMRRv_\text{cm}/\text{CMRR}
  3. G vcmG\,v_\text{cm}
  4. zero for any in-amp

Why does a 4-20 mA loop use 4 mA for zero?

  1. to save power
  2. a live zero detects broken wires and can power two-wire transmitters
  3. 4 mA is the ADC minimum
  4. to double the resolution

A gain-100 stage built with a 1 MHz GBW op-amp has a bandwidth of about

  1. 1 MHz
  2. 100 kHz
  3. 10 kHz
  4. 100 Hz

When is an isolation amplifier needed?

  1. whenever the signal is small
  2. when the sensor sits at a different, possibly high, potential or a ground loop must be broken
  3. for any AC signal
  4. only for digital signals