---
title: Pacemakers and defibrillators
heading: Exciting tissue with current pulses and the strength–duration curve, chronaxie and the pulse width that costs least energy, pacing pulse energy and battery life, demand pacing, and defibrillators with their stored and delivered energy and discharge waveforms
eyebrow: S15 · Lesson 43 · Pacemakers and defibrillators
xp: 50
---

::: hook
Most of this course measures the body; this lesson acts on it. A pacemaker is a tiny pulse generator, sealed in titanium with a lithium battery, that must reliably excite heart muscle for a decade or more on about an ampere-hour of charge. A defibrillator does the opposite in scale: it dumps hundreds of joules in a few milliseconds to reset a heart in fibrillation. Both are designed around the same physiology from lesson 11: a cell fires when its membrane is depolarized past threshold, and a stimulus must deliver enough charge quickly enough to get it there.
:::

::: play
- The **strength–duration curve**: the threshold current for a pulse of width t, $I = I_{rh}(1 + c/t)$, where $I_{rh}$ is the **rheobase** (threshold for very long pulses) and c the **chronaxie**, the width at which twice the rheobase is needed.
- The energy per pulse into a fixed resistance goes as $I^2t$, which is smallest at t = c.
- Narrow pulses need large currents; wide ones waste charge while the membrane leaks.
:::

```sim plot
view: graph
x: t = 0.05..3 log
y: y = 0..10
slider: c = 0.1..1.5 step 0.05 = 0.5
plot: 1 + c/t | samples: 400 | label: threshold current / rheobase
plot: (1 + c/t)^2*t/(4*c) | samples: 400 | color: ch3 | label: pulse energy / minimum
marker: x = c | label: chronaxie
readout: threshold at the chronaxie, × rheobase = 2 | digits: 2
```

::: predict
## A pacemaker delivers 2.5 V pulses 0.4 ms long into a 500 Ω lead. What energy does each pulse take?

- [ ] 5 mJ
- [x] 5 µJ
- [ ] 1.25 J
- [ ] 2 µJ

::: reveal
$E = V^2t/R$ = 6.25 × 0.0004/500 = 5 µJ, from a current of 5 mA and a charge of 2 µC. At 70 beats per minute that's under 6 µW of pacing, small next to the electronics' own drain, which is why a single battery can last well over a decade.
:::
:::

::: nameit
## Strength and duration

A cathodic current pulse depolarizes the membrane by charging its capacitance while current also leaks away. The resulting threshold is well described by Weiss's law, linear in charge, $Q = I_{rh}(t + c)$, or in current

$$I_{th} = I_{rh}\left(1 + \frac{c}{t}\right)$$

The energy into a resistance R, $I_{th}^2Rt$, is minimized at t = c, which is why pacemaker pulses are set near the chronaxie, typically a few tenths of a millisecond for heart muscle.

## Pacemakers

A pacemaker delivers pulses of a few volts and a fraction of a millisecond through a lead to the heart, with the can or a second electrode as return. Modern **demand** pacemakers sense the heart's own activity and pace only when it's missing; a three-letter code names the chamber paced, the chamber sensed and the response (VVI paces and senses the ventricle and inhibits on a sensed beat; DDD works on both chambers). Pulse energy $V^2t/R$, charge $Vt/R$, and battery life

$$\text{life} = \frac{\text{capacity}}{\text{average current}}$$

where the average includes the pacing charge per second and the circuit's quiescent current.

## Defibrillators

Ventricular fibrillation is chaotic electrical activity with no effective pumping. A defibrillator stores energy in a capacitor,

$$E = \tfrac{1}{2}CV^2$$

and discharges it through the chest (about 50 Ω between paddles) to depolarize most of the heart at once. External units store up to about 360 J at a few kilovolts; implanted ones (ICDs) deliver 30 to 40 J through internal leads. Modern waveforms are **biphasic truncated exponentials**: the capacitor discharges with τ = RC, is cut off after a few milliseconds, then reversed. A discharge truncated at t delivers the fraction $1 - e^{-2t/RC}$ of the stored energy.
:::

::: example
## Estimate a pacemaker's battery life: 2 µC per pulse at 70 per minute, 5 µA of circuit current, a 1.2 Ah cell.

::: solution
1. **Average pacing current.**
   $$\begin{aligned} I_p &= \frac{2\ \mu\text{C} \times 70}{60\ \text{s}} \\ &= 2.33\ \mu\text{A} \end{aligned}$$
