---
title: "Problem set 12: designing medical instruments"
heading: "Problem set 12: design problems for front-end gain, common-mode rejection and resistor tolerance, anti-aliasing filters, catheter lengths, thermistor bridges, oximeter LED drive, isolation budgets, defibrillator capacitors, pacemaker cells, duty cycles, telemetry budgets, ultrasound depth, X-ray dose, stimulating electrodes and inductive links"
eyebrow: S15 · Problem set 12
type: problems
---

::: hook
The last set before the final turns the course around: each problem gives a requirement, from a resolution at the electrodes to a battery life or a link efficiency, and asks for the design value that meets it. Most combine two lessons, and several are the first calculation an engineer would make on a real instrument.
:::

::: pool
pick: 12

::: check
kind: parts
given: o = 300 | 500; V = 2.5 | 5; N = 16 | 24; r = 0.5 | 2

## An ECG front end must not saturate on ±{o} mV of electrode offset with its first stage swinging ±{V} V, and must resolve {r} µV at the electrodes with an {N}-bit converter spanning ±{V} V.

::: part
answer: V*1000/o
tolerance: 0.5%

### What is the largest gain the first, DC-coupled stage can have?

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

::: part
answer: 2*V/2^N/(r*1e-6)
tolerance: 0.5%

### What total gain gives that resolution?

::: misses
- [V/2^N/(r*1e-6)] The converter spans 2V.
- [any] One step, $2V/2^N$, over the resolution.
:::
:::
:::

::: check
kind: parts
given: c = 10 | 100; e = 1 | 10; G = 10 | 100

## Up to {c} mV of common mode must produce less than {e} µV of input-referred error, using a difference amplifier with gain {G}.

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

### What CMRR does that need?

::: misses
- [10*log(c*1e3/e)] Voltage ratios use 20 log.
- [any] $20\log(v_{cm}/v_e)$.
:::
:::

::: part
answer: (1 + G)/(4*c*1e3/e)*100
unit: %
tolerance: 0.5%

### What resistor tolerance guarantees it?

::: misses
- [any] Worst case CMRR = (1 + G)/(4t); solve for t.
:::
:::
:::

::: check
kind: parts
given: c = 40 | 150; s = 500 | 1000; A = 40 | 60

## An anti-aliasing Butterworth filter has its corner at {c} Hz and must attenuate by {A} dB at half the {s} Hz sampling rate.

::: part
answer: ceil(log(10^(A/10) - 1)/(2*log(s/2/c)))
unit: poles
tolerance: 0

### What order does it need?

::: misses
- [any] $n = \lceil\log(10^{A/10} - 1)/(2\log(f/f_c))\rceil$.
:::
:::
:::

::: check
kind: parts
given: r = 0.3 | 0.5 | 0.75; c = 0.01 | 0.05; f = 25 | 50

## A saline catheter of radius {r} mm feeds a transducer of {c} mm³ per 100 mmHg, and the system's natural frequency must be at least {f} Hz.

::: part
answer: (r*1e-3)^2*(1/(c*1e-9/(100*133.32)))/(4*pi*1000*f^2)
unit: m
tolerance: 0.5%

### How long can the catheter be?

::: misses
- [any] Solve $f_n = \frac r2\sqrt{E_d/\pi\rho L}$ for L.
:::
:::
:::

::: check
kind: parts
given: R = 10 | 30; B = 3500 | 4000; T = 30 | 37; V = 1 | 3

## A {R} kΩ (at 25 °C, B = {B} K) thermistor in a half bridge with a fixed resistor equal to its resistance at {T} °C is excited at {V} V.

::: part
answer: R*exp(B*(1/(T + 273.15) - 1/298.15))
unit: kΩ
tolerance: 0.5%

### What fixed resistor does that call for?

::: misses
- [any] $R_T$ at the center temperature.
:::
:::

::: part
answer: V/4*B/(T + 273.15)^2*1e3
unit: mV
tolerance: 0.5%

### How many millivolts per °C does the bridge give at {T} °C?

::: misses
- [V/2*B/(T + 273.15)^2*1e3] At balance, a divider's slope is V/4 times the fractional resistance change.
- [any] $(V/4)(B/T^2)$.
:::
:::
:::

::: check
kind: parts
given: i = 0.1 | 1; R = 0.5 | 0.6; t = 0.001 | 0.01; e = 0.05 | 0.2

## An oximeter's photodiode (responsivity {R} A/W) needs {i} µA; tissue passes {t} of the LED's light, and the LED converts electrical power to light at efficiency {e} from a 1.5 V drop.

::: part
answer: i*1e-6/R/t*1e3
unit: mW
tolerance: 0.5%

### What optical power must the LED emit?

::: misses
- [any] Photocurrent over responsivity, over tissue transmission.
:::
:::

