---
title: "Problem set 4: electrodes, amplifiers and interference"
heading: "Problem set 4: electrode impedance and offsets, instrumentation amplifier gain and CMRR, electrode mismatch, power-line coupling and the driven right leg, and sampling, filtering and averaging biopotentials"
eyebrow: S15 · Problem set 4
type: problems
---

::: hook
These problems cover lessons 14, 15, 17 and 18: the electrode's double-layer model, half-cell offsets and gain limits, microelectrode bandwidth, instrumentation amplifier gain and common-mode rejection, mismatch errors, displacement currents and lead pickup, the driven right leg, and converter steps, data rates, filters and ensemble averaging.
:::

::: pool
pick: 12

::: check
kind: parts
given: s = 0.5 | 1.5; R = 80 | 300; C = 0.05 | 0.2; f = 20 | 50

## An electrode with $R_s$ = {s} kΩ, $R_d$ = {R} kΩ and $C_d$ = {C} µF.

::: part
answer: 1/(2*pi*R*1e3*C*1e-6)
unit: Hz
tolerance: 0.5%

### Corner frequency?

::: misses
- [any] $1/(2\pi R_dC_d)$.
:::
:::

::: part
answer: sqrt((s + R/(1 + (2*pi*f*R*1e3*C*1e-6)^2))^2 + (R*2*pi*f*R*1e3*C*1e-6/(1 + (2*pi*f*R*1e3*C*1e-6)^2))^2)
unit: kΩ
tolerance: 0.5%

### Impedance magnitude at {f} Hz?

::: misses
- [any] $|R_s + R_d/(1 + j\omega R_dC_d)|$.
:::
:::

::: part
answer: s + R
unit: kΩ
tolerance: 0.5%

### Impedance at DC?

::: misses
- [any] $R_s + R_d$.
:::
:::
:::

::: check
kind: parts
given: o = 150 | 400; V = 3 | 5; a = 0.223 | 0.8; b = -0.76 | 0.34; R = 5 | 20; c = 5 | 20

## Electrode offsets of {o} mV into a stage that swings ±{V} V; half-cell potentials {a} and {b} V; a {R} MΩ microelectrode with {c} pF.

::: part
answer: V/(o*1e-3)
tolerance: 0.5%

### Largest DC-coupled gain?

::: misses
- [any] Swing over offset.
:::
:::

::: part
answer: a - b
unit: V
tolerance: 0.5%

### Voltage between the two half-cells?

::: misses
- [any] The difference.
:::
:::

::: part
answer: 1/(2*pi*R*1e6*c*1e-12)
unit: Hz
tolerance: 0.5%

### Microelectrode bandwidth?

::: misses
- [any] $1/(2\pi RC)$.
:::
:::
:::

::: check
kind: parts
given: R = 2 | 10; F = 20 | 49.4; k = 1 | 5; T = 1000 | 2000

## An instrumentation amplifier with $R_1$ = {R} kΩ, $R_2$ = {F} kΩ and a second stage of {k}.

::: part
answer: (1 + 2*F/R)*k
tolerance: 0.5%

### Gain?

::: misses
- [any] $(1 + 2R_2/R_1)(R_4/R_3)$.
:::
:::

::: part
answer: T/((1 + 2*F/R)*k)
tolerance: 0.5%

### Further gain needed for a total of {T}?

::: misses
- [any] Total over this gain.
:::
:::
:::

::: check
kind: parts
given: G = 500 | 2000; c = 0.005 | 0.05; v = 10 | 40

## An amplifier with differential gain {G} and common-mode gain {c}, facing {v} mV of common-mode voltage.

::: part
answer: 20*log(G/c)
unit: dB
tolerance: 0.5%

### CMRR?

::: misses
- [any] $20\log(G_d/G_{cm})$.
:::
:::

::: part
answer: v*1e-3*c/G*1e6
unit: µV
tolerance: 0.5%

### Input-referred common-mode error?

::: misses
- [any] $v_{cm}/\text{CMRR}$.
:::
:::
:::

::: check
kind: parts
given: v = 5 | 30; d = 10 | 40; Z = 50 | 500; G = 2 | 10; t = 0.0005 | 0.005

## {v} mV of common-mode voltage, electrodes differing by {d} kΩ, a common-mode input impedance of {Z} MΩ; a difference stage of gain {G} with resistors of tolerance {t}.

::: part
answer: v*1e-3*d*1e3/(Z*1e6)*1e6
unit: µV
tolerance: 0.5%

### Mismatch-induced differential voltage?

::: misses
- [any] $v_{cm}\Delta Z/Z_{cm}$.
:::
:::

::: part
answer: 20*log((1 + G)/(4*t))
unit: dB
tolerance: 0.5%

### Worst-case CMRR of the difference stage?

::: misses
- [any] $(1 + G)/(4t)$.
:::
:::
:::

::: check
kind: parts
given: V = 120 | 230; f = 50 | 60; C = 2 | 5; Z = 20 | 80

## A {V} V, {f} Hz line couples to a patient through {C} pF; the patient is grounded through {Z} kΩ.

::: part
answer: V*2*pi*f*C*1e-12*1e6
unit: µA
tolerance: 0.5%

### Displacement current?

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

::: part
answer: V*2*pi*f*C*1e-12*Z*1e3*1e3
unit: mV
tolerance: 0.5%

### Common-mode voltage?

::: misses
- [any] $i_dZ_G$.
:::
:::
:::

::: check
kind: parts
given: i = 3 | 15; d = 10 | 30; B = 0.5 | 3; A = 0.02 | 0.1; f = 50 | 60

