Wearable health monitor for elderly care
Many elderly people live alone while their children work in other cities. A wrist or finger device that tracks pulse, SpO2 and body temperature and flags unusual readings can prompt a timely check.
- Parts
- ₹2,360
- Build
- 14 weeks
- Board
- ESP32
- Objectives
- 5
Block diagram
- MAX30102 sensorMeasures pulse and SpO2 optically
- IR thermometerMeasures forehead temperature without contact
- ESP32Filters signals and checks limits
- Battery and chargerMakes it portable
- OLED displayShows readings
- Cloud dashboardStores readings, plots trends and sends alerts+
Objectives
- To measure heart rate and SpO2 with an optical sensor and reject motion noise.
- To measure forehead temperature without contact and correct it to body temperature.
- To flag readings outside set limits.
- To compare readings with a commercial pulse oximeter and thermometer over at least 20 trials (Bland-Altman plot).
- To publish readings over MQTT and show them on a live dashboard with threshold alerts.
Parts and specifications
- ESP32 DevKit V1Dual-core 240 MHz, 520 KB SRAM, Wi-Fi + Bluetooth, 3.3 V logic, 12-bit ADC (use ADC1 pins when Wi-Fi is on)₹450Buy
- MAX30102 pulse oximeter moduleRed 660 nm + IR 880 nm LEDs, 18-bit ADC, up to 3200 samples/s, I²C 0x57₹220Buy
- MLX90614 IR thermometerNon-contact, 0.02 °C resolution, ±0.5 °C near body temperature, 90° field of view, I²C₹900Buy
- TP4056 charger with protection1 A CC/CV Li-ion charging to 4.2 V, DW01 protection cuts at about 2.5 V₹40Buy
- Straps, wires and box₹200
Total about ₹2,360 at typical online prices. Tap a part for its pinout and datasheet notes.
Design calculations
Find peaks in the IR signal after a 0.5 to 4 Hz band-pass. Peaks 0.8 s apart give 60 / 0.8 = 75 beats per minute; average 8 beats.
R = (ACred / DCred) / (ACir / DCir). With the empirical line SpO2 ≈ 110 − 25 × R, R = 0.6 gives 95%. Calibrate the line against a commercial oximeter.
Forehead skin reads 1 to 2 °C below core. Apply an offset found from 20 readings against a clinical thermometer, and only within 3 to 5 cm.
Average current about 90 mA with Wi-Fi bursts. 2600 mAh × 0.8 usable / 90 mA ≈ 23 hours. Deep sleep between readings raises this many times.
Pin map
| Signal | Pin or connection |
|---|---|
| MAX30102 and MLX90614 SDA / SCL | GPIO 21 / 22 (shared I²C) |
| MAX30102 INT | GPIO 19 |
| OLED | Same I²C bus, 0x3C |
| Battery sense | GPIO 34 through 100 kΩ / 100 kΩ divider |
| Power | 18650 → TP4056 → MT3608 5 V → ESP32 VIN |
Firmware outline
- Set the MAX30102 to 100 samples/s, LED current 7 mA, 18-bit.
- Collect 4 s windows of red and IR samples into a buffer.
- Remove DC with a moving average, band-pass, then detect peaks for heart rate.
- Compute AC/DC for each LED and the ratio R, then SpO2 from the calibration line.
- Reject the window if the finger is off (low DC) or peaks are irregular (motion).
- Read the MLX90614 object temperature and add the offset.
- Show values on the OLED and flag HR < 50 or > 120, SpO2 < 92%, temperature > 38 °C.
Test plan
| Test | Expected result |
|---|---|
| 20 readings against a commercial oximeter | Mean difference within ±2 bpm and ±2% SpO2 |
| Finger removed | Shows 'place finger', no false values |
| Hand moved during reading | Window rejected |
| Temperature vs clinical thermometer | Within ±0.5 °C after offset |
| Full battery to cut-off | Runtime in hours recorded |
These rows start your results table when you plan the project.
Viva practice
Say your answer out loud first, then check. The first 2 answers are free; Maker opens all 6.
Make it yours
One or two upgrades for a mini project, two to four for a major one.
Build these first
Datasheets and sources to cite
- Analog Devices MAX30102 datasheet
- Melexis MLX90614 datasheet
- Maxim application note 6409: SpO2 calculation
About this project
How much does the wearable health monitor for elderly care project cost?
About ₹2,360 for the parts in the base list: ESP32 DevKit V1, MAX30102 pulse oximeter module, MLX90614 IR thermometer, 0.96 inch OLED (SSD1306, I²C), TP4056 charger with protection, 18650 cell 2600 mAh (branded), MT3608 boost converter, Straps, wires and box.
How long does it take?
About 12 weeks for the base project, built on an ESP32. Each upgrade adds time.
Which branches is it suitable for?
Electronics and Communication, Instrumentation, Computer Science / IT (IoT, AI), Biomedical, as a major project.
Which pins and design calculations does it use?
MAX30102 and MLX90614 SDA / SCL on GPIO 21 / 22 (shared I²C); MAX30102 INT on GPIO 19; OLED on Same I²C bus, 0x3C. Worked calculations on this page: heart rate, spo2 ratio, body temperature, battery life.
How do I test it?
20 readings against a commercial oximeter: Mean difference within ±2 bpm and ±2% SpO2. Finger removed: Shows 'place finger', no false values. Hand moved during reading: Window rejected. Temperature vs clinical thermometer: Within ±0.5 °C after offset. Full battery to cut-off: Runtime in hours recorded.
What are the objectives?
To measure heart rate and SpO2 with an optical sensor and reject motion noise. To measure forehead temperature without contact and correct it to body temperature. To flag readings outside set limits. To compare readings with a commercial pulse oximeter and thermometer over at least 20 trials (Bland-Altman plot).