::: part
answer: i*1e-6/R/t/e/1.5*1e3
unit: mA
tolerance: 0.5%

### What LED current does that take?

::: misses
- [any] Electrical power over 1.5 V.
:::
:::
:::

::: check
kind: parts
given: I = 10 | 50; V = 120 | 230; f = 50 | 60; N = 2 | 5

## {N} isolated inputs connect to one patient, whose total leakage must stay below {I} µA at {V} V, {f} Hz.

::: part
answer: I*1e-6/(2*pi*f*V*N)*1e12
unit: pF
tolerance: 0.5%

### How much barrier capacitance can each input have?

::: misses
- [I*1e-6/(2*pi*f*V)*1e12] Share the limit among the inputs.
- [any] $I/(2\pi fVN)$.
:::
:::
:::

::: check
kind: parts
given: E = 150 | 360; V = 2 | 5

## An external defibrillator must store {E} J at no more than {V} kV.

::: part
answer: 2*E/(V*1e3)^2*1e6
unit: µF
tolerance: 0.5%

### What capacitance does it need?

::: misses
- [E/(V*1e3)^2*1e6] Energy is $\frac12CV^2$.
- [any] $C = 2E/V^2$.
:::
:::
:::

::: check
kind: parts
given: Y = 8 | 12; Q = 0.5 | 2; H = 60 | 70; i = 2 | 6

## A pacemaker must last {Y} years delivering {Q} µC per pulse at {H} per minute with {i} µA of circuit current.

::: part
answer: (Q*H/60 + i)*Y*8766/1e6
unit: Ah
tolerance: 0.5%

### What cell capacity does it need?

::: misses
- [any] Average current times hours of life.
:::
:::
:::

::: check
kind: parts
given: a = 5 | 15; s = 2 | 10; C = 100 | 300; d = 7 | 30

## A wearable draws {a} mA active and {s} µA asleep from a {C} mAh battery, which must last {d} days.

::: part
answer: (C*1000/(d*24) - s)/(a*1000 - s)*100
unit: %
tolerance: 0.5%

### What fraction of the time can it be active?

::: misses
- [any] Solve $Da + (1 - D)s = C/(24d)$ for D.
:::
:::
:::

::: check
kind: parts
given: P = 50 | 200; e = 2 | 10; f = 250 | 500; c = 1 | 3

## A telemeter's radio may average {P} µW at {e} nJ per bit, for {c} channels sampled at {f} Hz.

::: part
answer: floor(P*1e-6/(e*1e-9)/(c*f))
unit: bits
tolerance: 0

### How many bits per sample can it send?

::: misses
- [any] Bit budget over samples per second, rounded down.
:::
:::
:::

::: check
kind: parts
given: F = 15 | 30 | 50; L = 128 | 192 | 256

## An ultrasound scanner must make {F} frames a second of {L} lines each.

::: part
answer: 1540/(2*F*L)*100
unit: cm
tolerance: 0.5%

### How deep can it image?

::: misses
- [1540/(F*L)*100] Each line waits for the echo's round trip.
- [any] $z = c/(2FL)$.
:::
:::
:::

::: check
kind: parts
given: C = 0.01 | 0.03; J = 3 | 5; D = 0.4 | 0.7

## A radiograph must show a detail of contrast {C} at a Rose threshold of J = {J}, with a detector of DQE {D}.

::: part
answer: J^2/C^2
unit: photons
tolerance: 0.5%

### How many detected-equivalent photons per detail area does that need?

::: misses
- [J/C^2] Both J and C are squared.
- [any] $N = J^2/C^2$.
:::
:::

::: part
answer: J^2/C^2/D
unit: photons
tolerance: 0.5%

### How many must reach the detector?

::: misses
- [any] Divide by the DQE.
:::
:::
:::

::: check
kind: parts
given: Q = 0.1 | 0.5 | 2; k = 1.7 | 1.85

## A stimulator must deliver {Q} µC per phase within Shannon's limit with k = {k}.

::: part
answer: Q^2/10^k
unit: cm^2
tolerance: 0.5%

### What is the smallest electrode area that allows it?

::: misses
- [Q/10^k] The limit is on Q·D = Q²/A.
- [any] $A \ge Q^2/10^k$.
:::
:::
:::

::: check
kind: parts
given: n = 0.3 | 0.5 | 0.7; a = 50 | 150; b = 20 | 80

## An inductive link with coil quality factors {a} and {b} must reach an efficiency of {n}.

::: part
answer: sqrt((((1 + n)/(1 - n))^2 - 1)/(a*b))
tolerance: 0.5%

### What coupling coefficient does that need?

::: misses
- [any] With $s = (1 + \eta)/(1 - \eta)$, $k^2Q_1Q_2 = s^2 - 1$.
:::
:::
:::
:::
