Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›AD8232 ECG Heart Sensor

Component guide · Intermediate · 3 min read

AD8232 ECG Heart Sensor

Pinout, Wiring and Code

By Geekobot Learning Team · Updated 29 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the AD8232 ECG module isAD8232 ECG module pinoutWiring the AD8232 ECG moduleExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

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
01

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.

02

AD8232 ECG module pinout

The pins on the AD8232 ECG module and what each one does.

PinFunction
3.3VSupply (check if your board allows 5 V)
GNDGround
OUTPUTAnalog ECG signal
LO+HIGH when the LA electrode is off
LO-HIGH when the RA electrode is off
SDNShutdown, pull LOW to sleep (optional)
PinFunction
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)
03

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 pinArduino UnoESP32
3.3V3.3V3V3
GNDGNDGND
OUTPUTA0GPIO 34
LO+D10GPIO 25
LO-D11GPIO 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
04

Example code

Open Tools > Serial Plotter at 115200 baud. To count beats, find peaks above a threshold and time the gap between them.

Draw the ECG on the Serial Plotter (Arduino) · Arduino C++Verify & upload in Electrolark
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
}
05

Setup and tuning

Fresh pads

gel electrodes dry out; a new set fixes most noisy signals.

Keep still and relaxed

muscle movement adds large spikes.

Cut mains noise

run the laptop on battery and keep away from power cables.

Placement

for a cleaner signal try the pads on the forearms and leg, as the module notes suggest.

06

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
07

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.
08

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.
09

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

  • AD8232 ECG Heart Sensor Module for Arduino w/ Electrode Pads & Cable
    ₹679View
  • ECG AD8232 Heart ECG Monitoring Sensor Module
    ₹1,339View
  • SparkFun AD8232 Single Lead Heart Rate Monitor Sensor – ECG Analog Output Module
    ₹3,409View
  • WAVGAT AD8232 ECG Heart Monitoring Sensor Module – Analog Output, 3.5mm Jack
    ₹1,789View
  • DFRobot Gravity Analog Heart Rate ECG Sensor – AD8232 Chip, 3.3-6V Input
    ₹2,299View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • 0.96" OLED Display 128x64
    ₹139View
  • Dupont Jumper Wires (40 pcs)
    ₹49View
Shop ECG, EMG & Biopotential Sensors

Projects that use it

Put this into practice: 2 step-by-step builds in our project library use parts from this guide.

Beginner · 1 hourECG heartbeat plotterView projectAdvanced · 1–2 hoursWi-Fi ECG signal viewerView project
Browse all 2 projects

Keep learning

Component guideIntermediateECG, EMG and EEG SensorsECG, EMG and EEG modules amplify tiny voltages from the skin so a microcontroller can read them.3 min read · SensorsComponent guideIntermediateMAX30102 Heart Rate and SpO2 Sensor GuideThe MAX30102 is an optical sensor with red and infrared LEDs and a photodetector.3 min read · SensorsComponent guideBeginnerESP32 GuideThe ESP32 is a low-cost 3.3 V microcontroller from Espressif with built-in Wi-Fi and Bluetooth, used for IoT devices, smart-home controllers and web dashboards.5 min read · Boards & Microcontrollers

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.

On this page
Short answerWhat the AD8232 ECG module isAD8232 ECG module pinoutWiring the AD8232 ECG moduleExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide (Arduino Uno)3 items · ₹3,170

AD8232 ECG Heart Sensor Module for Arduino w/ Electrode Pads & Cable · DFRobot Gravity Analog Heart Rate ECG Sensor · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

Use the Serial Plotter on a real board. Either electrode off makes the sketch print 0.

Serial monitor115200 baud
338

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question