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)
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.
| Part | What to search | India | US |
|---|---|---|---|
| ESP32 dev board | ESP32 DevKit V1 | ₹350–500 | $5–8 |
| AD8232 ECG module | AD8232 heart rate monitor kit | ₹450–700 | $8–12 |
| Electrode pads + cable | ECG electrode pads 50pc + 3.5mm lead (often bundled with AD8232) | ₹250–400 | $3–6 |
| Jumper wires + USB cable | any | ₹100 | $2 |
| Optional: strap | elastic 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.
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.
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);
}
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.
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.