PulseKit

Build a chest-strap heart-signal monitor with an ESP32 and an AD8232. Parts, wiring, firmware, and a live ECG viewer that runs in this browser tab.

≈ ₹1,300–1,800 in parts (about $16–22)

OPEN BUILD GUIDE NO SIGNUP LEARNING PROJECT, NOT A MEDICAL DEVICE

1What you are building

A chest strap that reads your heart's electrical signal (single-lead ECG) and shows it live on this page over a USB cable. You see the waveform, a beats-per-minute estimate, and you can record a session to CSV. It is the same sensor family used in the DIY ESP32 heart-strap posts makers share, packaged so a beginner can finish it in a weekend. It is stage-0 proof for the Health Test Suit project.

Safety first. Run the ESP32 from a battery or a laptop on battery while electrodes are on your body, never from a wall charger. Use proper adhesive ECG electrodes. If you have a pacemaker or a heart condition, ask a doctor before strapping anything to your chest. This is a learning tool; it cannot diagnose anything.

2Parts (approximate prices)

PartWhat to searchIndiaUS
ESP32 dev boardESP32 DevKit V1₹350–500$5–8
AD8232 ECG moduleAD8232 heart rate monitor kit₹450–700$8–12
Electrode pads + cableECG electrode pads 50pc + 3.5mm lead (often bundled with AD8232)₹250–400$3–6
Jumper wires + USB cableany₹100$2
Optional: strapelastic chest strap / old sports-band₹150$3

Prices are street prices as of late 2026 and move around; the AD8232 kit often includes pads and the cable.

3Wiring (6 jumpers)

AD8232 3.3V→ ESP32 3V3
AD8232 GND→ ESP32 GND
AD8232 OUTPUT→ ESP32 GPIO 34
AD8232 LO+→ ESP32 GPIO 32
AD8232 LO−→ ESP32 GPIO 33
AD8232 SDN→ not connected

Electrode pads go on the chest: right arm (RA) pad upper-right chest, left arm (LA) pad upper-left, right leg (RL) pad lower-right ribs. Power the ESP32 from 3.3V, not 5V — the AD8232 is a 3.3V part.

4Firmware (Arduino IDE, ESP32 board package)

Prints LO+, LO−, signal as CSV at 250 samples/second, 115200 baud. The browser viewer below reads exactly this.

// PulseKit firmware: ESP32 + AD8232
// Board: ESP32 Dev Module, Upload speed 115200
const int PIN_OUT = 34;  // AD8232 OUTPUT
const int PIN_LOP = 32;  // LO+
const int PIN_LON = 33;  // LO-
const unsigned long US = 4000; // 250 Hz = every 4000 us

unsigned long last = 0;
void setup() {
  Serial.begin(115200);
  pinMode(PIN_LOP, INPUT);
  pinMode(PIN_LON, INPUT);
  analogReadResolution(12);
  analogSetAttenuation(ADC_11db); // full 0-3.3V span
}
void loop() {
  unsigned long now = micros();
  if (now - last < US) return;
  last = now;
  int lop = digitalRead(PIN_LOP);
  int lon = digitalRead(PIN_LON);
  int sig = analogRead(PIN_OUT);
  Serial.print(lop); Serial.print(',');
  Serial.print(lon); Serial.print(',');
  Serial.println(sig);
}

5Live viewer (this page)

Plug the ESP32 in by USB, click Connect, choose its serial port. Needs Chrome or Edge on a computer (WebSerial). Nothing is uploaded; the signal goes straight from cable to canvas.

—BPM (estimate)
—ELECTRODES
—SAMPLES/S

Read it honestly. A clean single-lead trace shows rhythm and rate. It cannot rule out a heart problem, and odd readings are usually a loose pad or dry skin before they are anything else. Wet the pads slightly, sit still, breathe normally. Anything that worries you goes to a doctor, not to a forum.

6Where this goes next

  • Bluetooth LE instead of USB so the strap talks to a phone (the firmware change is ~20 lines with the ESP32 BLE library).
  • Textile electrodes sewn into a sports band instead of sticky pads — the first real step toward the innerwear version.
  • Baseline learning: record a week of resting traces so "unusual for you" can be flagged, the idea behind the Health Test Suit pitch.