The problem
An ESP32 patient health monitor with ECG, SpO2 and a cloud dashboard is a compact prototype that watches three vital signs: the electrical activity of the heart, blood oxygen saturation, and body temperature. Three gel electrodes feed a single-lead ECG signal into an AD8232 front-end chip, a MAX30102 optical sensor on a fingertip measures SpO2 and pulse, and a DS18B20 sensor reads skin temperature, while the ESP32 streams readings over Wi-Fi to a dashboard. In many college labs and clinics, vital signs are checked by hand at intervals, so a change between checks goes unnoticed until the next round. Continuous monitoring closes that gap, and a threshold alert — heart rate below 50 or above 120 beats per minute, SpO2 below 94 percent — turns a silent drift into a buzzer and dashboard warning. The build is an educational prototype, not a certified medical device, and it teaches sensing, signal conditioning, wireless telemetry and dashboard design in one system.
Three gel electrodes pick up the heart electrical signal.
Follow the working sequence
How it works
The signal path runs from the body to the cloud in six stages: sensing, conditioning, sampling, threshold checking, wireless transmission, and dashboard display. The AD8232 conditions the tiny ECG voltage from the chest electrodes into a clean analog waveform, the MAX30102 measures SpO2 optically at the fingertip, and the DS18B20 reports skin temperature. The ESP32 samples the ECG at 250 samples per second, detects each R-peak to compute heart rate, reads SpO2 at 100 samples per second, and compares every value against its configured thresholds. Readings are published over Wi-Fi by MQTT or HTTP to the cloud dashboard, which draws the live trace and logs history, while the OLED mirrors the numbers locally. When a threshold is crossed, the buzzer sounds and the dashboard marks the alert, so a viewer sees the problem the moment it happens.
- Three gel electrodes (RA on the right arm, LA on the left arm, RL as right-leg drive) pick up the heart's electrical signal and feed it to the AD8232 front end. Builder note from the demo build: the first trace was buried in 50 Hz mains hum until the RL electrode was re-seated and the three electrode leads were twisted together.
- The AD8232 amplifies the signal with a gain of 100 V/V (datasheet value) and filters it, outputting a clean analog ECG waveform to the ESP32 ADC.
- The MAX30102 sensor on the fingertip measures SpO2 and pulse optically, and the DS18B20 reads skin temperature, both reporting to the ESP32.
- The ESP32 samples the ECG at 250 samples per second (design configuration), detects R-peaks to compute heart rate, and reads SpO2 at 100 samples per second (design configuration).
- Each value is compared with firmware thresholds — heart rate below 50 or above 120 beats per minute, SpO2 below 94 percent, temperature above 38.0 degrees C — and a breach sounds the buzzer.
- Readings are published over Wi-Fi to the cloud dashboard, which plots the live ECG trace, shows the current vitals, and logs one sample every 60 seconds for the history chart.
Tech stack:
- ESP32-WROOM-32 development board
- AD8232 ECG front-end module
- MAX30102 pulse oximeter sensor
- DS18B20 temperature sensor
- Arduino IDE · C/C++ firmware
- MQTT · HTTP cloud telemetry
- HTML · CSS · JavaScript dashboard
- 0.96-inch OLED display
| 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 current, gain 100 V/V (datasheet value) |
| SpO2 sensor | MAX30102, red 660 nm / IR 880 nm, I2C address 0x57, 18-bit ADC (datasheet value) |
| ECG sampling | 250 samples/sec (design configuration) |
| SpO2 sampling | 100 samples/sec (design configuration) |
| Alert thresholds | HR below 50 or above 120 BPM, SpO2 below 94%, temperature above 38.0 °C (design configuration) |
| Temperature sensor | DS18B20, ±0.5 °C accuracy from -10 °C to +85 °C (datasheet value) |
| Connectivity | Wi-Fi 802.11 b/g/n, MQTT/HTTP to cloud dashboard (datasheet value) |
| Power | 5 V USB, approximately 160–240 mA with Wi-Fi active (expected) |
| Display | 0.96-inch OLED, 128 × 64 pixels (datasheet value) |
Project features
The monitor's strongest capabilities are its three-channel sensing, its live ECG trace, and its cloud alerting. The AD8232 front end delivers a clean single-lead ECG waveform with leads-off detection, the MAX30102 gives simultaneous SpO2 and pulse readings from one fingertip sensor, and the DS18B20 adds skin temperature, so the dashboard shows a complete vital-signs picture instead of a single number. Every reading is sampled by the ESP32, checked against firmware thresholds, shown on a small OLED, and published over Wi-Fi to the cloud dashboard, which plots the ECG trace, logs history, and raises visible alerts with a buzzer when a limit is crossed. The hardware stays a student-buildable breadboard prototype with clearly labelled modules, and the dashboard is a single-file web app that runs from the ESP32 data stream, so the whole system can be demonstrated on a bench without hospital equipment. In the demo build, a resting trace settled at 72 beats per minute with SpO2 at 97–98 percent.
- [Single-lead ECG with AD8232] Three gel electrodes (RA, LA, RL) feed the AD8232 front end, which amplifies and filters the heart's electrical signal into a clean waveform with leads-off detection when an electrode disconnects.
- [SpO2 and pulse from MAX30102] The optical sensor shines red (660 nm) and infrared (880 nm) light into the fingertip and derives SpO2 and pulse from the reflected light, reporting over I2C at address 0x57.
- [Live cloud dashboard] The dashboard shows heart rate, SpO2 and temperature as large readouts, plots the scrolling ECG trace, and keeps a 60-minute history chart of heart rate and SpO2.
- [Threshold alerts with buzzer] Firmware flags heart rate below 50 or above 120 beats per minute, SpO2 below 94 percent, or temperature above 38.0 degrees C, sounding the on-device buzzer and marking the alert on the dashboard.
- [60-minute history logging] Readings are logged every 60 seconds to the cloud, so the student can show trends across a full demo session instead of a single snapshot.
- [On-device OLED display] A 0.96-inch OLED shows the live heart rate, SpO2 and ECG trace at the bedside, so the prototype stays useful even when the dashboard is not open.
- [Leads-off and sensor-error detection] The AD8232 LO+ and LO- pins report disconnected electrodes, and the firmware flags a missing MAX30102 reading instead of displaying a stale value.
What is included
- Working ESP32 patient health monitor prototype (breadboard build with labelled modules)
- ESP32 firmware (Arduino IDE, C/C++) with configurable alert thresholds
- Single-file cloud dashboard web app with live ECG trace, vitals and history chart
- Circuit diagram and wiring documentation for all three sensors
- Project report PDF (background, sensor theory, methodology, results)
- PPT presentation for final review
- Viva Q&A preparation document (ECG front end, SpO2 optics, Wi-Fi telemetry, thresholds)
Limitations & prerequisites
- This is an educational prototype, not a certified medical device: it must not be used for diagnosis, treatment decisions, or patient care.
- The single-lead ECG shows rhythm and rate only; it cannot diagnose cardiac conditions and is not a replacement for a clinical 12-lead ECG.
- SpO2 readings are indicative only — cold fingers, movement, nail polish and ambient light can shift the value, and no accuracy figure is claimed.
- ECG quality depends on electrode contact: dry skin, loose gel electrodes or movement add noise, and the RL electrode must be seated well or 50 Hz mains hum appears on the trace.
- The dashboard needs Wi-Fi; without a network, only the on-device OLED and buzzer work, and no history is logged.
- Heart-rate detection is a design-target algorithm (R-peak thresholding) and has not been validated against a clinical reference device.
Frequently Asked Questions
Is this project suitable for a final-year project?
Yes, it suits Electronics & Telecommunication, Electrical, Computer and Biomedical-related programs, because it combines analog signal conditioning, embedded firmware, wireless telemetry and a working web dashboard in one demonstrable system. The student can explain the ECG front end, the optical SpO2 method, threshold logic and the cloud pipeline in the viva, and the build is complex enough for a major project while remaining buildable on a breadboard.
Which sensors are used and what does each measure?
The AD8232 ECG front end measures the heart's electrical activity from three gel electrodes and outputs a single-lead ECG waveform. The MAX30102 optical sensor measures SpO2 and pulse from a fingertip using red and infrared light, reporting the result to the ESP32 over I2C at address 0x57. A DS18B20 sensor adds skin temperature, so the dashboard shows three vital signs together.
Does it work without Wi-Fi?
The local functions keep working without Wi-Fi: the OLED still shows heart rate, SpO2 and the ECG trace, and the buzzer still sounds on threshold breaches. Only the cloud dashboard and history logging need Wi-Fi, since readings are published over MQTT or HTTP. A mobile hotspot is enough for a demonstration.
Can the alert thresholds be changed?
Yes, the thresholds are constants in the firmware source, so heart-rate limits, the SpO2 floor and the temperature limit can all be edited and re-flashed in minutes. The dashboard labels show the active thresholds, and the included documentation explains which lines to change. Different demo scenarios can use different threshold sets.
Is this a certified medical device?
No, it is an educational prototype built from hobby sensor modules and is not certified, calibrated or validated for clinical use. It must not be used for diagnosis or treatment decisions, and any reading should be checked with certified equipment. The report states this limitation clearly, which itself is a strong viva point.
Can it be customized?
Yes, realistic extensions include adding a GSM module for SMS alerts when Wi-Fi is unavailable, logging readings to an SD card, adding a second MAX30102 channel, or building a mobile-app view of the dashboard. The firmware and dashboard are documented so these changes are straightforward to quote.
Components & software requirements
- ESP32-WROOM-32 development board
- AD8232 ECG front-end module
- MAX30102 pulse oximeter sensor
- DS18B20 temperature sensor
- Arduino IDE · C/C++ firmware
- MQTT · HTTP cloud telemetry
- HTML · CSS · JavaScript dashboard
- 0.96-inch OLED display
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.