2. **Total current.** Adding the 5 µA of circuit current:
   $$\begin{aligned} I &= 2.33 + 5 \\ &= 7.33\ \mu\text{A} \end{aligned}$$
3. **Battery life.**
   $$\begin{aligned} t &= \frac{1.2\ \text{Ah}}{7.33\ \mu\text{A}} \\ &= 164\,000\ \text{h} \\ &= 18.7\ \text{years} \end{aligned}$$
   an upper bound, since real cells lose capacity and voltage near the end.

**Answer:** the battery lasts at most about 18.7 years.
:::
:::

::: example
## A defibrillator charges 32 µF to 5 kV and discharges into 50 Ω. Find the stored energy, the time constant, the peak current, and the fraction delivered if the pulse is cut off after 4 ms.

::: solution
1. **Stored energy.**
   $$\begin{aligned} E &= \tfrac12 \times 32\ \mu\text{F} \times (5\ \text{kV})^2 \\ &= 400\ \text{J} \end{aligned}$$
2. **Time constant.**
   $$\begin{aligned} \tau &= 50\ \Omega \times 32\ \mu\text{F} \\ &= 1.6\ \text{ms} \end{aligned}$$
3. **Peak current.**
   $$\begin{aligned} I_p &= \frac{5000\ \text{V}}{50\ \Omega} \\ &= 100\ \text{A} \end{aligned}$$
4. **Fraction delivered by 4 ms.**
   $$1 - e^{-8/1.6} = 99.3\%$$
   of the energy.

**Answer:** it stores 400 J, with a 1.6 ms time constant and a 100 A peak, and cutting the pulse off at 4 ms still delivers 99.3% of the energy.
:::
:::

::: example
## An implantable defibrillator must store 30 J in a 150 µF capacitor. What voltage does that take, and how long does charging take from a battery through a converter drawing 10 W at 80% efficiency?

::: solution
1. **Voltage.**
   $$\begin{aligned} V &= \sqrt{\frac{2E}{C}} \\ &= \sqrt{\frac{60}{150 \times 10^{-6}}}\ \text{V} \\ &= 632\ \text{V} \end{aligned}$$
2. **Charging time.** At 80% efficiency the capacitor receives 8 W:
   $$\begin{aligned} t &= \frac{30\ \text{J}}{8\ \text{W}} \\ &= 3.75\ \text{s} \end{aligned}$$
   during which the arrhythmia continues.
3. **What it means for the design.** That delay, and the battery's ability to deliver 10 W at all, drive the design of the high-voltage section, from the battery chemistry to the transformer.

**Answer:** the capacitor must be charged to 632 V, which takes 3.75 s.
:::
:::

::: check
given: I = 0.5 | 1 | 2; c = 0.3 | 0.5; t = 0.1 | 0.25 | 1
answer: I*(1 + c/t)
unit: mA
tolerance: 0.5%

## Tissue has a rheobase of {I} mA and a chronaxie of {c} ms. What threshold current does a {t} ms pulse need?

::: right
Right. $I_{rh}(1 + c/t)$ = {answer} mA.
:::

::: misses
- [I*c/t] Add the rheobase itself.
- [any] Not yet. Weiss's strength–duration law.
:::
:::

::: check
given: V = 1.5 | 2.5 | 5; t = 0.2 | 0.4 | 1; R = 400 | 800
answer: V^2*t*1e-3/R*1e6
unit: µJ
tolerance: 0.5%

## A pacing pulse of {V} V lasts {t} ms into a {R} Ω lead. What energy does it deliver?

::: right
Right. $V^2t/R$ = {answer} µJ.
:::

::: misses
- [V*t*1e-3/R*1e6] That's the charge in µC; energy is $V^2t/R$.
- [any] Not yet. Power times duration.
:::
:::

::: check
given: Q = 1 | 2 | 4; H = 60 | 80; i = 3 | 8; C = 0.8 | 1.2 | 2.5
answer: C/((Q*1e-6*H/60 + i*1e-6)*24*365.25)
tolerance: 0.5%

## A pacemaker draws {i} µA continuously and delivers {Q} µC per pulse at {H} pulses per minute from a {C} Ah battery. How many years does the battery last?

::: right
Right. Capacity over average current: {answer} years.
:::

::: misses
- [C/(i*1e-6*24*365.25)] Include the pacing pulses' average current.
- [any] Not yet. Find the average current first.
:::
:::

::: check
given: C = 20 | 32 | 150; V = 0.7 | 2 | 5
answer: 0.5*C*1e-6*(V*1000)^2
unit: J
tolerance: 0.5%

