Single-Supply Half-Bridge Strain-Gauge Circuit
A full mixed-signal investigation: modelling a strain gauge in LTspice (which has no such element), building it into single- and dual-complementary half-bridges, then designing a single-supply AD8220 instrumentation-amplifier front end — gain, reference and all — to scale a ±37.5 mV bridge signal into a clean 0.6–4.4 V range an ADC can read.
The problem: a signal that starts as a few millivolts
A strain gauge turns mechanical deformation into a tiny change in resistance. Put it in a bridge and, for the strains in this lab, you get a differential signal of at most a few tens of millivolts — riding on a large common-mode voltage. The whole exercise is two halves: model the sensor faithfully in simulation, then design the electronic interface that scales that millivolt signal up into a clean, single-supply range an ADC can actually digitize. I did it in three experiments, each building on the last.
1 · Modelling a strain gauge that doesn't exist in SPICE
LTspice has no strain-gauge element, so the first task was to build one from the physics. A gauge's resistance follows
Rstrain = Rnom + λ · Fext
which I realised as a voltage-controlled resistor: a control voltage
Vc stands in for the applied force, driving an arbitrary behavioural source
V = V(Vc)·I(Bres)·R (with R = 1 for simplicity). That makes the voltage across the
element equal to Vc at the branch current, i.e. a resistance you can sweep — so
sweeping Vc from −3 to +3 sweeps the gauge through its full ±3 Ω of strain.
With one gauge the useful swing is tiny (≈ ±18 mV about 1.5 V). Using a dual-complementary half-bridge — two gauges with opposite polarity, so one compresses as the other tenses — roughly doubles the signal and gives a clean, monotonic transfer characteristic (1.5 V at rest, 1.5375 V / 1.4625 V at the limits).
2 · The interface — an AD8220 instrumentation amplifier
A few tens of millivolts sitting on a large common-mode voltage is exactly the job for an instrumentation amplifier. I built the half-bridge into an AD8220 in-amp on a single 5 V rail, with a 2.5 V reference to lift the bipolar bridge signal into the positive domain and a 10 pF cap standing in for the ADC's input.
Choosing the gain was the real design decision. The half-bridge's maximum differential output was 37.5 mV. To use the amplifier's range without clipping, the output has to stay inside the AD8220's worst-case 4.7 V swing (over temperature), offset by the 2.5 V reference — which sets a ceiling of
(4.7 / 2) ÷ 0.0375 V ≈ 62.7 V/V
Picking a standard RG = 1 kΩ gives G = 1 + 49.4 kΩ / RG = 50.4 V/V — comfortably under the ceiling, so no useful signal is lost to clipping while still using most of the range. The result: 2.502 V at zero strain, swinging from 0.607 V to 4.389 V across full strain, matching hand calculation.
3 · Dynamic response
Static transfer curves only tell half the story, so I drove the strain with a 10 Hz sinusoid and ran a transient analysis. The amplified output tracks it cleanly between the same 0.607 V and 4.386 V limits — no clipping, no distortion of the meaningful swing, which confirms the gain and reference choices hold up for a real, time-varying strain.
4 · A real voltage reference, not an ideal one
An ideal 2.5 V source is fine in simulation but doesn't exist on a board, so the last step replaced it with the reference the AD8220 datasheet actually recommends: a resistor divider (two 4.99 kΩ) buffered by an AD8038 op-amp. I re-ran the 10 Hz test and the output was indistinguishable from the ideal-reference case — then swapped the buffer for an AD8031 and saw no change either, confirming the reference design is robust.
What I took away from it
- Building a behavioural device model from first principles when the simulator has no primitive for it — a voltage-controlled resistor standing in for a strain gauge.
- Full analog-front-end design: bridge → instrumentation amp → reference → ADC input, sized end to end so a ±37.5 mV signal arrives clean and in range.
- Gain selection as a headroom-vs-resolution trade — working back from the amplifier's swing and the reference to a concrete RG.
- Validating a design three ways — hand analysis, DC transfer, and dynamic transient — and moving from an ideal reference to the datasheet-recommended real one.
- Why CMRR and high input impedance are the make-or-break specs for a bridge front end.