---
title: Sensor front ends
heading: Bridges, capacitive sensing and noise matching: getting a weak sensor signal into an ADC intact
eyebrow: S2 · Lesson 32 · Sensor front ends
xp: 50
---

::: hook
A strain gauge changes its resistance by a part in a thousand; a MEMS accelerometer's capacitance changes by femtofarads; a thermocouple gives tens of microvolts per degree. The circuits of lessons 29 to 31, low-noise amplification and chopping, exist to read signals like these. This lesson puts them to work: how a bridge turns a tiny resistance change into a voltage, how a charge amplifier reads a capacitance, why measuring ratiometrically against the excitation removes the excitation's own drift, and how to choose an amplifier whose noise matches the sensor's impedance.
:::

::: play
- The noise figure of an amplifier with input voltage noise $e_n$ = 4 nV/√Hz and current noise $i_n$ against source resistance $R_s$, at 300 K: $F = 1 + (e_n^2 + i_n^2R_s^2)/(4kTR_s)$.
- Voltage noise dominates for small sources, current noise for large ones. The minimum sits at $R_{opt} = e_n/i_n$, where $F_{min} = 1 + e_ni_n/(2kT)$.
:::

```sim plot
view: graph
x: R = 10..1e7 log
y: NF = 0..30
slider: i = 0.01..10 = 1 log
plot: 10*log(1 + ((4e-9)^2 + (i*1e-12*R)^2)/(4*1.380649e-23*300*R)) | samples: 800 | label: noise figure, dB
readout: optimum source resistance, kΩ = 4e-9/(i*1e-12)/1e3
readout: minimum noise figure, dB = 10*log(1 + 4e-9*i*1e-12/(2*1.380649e-23*300))
```

::: predict
## A quarter-bridge strain gauge (gauge factor 2, 350 Ω) with 5 V excitation sees 1000 microstrain. About what output does the bridge give?

- [ ] 10 mV
- [x] 2.5 mV
- [ ] 0.25 mV
- [ ] 5 mV

::: reveal
The gauge's resistance changes by $2 \times 10^{-3}$, and a quarter bridge outputs $V\Delta R/(4R)$ = $5 \times 0.002/4$ = 2.5 mV. Four active gauges in a full bridge give four times as much, 10 mV, and cancel temperature effects too. Either way the signal is millivolts riding on a 2.5 V common mode, a job for an instrumentation amplifier.
:::
:::

::: nameit
## Resistive bridges

A Wheatstone bridge excited by $V$ with one active element $R(1 + x)$ gives, for small $x$,

$$V_{out} \approx \frac{V}{4}x \quad \text{(quarter)}, \qquad \frac{V}{2}x \quad \text{(half)}, \qquad Vx \quad \text{(full)}$$

The output is proportional to the excitation, so a drifting excitation looks like a changing signal. **Ratiometric measurement** feeds the same excitation to the ADC's reference: the ADC's code is then $V_{out}/V_{ref}$, and the excitation cancels.

## Capacitive sensors

A sensor capacitance changing by $\Delta C$ under an excitation step $V_{exc}$ moves a charge $\Delta C\,V_{exc}$; a charge amplifier with feedback capacitor $C_f$ turns that into $V_{out} = \Delta C\,V_{exc}/C_f$. Switched versions of this, **capacitance-to-digital converters**, resolve attofarads. Shields driven at the sensor's potential (guarding) keep cable capacitance out of the measurement.

## Noise matching

An amplifier with input voltage noise $e_n$ and current noise $i_n$, fed by a source $R_s$ whose own noise is $\sqrt{4kTR_s}$, has noise factor

$$F = 1 + \frac{e_n^2 + i_n^2R_s^2}{4kTR_s}$$

minimized at $R_{opt} = e_n/i_n$ with $F_{min} = 1 + e_ni_n/(2kT)$. Bipolar inputs have low $e_n$ and higher $i_n$, suiting low-impedance sources such as bridges and thermocouples; JFET and CMOS inputs have tiny $i_n$, suiting high-impedance sources such as photodiodes and piezoelectric sensors. A transformer can scale a source's impedance toward $R_{opt}$.

