|
arduino IDEArduino
|
ESP32-Based Patient Health Monitoring System with Smart HMI Display
This project demonstrates an ESP32-based patient health monitoring prototype that integrates multiple sensors with a 7-inch touchscreen display. It brings together sensor interfacing, analog signal acquisition, serial communication, and graphical user interface development in one embedded electronics application.
The system uses an ESP32 DevKit C as the sensor-side controller and a VIEWE ESP32-P4 Smart HMI Display as the central monitoring interface.
Three sensors are integrated into the system:
- MAX30102 for optical measurements used to estimate SpO₂.
- AD8232 for ECG signal acquisition and heart-rate calculation.
- LM35 for temperature measurement.
The collected data is transmitted to the display through an RS485 communication link. An LVGL-based graphical interface presents the readings through individual parameter screens and graphs.
Why I Built This Project
I wanted to explore how multiple sensors, microcontrollers, and communication interfaces could be combined into a single practical embedded system.
Instead of handling sensor acquisition and display processing on one controller, I used two ESP32 controllers. This creates a modular architecture where one unit focuses on collecting sensor data while the other handles visualization and touchscreen interaction.
The project also provides a practical way to explore RS485 communication and LVGL-based graphical interface development.
How the System Works?
The system consists of two main units.
Sensor-Side Controller
The ESP32 DevKit C collects data from the connected sensors.
The MAX30102 communicates through I²C and provides optical readings used to estimate SpO₂. In this implementation, heart rate is calculated separately from the AD8232 signal.
The AD8232 provides an analog ECG signal, which the ESP32 samples through its ADC. Respiration rate is also estimated from this ECG signal.
The LM35 produces an analog voltage proportional to temperature. The ESP32 reads this voltage and calculates the temperature value.
After collecting the measurements, the sensor-side controller prepares the requested data and sends it through UART to a TTL-to-RS485 converter.
Display-Side Controller
The second controller is a VIEWE ESP32-P4 Smart HMI Display with a 7-inch, 1024 × 600 touchscreen.
A second TTL-to-RS485 converter receives the differential communication signals and converts them back into UART data for the ESP32-P4.
The display processes the received information and updates the LVGL dashboard. Users can navigate between separate screens for heart rate, SpO₂, temperature, respiration rate, and ECG waveform visualization.
RS485 Communication
Two TTL-to-RS485 converters establish communication between the sensor-side ESP32 and the display controller.
The project uses a command-response communication protocol. The display requests a specific measurement, and the sensor-side controller returns the corresponding data.
The implemented commands are:
0xF1 – Heart rate from AD8232
0xF2 – Respiration rate estimated from AD8232 ECG
0xF3 – SpO₂ from MAX30102
0xF4 – Temperature from LM35
0xF5 – ECG waveform samples from AD8232
The ECG response contains 50 signed 16-bit samples. The display maintains a buffer containing the latest 60 seconds of ECG samples for waveform visualization.
RS485 was selected to demonstrate a modular communication arrangement that can be extended to multiple sensor-side units with suitable addressing and firmware.
Software and Development Tools
The sensor-side firmware is developed using Arduino IDE and the SparkFun MAX3010x Sensor Library.
The display-side firmware uses Visual Studio Code, ESP-IDF, and LVGL.
The development environment includes:
- Arduino IDE 2.3.9 or above
- SparkFun_MAX3010x_Sensor_Library 1.1.2
- Visual Studio Code 1.144.0 or above
- ESP-IDF extension 2.3.0 or above
- ESP-IDF 5.5.5
- Python 3.11.2
- LVGL port 9.2.3
Practical Hardware Observation
During MAX30102 integration, I encountered an I²C detection issue with the breakout board used in this project.
The onboard SDA and SCL pull-up resistors were connected to the internal 1.8V regulator. To resolve the issue, I removed those two onboard pull-ups and added external 4.7kΩ pull-up resistors between SDA and 3.3V and SCL and 3.3V.
After this modification, the sensor was detected successfully by the ESP32.
Project Outcome
The completed prototype demonstrates how multiple sensor interfaces, two microcontrollers, RS485 communication, and a touchscreen graphical interface can work together.
It is also a useful learning project for students and electronics enthusiasts interested in ESP32 programming, sensor integration, embedded communication protocols, and LVGL dashboard development.
The complete project tutorial, including detailed wiring connections, communication protocol, software requirements, and implementation details, is published on Play with Circuit.
Disclaimer
This is an educational electronics prototype intended for demonstration and learning purposes. Its sensors, algorithms, and measurements have not been clinically validated and must not be used for medical diagnosis or treatment decisions.
ESP32-Based Patient Health Monitoring System with Smart HMI Display
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Rachana Jain
-
ESP32-Based Patient Health Monitoring System with Smart HMI Display
This project demonstrates an ESP32-based patient health monitoring prototype that integrates multipl...
-
Building a UWB Distance Monitoring and Alert System with Arduino UNO
Measuring the distance between two devices is a useful capability in robotics, wireless sensing, and...
-
HC-SR501 PIR Motion Sensor: Working, Pinout, and Arduino Interface
Motion detection is a common requirement in embedded and electronics systems. Applications such as a...
-
Interfacing OLED Display with Arduino
OLED displays are a useful upgrade over traditional character LCDs when an Arduino project needs a c...
-
Long-Range Appliance Control Using Arduino and RYLR999 LoRa
Controlling an appliance wirelessly is straightforward when Wi-Fi is available, but things become mo...
-
GPS Tracker using Heltec WiFi LoRa 32 V4 and REYAX RYS352A GNSS Module
This browser-based GPS tracker combines the Heltec WiFi LoRa 32 V4 development board with the REYAX ...
-
Arduino Stepper Motor Control Using 28BYJ-48 and ULN2003 Driver
This project demonstrates how to control the popular 28BYJ-48 5V stepper motor using an Arduino Uno ...
-
Arduino Water Level Indicator Using Water Level Sensor
Monitoring water levels in tanks is important for preventing overflow and reducing water wastage. In...
-
Arduino Servo Motor Control
Precise motion control is at the heart of many modern electronics projects—from robotic arms to came...
-
Build a Long-Range Wireless Appliance Control System
Controlling electrical devices over long distances is often challenging, especially when internet co...
-
DHT11 and DHT22 Sensors with Arduino Uno
Temperature and humidity monitoring plays a crucial role in various applications, from smart home cl...
-
Line Follower Robot using Arduino
A Line Follower Robot (LFR) is an autonomous robot that follows a predefined path, typically a black...
-
Ultrasonic Sensor HC-SR04 Interfacing with Arduino
The HC-SR04 Ultrasonic Sensor is a widely used and easy-to-implement sensor for distance measurement...
-
Interfacing IR Sensor Module with Arduino Nano
In this project, we will learn how to interface an Infrared (IR) sensor module with an Arduino Nano....
-
-
Power Proto Board 100 x 50 mm (built-in 5 V + 3.3 V supply)
660 0 0 -
-
-
-
BorePilot - ESP32-S3 Smart Borewell Pump Controller
526 0 0 -
-
-
AudioLink – USB & Bluetooth LE Audio / Auracast Receiver with Balanced Line Outputs (nRF5340)
691 0 2 -
-







