The problem
An IoT-based ECG tracker using the AD8232 and ESP32 is a compact academic prototype that turns the heart's electrical activity into a live waveform on a cloud dashboard. Three gel electrodes on the chest pick up the heart's signal, the AD8232 front end amplifies and filters it, the ESP32 samples it, computes heart rate from each R-peak, and streams the waveform and alerts over Wi-Fi, so the trace can be watched from anywhere. The problem it addresses is simple: an ECG recorded on a bedside device or logged to a memory card cannot be watched remotely, and nobody is warned when the rate drifts outside safe limits between checks. Students face the same gap: a bare sensor demo with no connectivity, or a multi-sensor monitor where the ECG is one reading among many. This tracker keeps the focus on one signal: a clean single-lead ECG, a live scrolling waveform, heart-rate computation, configurable rhythm alerts, and a session history.
The AD8232 works by differential measurement, which is the key to a usable trace: the heart's signal at the skin is only about 1 mV (typical textbook value), while 50 Hz mains hum couples into the body at far larger voltages. The chip's instrumentation amplifier rejects what is common to both electrodes — its common-mode rejection ratio is 80 dB from dc to 60 Hz (datasheet value) — and amplifies only the difference between them by a gain of 100 (datasheet value). In the demo build, the same principle showed up in practice: the trace stayed clean only while the RL (right-leg drive) electrode held firm skin contact, and a loose RL lead let mains hum swamp the waveform, which is why the firmware watches the leads-off pins continuously. The demo dashboard's simulated trace is sampled at 250 samples per second, the same rate the firmware uses, so one PQRST complex spans about 0.83 s at 72 BPM (demo-build value).
RA, LA and RL gel electrodes pick up the heart's signal on the chest.
Follow the working sequence
How it works
The signal travels from the body to the cloud in six stages: electrodes, conditioning, sampling, heart-rate computation, wireless transmission, and dashboard display with alerts. Three gel electrodes (RA on the right arm, LA on the left arm, RL as the right-leg drive) pick up the heart's electrical signal, which is only about 1 mV at the skin (typical textbook value), so the AD8232 instrumentation amplifier boosts it 100 times (datasheet value) while its 80 dB common-mode rejection (dc to 60 Hz, datasheet value) strips away mains hum common to both electrodes. The ESP32 reads the conditioned waveform with its 12-bit ADC at 250 samples per second (design configuration), detects each R-peak, measures the interval between beats, and converts it to beats per minute. Samples are then sent over Wi-Fi to the cloud dashboard, which draws the scrolling waveform, shows heart rate and lead status, logs alerts when the rate crosses the limits, and keeps the session history.
- Three gel electrodes (RA on the right arm, LA on the left arm, RL as the right-leg drive) are placed on the skin and connected to the AD8232 module with snap-lead cables.
- The AD8232 amplifies the single-lead ECG with a gain of 100 (datasheet value), filters it, and outputs an analog waveform centred near mid-supply (approximately 1.65 V at a 3.3 V supply, datasheet value).
- The ESP32 samples the AD8232 output with its 12-bit ADC at 250 samples per second (design configuration) and reads the LO+ and LO- pins to detect disconnected electrodes.
- The firmware detects each R-peak, measures the interval between successive peaks, and computes heart rate in beats per minute, smoothed over the last 8 beats (design configuration).
- The ESP32 publishes the waveform samples and heart rate over Wi-Fi (MQTT or HTTP, design configuration) to the cloud, where the dashboard draws the live scrolling trace and updates the heart-rate, lead-status and trend panels.
- The dashboard compares every heart-rate value against the configured limits (below 50 BPM or above 100 BPM); a breach sustained for 10 seconds (design configuration) raises an alert with a timestamp in the alert log, and a leads-off event raises a lead-status warning.
Tech stack:
- ESP32-WROOM-32 development board
- AD8232 ECG front-end module
- Arduino IDE · C/C++ firmware
- MQTT · HTTP cloud telemetry
- HTML · CSS · JavaScript dashboard
- 0.96-inch OLED display
- ECG gel electrodes (RA, LA, RL)
Comparison: this tracker vs alternatives
| System | Waveform | Data path | Alerts | Best for |
|---|---|---|---|---|
| This IoT ECG tracker (AD8232 + ESP32) | Live, streamed to a cloud dashboard | Wi-Fi to cloud | Yes — rate limits and leads-off | Remote ECG monitoring demo; IoT and biomedical final-year project |
| Portable ECG monitor with SD card logging (AD8232) | Recorded, viewed after the session | Local SD card only | No live alert | Offline recording where no Wi-Fi exists |
| Hospital ECG machine | Clinical 12-lead recording | Hospital information system | Clinical alarms | Diagnosis and patient care (certified device) |
This tracker is an academic prototype, not a certified medical device. It is not a replacement for certified medical equipment, professional diagnosis or clinical decision-making, and no clinical accuracy, diagnosis or treatment capability is claimed.
| Parameter | Value |
|---|---|
| Controller | ESP32-WROOM-32, dual-core Xtensa LX6 at 240 MHz (datasheet value) |
| ECG front end | AD8232, single-lead, supply 2.0–3.5 V, 170 µA typical quiescent current (datasheet values) |
| Front-end gain | 100 V/V (datasheet value) |
| Common-mode rejection | 80 dB from dc to 60 Hz (datasheet value) |
| ADC | 12-bit, up to 18 channels (datasheet value) |
| Sampling rate | 250 samples per second (design configuration) |
| Electrodes | 3 gel electrodes — RA, LA, RL (right-leg drive) |
| Connectivity | Wi-Fi 802.11 b/g/n, 2.4 GHz (datasheet value) |
| Telemetry | MQTT or HTTP to cloud dashboard (design configuration) |
| Alert thresholds | Below 50 BPM or above 100 BPM, configurable (design configuration) |
| Alert delay | 10 s sustained breach before alert (design configuration) |
| Local display | 0.96-inch OLED, live waveform (design configuration) |
| Power | 5 V USB, approximately 160–240 mA while streaming over Wi-Fi (expected) |
| Signal amplitude | Surface ECG of the order of 1 mV (typical textbook value) |
Project features
The tracker is built around four capabilities: a live ECG waveform, heart-rate computation, abnormal-rhythm alerts, and a cloud dashboard with session history. The live waveform is the centrepiece — the dashboard draws the scrolling Lead I trace with its P wave, QRS complex and T wave on an ECG-style grid, so each beat can be inspected as it happens. Heart rate comes from R-peak detection on the ESP32, not from a separate pulse sensor, which keeps the measurement tied to the electrical signal itself. When the rate crosses the configured limits, or an electrode comes loose, the dashboard raises an alert and records it in the alert log. A small OLED on the prototype mirrors the waveform locally, so the build can be demonstrated even when the cloud link is down.
- [Live ECG waveform streaming] The AD8232 output is sampled at 250 samples per second (design configuration) and streamed over Wi-Fi, so the dashboard draws the scrolling Lead I waveform in near real time with its P wave, QRS complex and T wave visible.
- [R-peak heart-rate computation] The ESP32 firmware detects each R-peak in the sampled waveform and converts the interval between beats into beats per minute, smoothed over the last 8 beats (design configuration).
- [Abnormal-rhythm alerts] When the heart rate stays below 50 BPM or above 100 BPM for 10 seconds (configurable, design configuration), the dashboard raises an alert and records it in the alert log with a timestamp.
- [Leads-off detection] The AD8232 LO+ and LO- pins are monitored continuously; if an electrode loses contact, the dashboard shows a lead-status warning instead of plotting a misleading trace.
- [Cloud dashboard with session history] The dashboard shows the live waveform, current heart rate, lead status, a 10-minute heart-rate trend and the alert log, and retains the session history for review after the session ends.
- [Local OLED waveform display] A 0.96-inch OLED on the prototype plots the ECG waveform locally, so the build can be demonstrated on the bench without a network connection.
- [Configurable alert thresholds] The low and high heart-rate limits are set in the firmware configuration, so the same build can be tuned for demonstration scenarios without code changes.
Optional additions, not part of the base build: GSM SMS alerts, a mobile app, SpO2 or temperature sensing, and 12-lead ECG support — available as customisation on request.
What is included
- Working hardware prototype: ESP32 board, AD8232 module, breadboard wiring, OLED display and 3-electrode lead set
- ESP32 firmware source code (Arduino IDE, C/C++) with R-peak detection and alert logic
- Cloud dashboard (HTML, CSS, JavaScript) with live waveform, heart-rate trend and alert log
- Circuit and wiring documentation with electrode placement guide
- Project report PDF (background, AD8232 theory, methodology, results)
- Project abstract PDF
- PPT presentation for final review
- Viva Q&A preparation document (ECG basics, AD8232, ADC sampling, Wi-Fi telemetry)
Limitations & prerequisites
- Single-lead ECG only — it shows rhythm and rate, not the 12-lead detail a hospital ECG provides.
- This is an academic prototype, not a certified medical device; it must not be used for diagnosis, treatment or clinical decisions.
- Trace quality depends on electrode contact and skin preparation; loose electrodes or movement add noise and motion artefacts.
- The ESP32 ADC is 12-bit (datasheet value) and its accuracy is modest, so the waveform is a demonstration trace, not a clinical measurement.
- Live streaming and alerts need Wi-Fi; without a network only the local OLED display works.
- Heart-rate alerts use fixed rate limits, not rhythm classification — irregular rhythms are shown on the trace but not diagnosed.
- Battery runtime is approximately 2–4 hours on a typical 2000 mAh power bank (expected), depending on Wi-Fi usage.
Frequently Asked Questions
Is this project suitable for a final-year project?
Yes — for Electronics & Telecommunication, Electrical, Computer and Biomedical-related programs, it demonstrates biomedical sensing with the AD8232, embedded firmware on the ESP32, ADC sampling and R-peak detection, and IoT telemetry to a cloud dashboard with alerts. The single-signal focus makes the viva story clean: one sensor, one waveform, one dashboard, with the medical limits stated honestly.
How is this different from a portable ECG monitor that logs to an SD card?
That monitor records the ECG locally and the trace is viewed only after the session, with no live view and no alerts. This tracker streams the waveform live to a cloud dashboard while the session runs, computes heart rate on the ESP32, and raises alerts when the rate crosses configured limits or an electrode comes loose — remote monitoring, not offline recording.
How is this different from a multi-vital monitor with SpO2 and temperature?
A multi-vital monitor watches several readings at once, so the ECG is one panel among many and the build spreads across sensors. This tracker is ECG-only by design: the whole system — front end, sampling, R-peak detection, waveform dashboard and alerts — is built around one cardiac signal, which gives a deeper biomedical and signal-processing story for the viva.
Does it work without Wi-Fi?
Partly. The AD8232 front end, ESP32 sampling, R-peak heart-rate computation and the local OLED waveform display all keep working without a network, so the bench demonstration is unaffected, while the cloud dashboard, remote viewing, session history and alerts need Wi-Fi. When the network drops, the dashboard shows the last received data and a connection warning.
What are the main limitations?
It is a single-lead academic prototype, not a certified medical device, so it must never be used for diagnosis or clinical decisions, and trace quality depends on electrode contact and stillness, since loose electrodes and movement add noise. The 12-bit ESP32 ADC gives a demonstration-grade waveform, and the fixed rate-limit alerts flag fast or slow rates only; they do not classify rhythms.
Can this project be customized?
Yes — the alert thresholds are configurable in firmware, and the build can be extended with GSM SMS alerts, a mobile app, SpO2 or temperature sensing, longer cloud history, or a 12-lead front end, all as customisation on request. Report format, PPT style and college-specific documentation requirements can also be adjusted; share the requirements when requesting a quotation.
To order this ECG tracker, message Projectech on WhatsApp for a quotation — share your branch, college deadline and any customisations (alert thresholds, extra sensors, report format), and the team confirms the scope, price and delivery timeline before the build starts.
Components & software requirements
- ESP32-WROOM-32 development board
- AD8232 ECG front-end module
- Arduino IDE · C/C++ firmware
- MQTT · HTTP cloud telemetry
- HTML · CSS · JavaScript dashboard
- 0.96-inch OLED display
- ECG gel electrodes (RA, LA, RL)
Comparison: this tracker vs alternatives
| System | Waveform | Data path | Alerts | Best for |
|---|---|---|---|---|
| This IoT ECG tracker (AD8232 + ESP32) | Live, streamed to a cloud dashboard | Wi-Fi to cloud | Yes — rate limits and leads-off | Remote ECG monitoring demo; IoT and biomedical final-year project |
| Portable ECG monitor with SD card logging (AD8232) | Recorded, viewed after the session | Local SD card only | No live alert | Offline recording where no Wi-Fi exists |
| Hospital ECG machine | Clinical 12-lead recording | Hospital information system | Clinical alarms | Diagnosis and patient care (certified device) |
This tracker is an academic prototype, not a certified medical device. It is not a replacement for certified medical equipment, professional diagnosis or clinical decision-making, and no clinical accuracy, diagnosis or treatment capability is claimed.
Delivery information
Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.
Support terms
Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.
Download free synopsis (PDF)
Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.