## Low-frequency errors

Below a few hertz, 1/f noise and offset drift dominate, which is why sensor amplifiers chop or auto-zero (lesson 31), and why bridges are sometimes excited with AC and demodulated.
:::

::: example
## A 350 Ω strain gauge with gauge factor 2 sees 1000 µε in a quarter bridge with 5 V excitation. Find the output, and compare a full bridge.

::: solution
1. **Fractional change.** Gauge factor times strain gives $x = 2 \times 10^{-3}$.
2. **Quarter bridge.**
   $$\begin{aligned} V_\text{out} &= \frac{5\ \text{V} \times 0.002}{4} \\ &= 2.5\ \text{mV} \end{aligned}$$
3. **Full bridge.** Four active arms give four times as much, 10 mV.
4. **Arm current.**
   $$\frac{5\ \text{V}}{700\ \Omega} = 7.1\ \text{mA}$$
5. **Self-heating.** Each gauge heats by
   $$\frac{(2.5\ \text{V})^2}{350\ \Omega} = 18\ \text{mW}$$
   Higher excitation raises the signal but self-heating limits it, which is why ratiometric measurement and high gain are preferred to more volts.

**Answer:** the quarter bridge gives 2.5 mV and a full bridge 10 mV.
:::
:::

::: example
## An amplifier has $e_n$ = 4 nV/√Hz and $i_n$ = 1 pA/√Hz. What source resistance gives the lowest noise figure, and what is it?

::: solution
1. **Optimum source resistance.**
   $$\begin{aligned} R_{opt} &= \frac{e_n}{i_n} \\ &= 4\ \text{k}\Omega \end{aligned}$$
2. **Thermal energy.** The minimum noise factor is $1 + e_ni_n/2kT$, with
   $$\begin{aligned} 2kT &= 2 \times 1.381 \times 10^{-23} \times 300 \\ &= 8.29 \times 10^{-21}\ \text{J} \end{aligned}$$
3. **Minimum noise figure.**
   $$\begin{aligned} F_{min} &= 1 + \frac{(4 \times 10^{-9})(10^{-12})}{8.29 \times 10^{-21}} \\ &= 1.48 \end{aligned}$$
   a noise figure of 1.71 dB.
4. **From a 350 Ω bridge.** The voltage noise dominates and the noise figure is higher, though the absolute noise, about 4.7 nV/√Hz in total with the bridge's own thermal noise, is still excellent.

**Answer:** a 4 kΩ source gives the lowest noise figure, 1.71 dB (F = 1.48).
:::
:::

::: example
## A MEMS sensor's capacitance changes by 10 fF. With a 3.3 V excitation step and a 1 pF feedback capacitor, what does the charge amplifier output? What feedback capacitor gives 100 mV?

::: solution
1. **Output for 10 fF.**
   $$\begin{aligned} V_{out} &= \frac{10\ \text{fF} \times 3.3\ \text{V}}{1\ \text{pF}} \\ &= 33\ \text{mV} \end{aligned}$$
2. **Feedback capacitor for 100 mV.**
   $$\begin{aligned} C_f &= \frac{10\ \text{fF} \times 3.3}{0.1} \\ &= 0.33\ \text{pF} \end{aligned}$$
3. **The cost.** Smaller feedback capacitors give more gain but more sensitivity to their own parasitics and to the amplifier's noise gain, $1 + C_{sensor}/C_f$.

**Answer:** the output is 33 mV, and a 0.33 pF feedback capacitor gives 100 mV.
:::
:::

::: check
given: GF = 2 | 2.1; e = 100 | 500 | 2000; V = 2.5 | 5 | 10; k = 2 | 4
answer: V*GF*e*1e-6*k/4*1e3
unit: mV
tolerance: 0.5%

## A bridge with {k} active strain gauges (gauge factor {GF}, arranged to add) sees {e} µε with {V} V excitation. What is its output?

::: right
Right. $Vkx/4$ with $x = GF \cdot \varepsilon$: {answer}.
:::

