---
title: Interference and the driven right leg
heading: How the power line couples into a patient and the leads through stray capacitance and magnetic fields, the common-mode voltage on the body, differential pickup on unshielded leads, shielding and twisting, and the driven-right-leg circuit that actively cancels the common-mode voltage
eyebrow: S15 · Lesson 17 · Interference and the driven right leg
xp: 50
---

::: hook
In a hospital room a patient is surrounded by power wiring, and a few picofarads of stray capacitance are enough to drive a fraction of a microampere of 60 Hz current through the body. That current has to reach ground somewhere, and on its way it raises the whole body by millivolts, a common-mode voltage the amplifier must reject. Current that leaks into an unshielded lead wire does worse: it flows through one electrode's impedance and arrives as a genuine differential signal. This lesson sizes each path, and then shows the trick that every modern ECG front end uses: drive the patient's body with an inverted copy of its own common-mode voltage.
:::

::: play
- The body's common-mode voltage with a driven-right-leg circuit: $v_{cm} = R_o i_d/(1 + 2R_f/R_a)$, where $i_d$ is the displacement current from the power line, $R_o$ the protective resistor to the right-leg electrode and $2R_f/R_a$ the loop's gain.
- With no loop gain the body simply sits at $R_oi_d$; feedback divides that by the loop gain plus one.
- Compare it with a plain 50 kΩ ground electrode, the dashed line.
:::

```sim plot
view: graph
x: g = 1..1000 log
y: v = 0.01..100 log
slider: i = 0.05..2 = 0.2 log
slider: R = 1..10 step 0.5 = 5
plot: R*1e6*i*1e-6/(1 + g)*1e3 | samples: 300 | label: body common-mode voltage, mV (loop gain 2R_f/R_a)
plot: 50e3*i*1e-6*1e3 + 0*g | dashed | color: ch3 | label: grounded through 50 kΩ
readout: common-mode voltage at a loop gain of 400, mV = R*1e6*i*1e-6/401*1e3 | digits: 3
```

::: predict
## A patient is coupled to a 120 V, 60 Hz line through 3 pF of stray capacitance and grounded through a 50 kΩ electrode. What common-mode voltage does the body sit at?

- [ ] 120 V
- [ ] About 50 µV
- [x] About 7 mV
- [ ] About 1 V

::: reveal
The stray capacitance has a reactance of 1/(2π × 60 × 3 pF) = 884 MΩ, so it drives $i_d$ = 120 V/884 MΩ = 0.136 µA, a pure displacement current. Flowing out through 50 kΩ, it raises the body by 6.8 mV. The amplifier then needs about 77 dB of rejection to bring that below a microvolt.
:::
:::

::: nameit
## Capacitive coupling to the body

The power line drives a displacement current $i_d = V2\pi fC$ through the stray capacitance C between it and the patient. That current returns to ground through the ground (right-leg) electrode, impedance $Z_G$, raising the body's common-mode voltage to $v_{cm} = i_dZ_G$. The amplifier's CMRR and the electrodes' mismatch (lesson 15) decide how much of it becomes differential error.

## Coupling to the leads

Displacement current coupled into a lead wire flows to the body through that lead's electrode. If the two electrodes' impedances differ, the currents produce a differential voltage $i_d(Z_1 - Z_2)$ directly at the amplifier's inputs. With nanoamperes of current and tens of kilohms of mismatch this reaches hundreds of microvolts, which is why ECG leads are shielded.

## Magnetic coupling

A changing magnetic field through the loop formed by the leads and the body induces $v = 2\pi fBA$. Keeping the leads together, twisted, shrinks the area A.

## The driven right leg