## A defibrillator charges a {C} µF capacitor to {V} kV. How much energy does it store?

::: right
Right. $\frac{1}{2}CV^2$ = {answer} J.
:::

::: misses
- [C*1e-6*(V*1000)^2] Include the one half.
- [any] Not yet. Capacitor energy.
:::
:::

::: check
given: R = 40 | 50 | 80; C = 32 | 100; t = 2 | 4 | 6
answer: 1 - exp(-2*t*1e-3/(R*C*1e-6))
tolerance: 0.5%

## A {C} µF capacitor discharges into {R} Ω and is cut off after {t} ms. What fraction of its stored energy is delivered?

::: right
Right. $1 - e^{-2t/RC}$ = {answer}.
:::

::: misses
- [1 - exp(-t*1e-3/(R*C*1e-6))] Energy goes as voltage squared, so it decays twice as fast: $e^{-2t/RC}$.
- [any] Not yet. Compare the energy left with the energy stored.
:::
:::

::: check
given: V = 1 | 3 | 5; R = 40 | 50 | 100
answer: V*1000/R
unit: A
tolerance: 0.5%

## A defibrillator at {V} kV discharges into a {R} Ω chest. What's the peak current?

::: right
Right. V/R = {answer} A.
:::

::: misses
- [any] Not yet. Ohm's law at the start of the discharge.
:::
:::

::: check
kind: parts
given: E = 20 | 35 | 40; C = 100 | 150 | 200; P = 5 | 12; e = 0.7 | 0.85

## An ICD stores {E} J in a {C} µF capacitor, charged through a converter drawing {P} W at efficiency {e}.

::: part
answer: sqrt(2*E/(C*1e-6))
unit: V
tolerance: 0.5%

### To what voltage must it charge?

::: misses
- [sqrt(E/(C*1e-6))] Energy is $\frac12CV^2$.
- [any] $\sqrt{2E/C}$.
:::
:::

::: part
answer: E/(P*e)
unit: s
tolerance: 0.5%

### How long does charging take?

::: misses
- [E/P] Only a fraction e of the input reaches the capacitor.
- [any] Energy over delivered power.
:::
:::
:::

::: check
kind: derivation
vars: C = 20..200, V = 0.5..5, R = 25..150, t = 0..20

## A defibrillator charges C µF to V kV and discharges it into R ohms, truncating after t ms.

::: step
answer: 0.5*C*1e-6*(V*1e3)^2

### How much energy does it store, in joules?
:::

::: step
answer: V*1e3/R

### What is the peak current, in amperes?
:::

::: step
answer: 1 - exp(-2*t*1e-3/(R*C*1e-6))

### What fraction of the energy has it delivered by truncation?
:::

::: right
Right. Energy falls with twice the rate of the voltage, so it's mostly delivered within one time constant.
:::
:::

::: explain
## Why is there a pulse width that minimizes the energy needed to stimulate tissue?

::: model
To fire, the membrane must be charged by a threshold amount, but some of the injected charge leaks across the membrane while the pulse is on. A very short pulse wastes little charge to leakage, but delivering the charge so quickly requires a large current, and the energy dissipated in the electrode and tissue grows as current squared. A very long pulse needs only the rheobase current, but it keeps driving current long after it could have finished, so the energy grows with duration. In between, the energy, proportional to $(1 + c/t)^2t$, has a minimum exactly at the chronaxie, which is why it's the natural choice for battery-powered stimulators.
:::
:::

::: practice

::: check
given: I = 0.1 | 5; c = 0.1 | 2; t = 0.05 | 5
answer: I*(1 + c/t)
unit: mA
tolerance: 0.5%

## Threshold: rheobase {I} mA, chronaxie {c} ms, width {t} ms?

::: misses
- [any] $I_{rh}(1 + c/t)$.
:::
:::

::: check
given: C = 10 | 200; V = 0.5 | 6
answer: 0.5*C*1e-6*(V*1000)^2
unit: J
tolerance: 0.5%

## Stored energy: {C} µF at {V} kV?

::: misses
- [any] $\frac{1}{2}CV^2$.
:::
:::

::: check
given: R = 25 | 150; C = 20 | 200; t = 0.5 | 10
answer: 1 - exp(-2*t*1e-3/(R*C*1e-6))
tolerance: 0.5%

## Delivered fraction: {R} Ω, {C} µF, cut at {t} ms?

::: misses
- [any] $1 - e^{-2t/RC}$.
:::
:::
:::