::: misses
- [V*GF*e*1e-6/4*1e3] Each active gauge adds: multiply by {k}.
- [V*GF*e*1e-6*k*1e3] Each gauge contributes $Vx/4$.
- [any] Not yet. $V_{out} = kVx/4$.
:::
:::

::: check
given: en = 1 | 4 | 10; in = 0.01 | 1 | 5
answer: en*1e-9/(in*1e-12)
unit: Ω
tolerance: 0.5%

## An amplifier has {en} nV/√Hz of voltage noise and {in} pA/√Hz of current noise. What source resistance minimizes its noise figure?

::: right
Right. $R_{opt} = e_n/i_n$ = {answer}.
:::

::: misses
- [in*1e-12/(en*1e-9)] It's voltage noise over current noise.
- [(en*1e-9/(in*1e-12))^2] It's the ratio itself, not squared.
- [any] Not yet. $R_{opt} = e_n/i_n$.
:::
:::

::: check
given: en = 1 | 4 | 10; in = 0.01 | 1 | 5
answer: 10*log(1 + en*1e-9*in*1e-12/(2*1.380649e-23*300))
tolerance: 1%

## What is the minimum noise figure, in dB, of an amplifier with {en} nV/√Hz and {in} pA/√Hz at 300 K?

::: right
Right. $10\log_{10}(1 + e_ni_n/(2kT))$ = {answer} dB.
:::

::: misses
- [10*log(1 + en*1e-9*in*1e-12/(4*1.380649e-23*300))] At the optimum the two amplifier terms are equal and add: $e_ni_n/(2kT)$.
- [20*log(1 + en*1e-9*in*1e-12/(2*1.380649e-23*300))] Noise figure is a power ratio: 10 log.
- [any] Not yet. $F_{min} = 1 + e_ni_n/(2kT)$.
:::
:::

::: check
kind: parts
given: dC = 1 | 10 | 50; V = 1.8 | 3.3; Cf = 0.2 | 1 | 2; Cs = 5 | 20

## A capacitive sensor of {Cs} pF changes by {dC} fF, read by a charge amplifier with a {Cf} pF feedback capacitor and a {V} V excitation step.

::: part
answer: dC*1e-15*V/(Cf*1e-12)*1e3
unit: mV
tolerance: 0.5%

### What output step does the change produce?

::: misses
- [dC*1e-15*V/(Cs*1e-12)*1e3] Divide by the feedback capacitor, not the sensor's.
- [any] Not yet. $\Delta C\,V_{exc}/C_f$.
:::
:::

::: part
answer: 1 + Cs/Cf
tolerance: 0.5%

### What noise gain does the amplifier's own voltage noise see?

::: misses
- [Cs/Cf] Include the 1: noise gain is $1 + C_s/C_f$.
- [any] Not yet. $1 + C_{sensor}/C_f$.
:::
:::

::: right
Right. A small feedback capacitor gives signal gain, but the sensor's large capacitance amplifies the amplifier's noise even more.
:::
:::

::: check
given: x = 0.05 | 0.1 | 0.2
answer: (1 + x)/(2 + x) - 0.5
tolerance: 0.5%

## A quarter bridge's active arm changes by a fraction {x}. What is the exact output as a fraction of the excitation, $(1 + x)/(2 + x) - \frac12$?

::: right
Right. {answer}, slightly less than the linear $x/4$: quarter bridges are slightly nonlinear for large changes.
:::

::: misses
- [x/4] That's the small-change approximation; compute it exactly.
- [any] Not yet. Evaluate $(1 + x)/(2 + x) - \tfrac12$.
:::
:::

::: check
kind: choice

## Why does ratiometric measurement, using the bridge's excitation as the ADC's reference, remove excitation drift from the result?

- [x] The bridge output and the reference both scale with the excitation, so their ratio, which is what the ADC reports, doesn't depend on it
- [ ] The ADC compensates drift with internal calibration
- [ ] It halves the drift
- [ ] It filters the excitation's noise with the ADC's anti-aliasing filter

