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.

ESP32Major projectECE, EIE, CSE, BME
ESP3288 bpm88 bpm88 bpmOLEDFeatured
Parts
₹2,360
Build
14 weeks
Board
ESP32
Objectives
5
This is not a medical device. Say so in the report, and never use it to make treatment decisions.

Block diagram

Inputs
  • 4.98V
    MAX30102 sensorMeasures pulse and SpO2 optically
  • 4.98V
    IR thermometerMeasures forehead temperature without contact
Controller
  • ESP32
    ESP32Filters signals and checks limits
Power
  • BATTERY
    Battery and chargerMakes it portable
Outputs
  • 23.4°COLED
    OLED displayShows readings
  • CLOUD
    Cloud dashboardStores readings, plots trends and sends alerts+

Objectives

  1. To measure heart rate and SpO2 with an optical sensor and reject motion noise.
  2. To measure forehead temperature without contact and correct it to body temperature.
  3. To flag readings outside set limits.
  4. To compare readings with a commercial pulse oximeter and thermometer over at least 20 trials (Bland-Altman plot).
  5. To publish readings over MQTT and show them on a live dashboard with threshold alerts.

Parts and specifications

Total about ₹2,360 at typical online prices. Tap a part for its pinout and datasheet notes.

Design calculations

Heart rate

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.

SpO2 ratio

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.

Body temperature

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.

Battery life

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

SignalPin or connection
MAX30102 and MLX90614 SDA / SCLGPIO 21 / 22 (shared I²C)
MAX30102 INTGPIO 19
OLEDSame I²C bus, 0x3C
Battery senseGPIO 34 through 100 kΩ / 100 kΩ divider
Power18650 → TP4056 → MT3608 5 V → ESP32 VIN

Firmware outline

  1. Set the MAX30102 to 100 samples/s, LED current 7 mA, 18-bit.
  2. Collect 4 s windows of red and IR samples into a buffer.
  3. Remove DC with a moving average, band-pass, then detect peaks for heart rate.
  4. Compute AC/DC for each LED and the ratio R, then SpO2 from the calibration line.
  5. Reject the window if the finger is off (low DC) or peaks are irregular (motion).
  6. Read the MLX90614 object temperature and add the offset.
  7. Show values on the OLED and flag HR < 50 or > 120, SpO2 < 92%, temperature > 38 °C.

Test plan

TestExpected result
20 readings against a commercial oximeterMean difference within ±2 bpm and ±2% SpO2
Finger removedShows 'place finger', no false values
Hand moved during readingWindow rejected
Temperature vs clinical thermometerWithin ±0.5 °C after offset
Full battery to cut-offRuntime 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.

1. Why two wavelengths for SpO2?
2. What is the AC and the DC part?
3. Why do motion and nail polish matter?
4. Why non-contact forehead temperature?
5. Is this a medical device?
6. How would you alert family?

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