## {i} nA coupled into one lead with {d} kΩ of electrode mismatch; a {B} µT, {f} Hz field through a {A} m² loop.

::: part
answer: i*d
unit: µV
tolerance: 0.5%

### Differential pickup from the lead current?

::: misses
- [any] $i\Delta Z$.
:::
:::

::: part
answer: 2*pi*f*B*1e-6*A*1e6
unit: µV
tolerance: 0.5%

### Magnetically induced voltage?

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

::: check
kind: parts
given: o = 2 | 10; i = 0.1 | 0.4; F = 2 | 10; a = 20 | 50

## A driven-right-leg circuit with $R_o$ = {o} MΩ, $R_f$ = {F} MΩ, $R_a$ = {a} kΩ and {i} µA of displacement current.

::: part
answer: o*1e6*i*1e-6/(1 + 2*F*1e6/(a*1e3))*1e3
unit: mV
tolerance: 0.5%

### Common-mode voltage?

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

::: part
answer: o*1e3/(1 + 2*F*1e6/(a*1e3))
unit: kΩ
tolerance: 0.5%

### Effective ground impedance?

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

::: check
kind: parts
given: v = 5 | 20; e = 0.5 | 2

## A common-mode voltage of {v} mV must leave less than {e} µV of error.

::: part
answer: 20*log(v*1e3/e)
unit: dB
tolerance: 0.5%

### Required CMRR?

::: misses
- [any] $20\log(v_{cm}/e)$.
:::
:::

::: part
answer: v*1e3/e
tolerance: 0.5%

### As a plain ratio?

::: misses
- [any] $v_{cm}/e$.
:::
:::
:::

::: check
kind: parts
given: R = 2.5 | 5; B = 18 | 24; c = 16 | 128; f = 500 | 2000

## A {c}-channel recorder sampling at {f} per second with {B}-bit converters spanning {R} V.

::: part
answer: R/2^B*1e6
unit: µV
tolerance: 0.5%

### Step size?

::: misses
- [any] $R/2^B$.
:::
:::

::: part
answer: c*f*B/1e6
unit: Mb/s
tolerance: 0.5%

### Data rate?

::: misses
- [any] Channels × rate × bits.
:::
:::
:::

::: check
kind: parts
given: c = 0.05 | 0.67; f = 1 | 3; F = 50 | 60; Q = 20 | 50

## A first-order high-pass at {c} Hz; a {F} Hz notch with Q = {Q}.

::: part
answer: 1/(2*pi*c)
unit: s
tolerance: 0.5%

### Time constant?

::: misses
- [any] $1/(2\pi f_c)$.
:::
:::

::: part
answer: atan(c/f)*180/pi
unit: °
tolerance: 0.5%

### Phase lead at {f} Hz?

::: misses
- [any] $\tan^{-1}(f_c/f)$.
:::
:::

::: part
answer: F/Q
unit: Hz
tolerance: 0.5%

### Notch width?

::: misses
- [any] $f_0/Q$.
:::
:::
:::

::: check
kind: parts
given: s = 0.5 | 3; n = 15 | 40; t = 2 | 6; r = 2 | 5

## An evoked response of {s} µV in {n} µV of background, with stimuli delivered {r} times per second.

::: part
answer: (t*n/s)^2
tolerance: 0.5%

### Sweeps for an SNR of {t}?

::: misses
- [any] $(\text{target}\times n/s)^2$.
:::
:::

::: part
answer: (t*n/s)^2/r/60
unit: min
tolerance: 0.5%

### Recording time?

::: misses
- [any] Sweeps over the stimulus rate.
:::
:::
:::

::: check
kind: parts
given: R = 5 | 50 | 500; B = 100 | 1000; s = 50 | 1000

## An electrode pair presents {R} kΩ at 37 °C, recording a {s} µV signal over {B} Hz.

::: part
answer: sqrt(4*1.380649e-23*310.15*R*1e3*B)*1e6
unit: µV
tolerance: 0.5%

### How much thermal noise does it add?

::: misses
- [any] $\sqrt{4kTRB}$.
:::
:::

::: part
answer: 20*log(s/(sqrt(4*1.380649e-23*310.15*R*1e3*B)*1e6))
unit: dB
tolerance: 0.5%

### What signal-to-noise ratio does that alone allow?

::: misses
- [any] $20\log(v_s/v_n)$.
:::
:::
:::

::: check
kind: parts
given: a = 20 | 100; b = 10 | 60; v = 5 | 20; Z = 10 | 100

## Two electrodes present {a} and {b} kΩ at 60 Hz (treat them as resistive) to an amplifier with {Z} MΩ common-mode input impedance; {v} mV of common mode is present.

::: part
answer: v*1e-3*(Z*1e6/(Z*1e6 + b*1e3) - Z*1e6/(Z*1e6 + a*1e3))*1e6
unit: µV
tolerance: 0.5%

### What differential error does the mismatch create?

::: misses
- [any] $v_{cm}[Z/(Z + Z_2) - Z/(Z + Z_1)]$, about $v_{cm}\Delta Z/Z$.
:::
:::
:::

::: check
kind: parts
given: f = 50 | 60; Q = 10 | 30 | 100

## A notch filter at {f} Hz has Q = {Q}.

::: part
answer: f/Q
unit: Hz
tolerance: 0.5%

### How wide a band does it remove?

::: misses
- [any] $f_0/Q$.
:::
:::

::: part
answer: Q/(pi*f)
unit: s
tolerance: 0.5%

### What is the time constant of its ringing after a step?

::: misses
- [any] $Q/(\pi f_0)$: a narrow notch rings for a long time.
:::
:::
:::
:::