::: right
Right. The ADC's code is $V_{in}/V_{ref}$; with both proportional to the excitation, a 1% sag in it changes nothing.
:::

::: misses
- [2] Calibration can't track drift that happens between calibrations; the ratio cancels it continuously.
- [3] It cancels the drift completely, not by half.
- [4] Filtering doesn't remove a slow drift in the excitation's level.
:::
:::

::: check
kind: python
given: Rs = 50 | 350 | 10000 | 1000000

## Pick an op amp for a sensor. With source resistance `Rs` = {Rs} Ω at 300 K, compute each amplifier's total input-referred noise density $\sqrt{e_n^2 + (i_nR_s)^2 + 4kTR_s}$ for these parts, given as (name, $e_n$ in nV/√Hz, $i_n$ in pA/√Hz): ('bipolar', 1, 2), ('jfet', 6, 0.003), ('cmos', 15, 0.0005), ('chopper', 20, 0.1). Set `best` to the name with the lowest total, and `totals` to a dict of totals in nV/√Hz.

```python starter
best = 'bipolar'
totals = {}
```

```python solution
import math
k, T = 1.380649e-23, 300
parts = [('bipolar', 1, 2), ('jfet', 6, 0.003), ('cmos', 15, 0.0005), ('chopper', 20, 0.1)]
totals = {}
for name, en, inn in parts:
    totals[name] = math.sqrt((en * 1e-9) ** 2 + (inn * 1e-12 * Rs) ** 2 + 4 * k * T * Rs) * 1e9
best = min(totals, key=totals.get)
```

```python tests
import math
k, T = 1.380649e-23, 300
ref = {n: math.sqrt((e * 1e-9) ** 2 + (i * 1e-12 * Rs) ** 2 + 4 * k * T * Rs) * 1e9 for n, e, i in [('bipolar', 1, 2), ('jfet', 6, 0.003), ('cmos', 15, 0.0005), ('chopper', 20, 0.1)]}
for n in ref:
    assert abs(totals[n] - ref[n]) < 1e-9 * ref[n], f"{n}: total should be {ref[n]:.4f} nV/√Hz."
assert best == min(ref, key=ref.get), f"The quietest choice is {min(ref, key=ref.get)}."
```

::: right
Right. Low-impedance sources favor bipolar inputs; megohm sources favor FET inputs, whose current noise is a thousand times lower.
:::
:::

::: explain
## A load cell's reading drifts by 0.3% over an afternoon, and the drift tracks the room temperature. The bridge is excited from a 5 V regulator and read by an ADC with its own 2.5 V internal reference. Explain the likely cause and the fix.

::: model
The bridge output is proportional to its excitation, and the ADC compares it with an independent internal reference. If the 5 V regulator and the 2.5 V reference drift differently with temperature, the ratio between excitation and reference changes, and the reading changes with it, even though the load hasn't. A drift of 0.3% corresponds to a regulator and reference mismatch of a few tens of ppm per degree over ten or so degrees. The fix is ratiometric measurement: derive the ADC's reference from the same excitation (for example, through a divider), so the code depends only on the bridge's ratio. Self-heating of the gauges and the amplifier's offset drift can contribute too, which chopping and full-bridge temperature compensation address.
:::
:::

::: practice

::: check
given: V = 3.3 | 10; e = 250 | 1500
answer: V*2*e*1e-6/4*1e3
unit: mV
tolerance: 0.5%

## A quarter bridge (gauge factor 2) with {V} V excitation sees {e} µε. What is its output?

::: misses
- [V*2*e*1e-6*1e3] A quarter bridge gives $Vx/4$.
- [any] $V \cdot GF \cdot \varepsilon/4$.
:::
:::

::: check
given: dC = 2 | 20; Cf = 0.5 | 2
answer: dC*1e-15*3.3/(Cf*1e-12)*1e3
unit: mV
tolerance: 0.5%

## A {dC} fF change, 3.3 V excitation, {Cf} pF feedback: what charge-amplifier output?

::: misses
- [any] $\Delta C\,V/C_f$.
:::
:::
:::
