Component guide · Intermediate · 3 min read
AD8232 ECG Heart Sensor

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The AD8232 is a single-lead ECG front end: it amplifies and filters the tiny electrical signal from the heart, picked up by three electrode pads, into an analog voltage you can read on an Arduino and draw on the Serial Plotter. It runs from 3.3 V, has lead-off detection outputs (LO+ and LO-) and suits learning projects, not medical use.
Key specs at a glance
- Function
- Single-lead ECG / heart signal amplifier
- Supply
- 3.3 V (some boards accept 3.3 to 6 V)
- Output
- Analog, centred at about half the supply
- Lead-off detect
- LO+ and LO- digital outputs
- Electrodes
- 3 (RA, LA, RL) via 3.5 mm jack or pads
- Current
- About 170 µA
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1AD8232 ECG Heart Sensor Module for Arduino w/ Electrode Pads & Cable₹679
Option 2ECG AD8232 Heart ECG Monitoring Sensor Module₹1,339
Option 3SparkFun AD8232 Single Lead Heart Rate Monitor Sensor – ECG Analog Output Module₹3,409
Option 4WAVGAT AD8232 ECG Heart Monitoring Sensor Module – Analog Output, 3.5mm Jack₹1,789
Option 5DFRobot Gravity Analog Heart Rate ECG Sensor – AD8232 Chip, 3.3-6V Input₹2,299
What the AD8232 ECG module is
Each heartbeat creates a small voltage (about 1 mV) on the skin. The AD8232 amplifies it about 100 times, removes most of the noise and mains hum, and outputs a waveform with the familiar P, QRS and T shape.
Readings are best when the person is still, away from mains cables and chargers, and the electrodes are fresh. Battery power for the laptop or controller reduces mains noise a lot. This is a learning module, not a medical device. Do not use it to diagnose or monitor a health condition.
AD8232 ECG module pinout
The pins on the AD8232 ECG module and what each one does.
| Pin | Function |
|---|---|
| 3.3V | Supply (check if your board allows 5 V) |
| GND | Ground |
| OUTPUT | Analog ECG signal |
| LO+ | HIGH when the LA electrode is off |
| LO- | HIGH when the RA electrode is off |
| SDN | Shutdown, pull LOW to sleep (optional) |
- 3.3V
- Supply (check if your board allows 5 V)
- GND
- Ground
- OUTPUT
- Analog ECG signal
- LO+
- HIGH when the LA electrode is off
- LO-
- HIGH when the RA electrode is off
- SDN
- Shutdown, pull LOW to sleep (optional)
Wiring the AD8232 ECG module
Electrodes: red (RA) under the right collarbone, yellow (LA) under the left collarbone, green (RL) on the lower right of the ribcage or right leg. Colours can differ between cables, so check the labels.
| AD8232 ECG module pin | Arduino Uno | ESP32 |
|---|---|---|
| 3.3V | 3.3V | 3V3 |
| GND | GND | GND |
| OUTPUT | A0 | GPIO 34 |
| LO+ | D10 | GPIO 25 |
| LO- | D11 | GPIO 26 |
- 3.3V
- Arduino Uno:
- 3.3V
- ESP32:
- 3V3
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- OUTPUT
- Arduino Uno:
- A0
- ESP32:
- GPIO 34
- LO+
- Arduino Uno:
- D10
- ESP32:
- GPIO 25
- LO-
- Arduino Uno:
- D11
- ESP32:
- GPIO 26
Example code
Open Tools > Serial Plotter at 115200 baud. To count beats, find peaks above a threshold and time the gap between them.
const int LO_P = 10, LO_N = 11;
void setup() {
Serial.begin(115200);
pinMode(LO_P, INPUT);
pinMode(LO_N, INPUT);
}
void loop() {
if (digitalRead(LO_P) || digitalRead(LO_N)) {
Serial.println(0); // an electrode is off
} else {
Serial.println(analogRead(A0));
}
delay(4); // about 250 samples per second
}Setup and tuning
gel electrodes dry out; a new set fixes most noisy signals.
muscle movement adds large spikes.
run the laptop on battery and keep away from power cables.
for a cleaner signal try the pads on the forearms and leg, as the module notes suggest.
What you need
Shop this list8 of 9 found in our store · ₹10,080
AD8232 ECG Heart Sensor Module for Arduino w/ Electrode Pads & Cable: the part this guide coversAD8232 ECG Heart Sensor Module for Arduino w/ Electrode Pads & Cable₹679
Generic ECG AD8232 Heart ECG Monitoring Sensor Module: another version this guide coversECG AD8232 Heart ECG Monitoring Sensor Module₹1,339
SparkFun AD8232 Single Lead Heart Rate Monitor Sensor – ECG Analog Output Module: another version this guide coversSparkFun AD8232 Single Lead Heart Rate Monitor Sensor – ECG Analog Output Module₹3,409
WAVGAT AD8232 ECG Heart Monitoring Sensor Module – Analog Output, 3.5mm Jack: another version this guide coversWAVGAT AD8232 ECG Heart Monitoring Sensor Module – Analog Output, 3.5mm Jack₹1,789
DFRobot Gravity Analog Heart Rate ECG Sensor – AD8232 Chip, 3.3-6V Input: another version this guide coversDFRobot Gravity Analog Heart Rate ECG Sensor₹2,287- Uno R3 development board: the controller used in the wiring tableFind this part
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Alternatives and when to choose them
- MAX30102 heart rate sensor: optical pulse and SpO2 from a fingertip, no electrodes.
- MAX30100 pulse oximeter: the older optical sensor.
- ECG, EMG and biopotential sensors: muscle (EMG) and other body-signal modules.
Common mistakes to avoid
- Running the laptop from its charger, which adds 50 Hz mains noise.
- Reusing dried-out electrode pads.
- Moving or talking during the reading.
- Powering a 3.3 V-only board from 5 V.
Frequently asked questions
Can the AD8232 measure heart rate?
Yes. Detect the R peaks in the signal and time the gap between them to get beats per minute.
Why is my ECG signal so noisy?
Usually mains hum, old pads or movement. Run on battery, use fresh pads and sit still.
Does it work with an ESP32?
Yes, it runs from 3.3 V. Read OUTPUT on an ADC1 pin such as GPIO 34.
What do LO+ and LO- do?
They go HIGH when an electrode loses contact, so you can ignore bad readings.
Is it a medical ECG?
No. It is a single-lead learning module and must not be used for diagnosis.
Parts for this guide
Projects that use it
Put this into practice: 2 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- AD8232 single-lead heart rate monitor front end datasheet (Analog Devices)
- SparkFun AD8232 heart rate monitor hookup guide
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

