ESP32-Based Patient Health Monitoring System with a 7-Inch Touchscreen Display

I recently worked on an ESP32-based patient health monitoring prototype that brings multiple sensor readings together on a single touchscreen dashboard.

The project uses an ESP32 DevKit C as the sensor-side controller and a VIEWE ESP32-P4 Smart HMI Display as the central monitoring interface. It integrates three sensors: MAX30102 for SpO₂ measurement, AD8232 for ECG signal acquisition and heart-rate calculation, and LM35 for temperature measurement.

 

How the System Works?

The system is divided into two main units:

 

Target Side – Sensor Data Acquisition

 

 

An ESP32 DevKit C collects readings from the connected sensors.

MAX30102 communicates over I²C and provides data for SpO₂ estimation.

AD8232 provides an analog ECG signal, which the ESP32 samples through its ADC. The heart rate is also calculated from this signal.

LM35 provides an analog voltage corresponding to temperature.

Respiration rate is estimated from the AD8232 ECG signal.

 

Controller Side – Display and Monitoring

 

 

The ESP32-P4 Smart HMI Display receives the sensor readings and presents them through an interactive LVGL dashboard.

The two controllers communicate through TTL-to-RS485 converter modules. The sensor-side ESP32 sends the requested measurement data over the RS485 link, and the display updates the corresponding screen.

 

Communication and Display

I used RS485 instead of a direct UART connection to demonstrate a more modular communication arrangement. The system uses a simple command-response format, where the display requests a particular measurement and the sensor-side controller returns the corresponding data.

The 7-inch display has a 1024 × 600 resolution and capacitive touch support. The LVGL interface includes separate screens for heart rate, SpO₂, temperature, respiration rate, and ECG waveform visualization. The display also maintains a buffer of recent ECG samples so the waveform can be viewed over time.

 

A Practical Hardware Observation

While interfacing the MAX30102, I encountered an I²C detection issue. On the breakout board used in this project, the onboard SDA and SCL pull-up resistors were connected to the internal 1.8V regulator. I removed those two pull-ups and added external 4.7kΩ resistors from SDA and SCL to 3.3V. After this modification, the sensor was detected successfully by the ESP32.

 

I have documented the complete project, including hardware connections, communication protocol, firmware requirements, and display implementation on Play with Circuit.

You can find the full project details here:

ESP32-Based Patient Health Monitoring System using Smart HMI Display

 

Disclaimer: This is an educational electronics prototype. Its sensors, algorithms, and measurements have not been clinically validated and must not be used for medical diagnosis or treatment decisions.

 

License
All Rights
Reserved
licensBg
0