Skip to content
Buy 10+ on select items — save 10% auto-applied
Free US shipping on orders $35+
Order by 3pm ET — ships same-day from the US
Skip to main content

Arduino AD8232 ECG Module: Plot a Live ECG Waveform | ShillehTek

May 14, 2026 12 views

Arduino AD8232 ECG Module: Plot a Live ECG Waveform | ShillehTek
Project

Build an Arduino AD8232 ECG monitor that streams a live ECG waveform to Serial Plotter for fast bio-signal prototyping with parts from ShillehTek.

25 min Intermediate3 parts

Project Overview

Arduino + AD8232 ECG Module: In this project you will use an Arduino (Nano) with the AD8232 ECG module to capture a single-lead ECG signal and plot your heart’s waveform in the Arduino Serial Plotter.

The AD8232 is an analog front-end commonly used in entry-level wearable cardio devices. With three disposable electrodes and a simple sketch, you can stream a live ECG trace over USB for learning and prototyping.

  • Time: ~25 minutes
  • Skill level: Intermediate
  • What you will build: An Arduino streaming a live ECG waveform.
AD8232 ECG module kit showing the board and 3-lead cable jack used to connect electrodes for Arduino ECG plotting
The AD8232 module, including the 3.5 mm jack for the 3-lead electrode cable.

Parts List

From ShillehTek

External

  • 3 disposable ECG electrodes (the kit ships with these and the cable)

Note: This is a hobby device, not medical equipment. Use the readings for learning and personal interest, not diagnosis.

Step-by-Step Guide

Step 1 - Inspect the Module

Goal: Identify the key connectors and pins on the AD8232 board before wiring.

What to do: Locate the 3.5 mm jack for the electrode cable, and the 6-pin header used to connect to your Arduino.

AD8232 ECG module front view showing the 3.5 mm electrode cable jack and the pin header used to wire to an Arduino
3.5 mm jack for the cable, 6 pins for the Arduino.

Expected result: You can clearly identify the electrode jack and the pins you will connect for power, output, and lead-off detection.

Step 2 - Place the Electrodes

Goal: Attach the three electrodes so the AD8232 can pick up a stable single-lead ECG signal.

What to do: Place the electrodes on your chest as shown, then connect the electrode snaps to the cable (and the cable to the AD8232 jack).

Three disposable ECG electrodes placed on the chest for an AD8232 single-lead ECG reading with an Arduino
Three-lead placement: red and yellow above the heart on each pectoral, green on the lower-right ribcage.

Expected result: The electrodes are attached and the electrode cable is plugged into the AD8232 board.

Step 3 - Wire It Up

Goal: Connect the AD8232 to the Arduino Nano for power, analog sampling, and lead-off detection.

What to do: Wire the AD8232 to the Arduino using the connections below. Power the AD8232 from 3.3 V (not 5 V).

AD8232 ECG module wired to an Arduino Nano showing 3.3V power, OUTPUT connected to A0, and LO+ and LO- connected to digital pins
3.3 V power, OUTPUT to A0, LO+/LO- to D11/D10.
  • 3.3 V to 3.3 V on AD8232 (not 5 V)
  • GND to GND
  • OUTPUT to A0
  • LO+ to D11, LO- to D10 (lead-off detect)

Expected result: The AD8232 is powered from 3.3 V and its analog OUTPUT is connected to A0, with LO+ and LO- connected for electrode-disconnect detection.

Step 4 - Upload the Sketch

Goal: Stream either ECG samples (A0) or a disconnect indicator to the Serial Plotter.

What to do: Paste the sketch below into the Arduino IDE, select your board and port, then upload.

Code:

void setup() {
  Serial.begin(9600);
  pinMode(10, INPUT); // LO-
  pinMode(11, INPUT); // LO+
}

void loop() {
  if (digitalRead(10) == HIGH || digitalRead(11) == HIGH) {
    Serial.println('!');           // electrode disconnected
  } else {
    Serial.println(analogRead(A0));
  }
  delay(2);                         // ~500 Hz sample rate
}

Expected result: The Arduino begins printing values to Serial, and prints ! when an electrode is disconnected.

Step 5 - Watch Your Heart Beat

Goal: Visualize the ECG waveform on your computer.

What to do: In the Arduino IDE, open Tools to Serial Plotter and confirm the plot updates continuously.

Arduino Serial Plotter displaying an ECG waveform from an AD8232 module including visible P-QRS-T complexes
Open Tools to Serial Plotter. You should see textbook P-QRS-T complexes.

Expected result: A live ECG waveform appears in Serial Plotter when the electrodes are connected.

Step 6 - Where to Take It Next

Goal: Identify practical next steps you can build on top of the basic ECG stream.

What to do: Choose one of the extensions below and adapt your code and hardware as needed.

  • Implement Pan-Tompkins peak detection to compute live BPM
  • Stream over BLE to a phone for a wearable monitor
  • Log to microSD for a 24-hour Holter-style recording
  • Combine with an MAX30102 for a dual heart-rate device

Expected result: You have a clear path to extend the project into BPM calculation, logging, or wireless streaming.

Conclusion

You built an Arduino Nano project with the AD8232 ECG module that streams a single-lead ECG waveform to the Serial Plotter. Once you can capture and visualize your own ECG signal, wearable and bio-signal prototypes become much more approachable.

Want the exact parts used in this build? Grab them from ShillehTek.com. If you want help customizing this project or building something for your product, check out our IoT consulting services.

Credits: The AD8232 photos and wiring diagrams in this tutorial are credited to Instructables.