Instead of grounding the right leg, an amplifier senses the common-mode voltage (the average of the two input buffers' outputs, through resistors $R_a$), inverts and amplifies it (feedback resistor $R_f$), and drives the right leg through a protective resistor $R_o$. The body's common-mode voltage becomes

$$v_{cm} = \frac{R_oi_d}{1 + 2R_f/R_a}$$

The patient sees the right leg through a large resistor, so a fault can't drive much current through them, while the loop gain makes the effective ground impedance small.
:::

::: example
## A driven-right-leg circuit has $R_f$ = 5 MΩ, $R_a$ = 25 kΩ and $R_o$ = 5 MΩ, with $i_d$ = 0.2 µA. What's the common-mode voltage, and what effective ground impedance does the patient see?

::: solution
1. **Common-mode voltage.**
   $$\begin{aligned} v_{cm} &= \frac{5\ \text{M}\Omega \times 0.2\ \mu\text{A}}{1 + 400} \\ &= 2.49\ \text{mV} \end{aligned}$$
   against 10 mV for a 50 kΩ ground electrode.
2. **Effective ground impedance.**
   $$\begin{aligned} Z &= \frac{5\ \text{M}\Omega}{401} \\ &= 12.5\ \text{k}\Omega \end{aligned}$$
   lower than the electrode.
3. **Fault protection.** A fault current is still limited by the full 5 MΩ.

**Answer:** the common-mode voltage is 2.49 mV, and the patient sees an effective ground impedance of 12.5 kΩ.
:::
:::

::: example
## 9 nA couples into one lead, and the electrodes differ by 20 kΩ. What differential pickup results? And what does a 1 µT, 60 Hz field induce in a 0.05 m² lead loop?

::: solution
1. **Differential pickup.**
   $$\begin{aligned} v &= 9\ \text{nA} \times 20\ \text{k}\Omega \\ &= 180\ \mu\text{V} \end{aligned}$$
   a fifth of the ECG itself, and not rejected by any CMRR.
2. **Its cure.** Shielding the leads removes it.
3. **Magnetic pickup.** The field induces
   $$\begin{aligned} v &= 2\pi \times 60 \times 10^{-6} \times 0.05\ \text{V} \\ &= 18.8\ \mu\text{V} \end{aligned}$$
   cut by twisting the leads together.

**Answer:** the mismatch gives 180 µV of differential pickup, and the magnetic field induces 18.8 µV in the loop.
:::
:::

::: example
## A battery-powered ECG monitor floats: its circuit common has 200 pF to earth, and the patient couples 2 pF to a 120 V, 60 Hz line. What voltage do patient and monitor take relative to earth, what current flows through the patient, and what common-mode voltage reaches the amplifier through a 50 kΩ reference electrode?

::: solution
1. **Series capacitance.** The 2 pF and 200 pF in series give
   $$C_s = 1.98\ \text{pF}$$
2. **Current through the patient.**
   $$\begin{aligned} I &= 120 \times 2\pi \times 60 \times 1.98\ \text{pF} \\ &= 89.6\ \text{nA} \end{aligned}$$
3. **Floating voltage.** Patient and monitor float together at
   $$\begin{aligned} V &= 120 \times \frac{2}{202} \\ &= 1.19\ \text{V} \end{aligned}$$
   from earth, but that voltage is common to the inputs and the circuit common alike, so the amplifier never sees it.
4. **Common-mode voltage at the amplifier.** What it sees is the current's drop across the reference electrode:
   $$\begin{aligned} v_{cm} &= 89.6\ \text{nA} \times 50\ \text{k}\Omega \\ &= 4.5\ \text{mV} \end{aligned}$$
   which 80 dB of CMRR turns into 0.45 µV at the input.
5. **Why floating helps.** Floating the whole amplifier with the patient is why battery-powered and isolated front ends reject line interference so well.

**Answer:** patient and monitor float at 1.19 V from earth, 89.6 nA flows through the patient, and 4.5 mV of common-mode voltage reaches the amplifier.
:::
:::

::: check
given: V = 120 | 230; f = 50 | 60; C = 1 | 3 | 10
answer: V*2*pi*f*C*1e-12*1e6
unit: µA
tolerance: 0.5%

## A {V} V, {f} Hz line couples to a patient through {C} pF. What displacement current flows?

::: right
Right. $V2\pi fC$ = {answer} µA.
:::

::: misses
- [V*f*C*1e-12*1e6] Use ω = 2πf.
- [any] Not yet. Line voltage over the capacitive reactance.
:::
:::

::: check
given: i = 0.05 | 0.2 | 0.5; Z = 10 | 50 | 200
answer: i*Z
unit: mV
tolerance: 0.5%

## A displacement current of {i} µA leaves a patient through a {Z} kΩ ground electrode. What's the body's common-mode voltage?

::: right
Right. $i_dZ_G$ = {answer} mV.
:::

::: misses
- [any] Not yet. Ohm's law at the ground electrode.
:::
:::

::: check
given: i = 2 | 9 | 30; d = 5 | 20 | 50
answer: i*d
unit: µV
tolerance: 0.5%

## {i} nA of line current couples into one ECG lead, and the electrode impedances differ by {d} kΩ. How large a differential pickup results?

::: right
Right. $i_d\Delta Z$ = {answer} µV.
:::

::: misses
- [any] Not yet. The lead current through the electrode mismatch.
:::
:::

::: check
given: B = 0.2 | 1 | 5; A = 0.01 | 0.05 | 0.2; f = 50 | 60
answer: 2*pi*f*B*1e-6*A*1e6
unit: µV
tolerance: 0.5%

## A {f} Hz magnetic field of {B} µT threads a {A} m² loop formed by the leads and the body. What voltage is induced?

::: right
Right. $2\pi fBA$ = {answer} µV.
:::

::: misses
- [f*B*1e-6*A*1e6] Faraday's law for a sinusoidal field brings in ω = 2πf.
- [any] Not yet. Rate of change of flux.
:::
:::

::: check
given: o = 1 | 5 | 10; i = 0.1 | 0.2 | 0.5; F = 1 | 5; a = 10 | 25 | 100
answer: o*1e6*i*1e-6/(1 + 2*F*1e6/(a*1e3))*1e3
unit: mV
tolerance: 0.5%

## A driven-right-leg circuit has $R_o$ = {o} MΩ, $R_f$ = {F} MΩ and $R_a$ = {a} kΩ, with {i} µA of displacement current. What's the body's common-mode voltage?

::: right
Right. $R_oi_d/(1 + 2R_f/R_a)$ = {answer} mV.
:::

::: misses
- [o*1e6*i*1e-6*1e3] That ignores the feedback; divide by 1 + 2R_f/R_a.
- [any] Not yet. Feedback divides the voltage by one plus the loop gain.
:::
:::

::: check
given: v = 1 | 10 | 50; e = 0.5 | 1 | 5
answer: 20*log(v*1e3/e)
unit: dB
tolerance: 0.5%

## A {v} mV common-mode voltage must contribute less than {e} µV of input-referred error. What CMRR is needed?

::: right
Right. $20\log(v_{cm}/e)$ = {answer} dB.
:::

::: misses
- [10*log(v*1e3/e)] Use 20 log for a voltage ratio.
- [any] Not yet. The required ratio, in dB.
:::
:::

::: check
kind: parts
given: V = 120 | 230; c = 1 | 5; C = 50 | 200 | 1000; Z = 10 | 100; R = 60 | 90

## A floating monitor's common has {C} pF to earth, and the patient couples {c} pF to a {V} V, 60 Hz line. The reference electrode is {Z} kΩ, and the amplifier's CMRR is {R} dB.

::: part
answer: V*2*pi*60*c*C/(c + C)*1e-12*1e9
unit: nA
tolerance: 0.5%

### What current flows through the patient?

::: misses
- [any] $V\omega$ times the series capacitance $cC/(c + C)$.
:::
:::

::: part
answer: V*2*pi*60*c*C/(c + C)*1e-12*Z*1e3*1e3
unit: mV
tolerance: 0.5%

### What common-mode voltage reaches the amplifier?

::: misses
- [V*c/(c + C)*1e3] That's the voltage of the whole floating system to earth, which the amplifier doesn't see.
- [any] The current times the reference electrode's impedance.
:::
:::

::: part
answer: V*2*pi*60*c*C/(c + C)*1e-12*Z*1e3/10^(R/20)*1e6
unit: µV
tolerance: 0.5%

### What input-referred error results?

::: misses
- [any] Divide by the CMRR as a ratio.
:::
:::
:::

::: check
kind: derivation
vars: o = 1..10, F = 1..10, a = 0.01..0.1, i = 0.01..1

## A driven-right-leg circuit has output resistor $R_o$, feedback resistor $R_f$ and averaging resistors $R_a$ (MΩ), with displacement current $i_d$ (µA).

::: step
answer: o/(1 + 2*F/a)

### What effective resistance does it present to the body, in MΩ?
:::

::: step
answer: i*o/(1 + 2*F/a)

### What common-mode voltage results, in volts?
:::

::: right
Right. The feedback divides the output resistor by the loop gain, so the patient is tied to the circuit far more firmly than by $R_o$ alone.
:::
:::

::: explain
## How does the driven-right-leg circuit reduce interference and also make the patient safer?

::: model
Power-line current coupled into the body must leave through some path, and the voltage it develops across that path is the common-mode voltage the amplifier must reject. A driven-right-leg circuit measures that voltage, inverts and amplifies it, and drives the body through the right-leg electrode in the opposite sense, so negative feedback holds the body close to the amplifier's reference: the common-mode voltage is divided by one plus the loop gain, as if the patient were connected to ground through a very small impedance. Because the drive passes through a large protective resistor, the patient isn't actually connected to ground through a low impedance, so a fault elsewhere can't drive a dangerous current through them via the right-leg electrode.
:::
:::

::: practice

::: check
given: V = 100 | 250; f = 50 | 60; C = 0.5 | 20
answer: V*2*pi*f*C*1e-12*1e6
unit: µA
tolerance: 0.5%

## Displacement current: {V} V, {f} Hz, {C} pF?

::: misses
- [any] $V2\pi fC$.
:::
:::

::: check
given: o = 0.5 | 20; i = 0.05 | 2; F = 0.5 | 10; a = 5 | 200
answer: o*1e6*i*1e-6/(1 + 2*F*1e6/(a*1e3))*1e3
unit: mV
tolerance: 0.5%

## DRL: $R_o$ = {o} MΩ, $i_d$ = {i} µA, $R_f$ = {F} MΩ, $R_a$ = {a} kΩ?

::: misses
- [any] $R_oi_d/(1 + 2R_f/R_a)$.
:::
:::

::: check
given: B = 0.1 | 10; A = 0.005 | 0.5; f = 50 | 60
answer: 2*pi*f*B*1e-6*A*1e6
unit: µV
tolerance: 0.5%

## Magnetic pickup: {B} µT, {A} m², {f} Hz?

::: misses
- [any] $2\pi fBA$.
:::
:::
:::
