REAL-TIME HEALTH MONITOR WITH WEB INTEGRATION
by SPLASH ELECTRONIC in Circuits > Arduino
413 Views, 7 Favorites, 0 Comments
REAL-TIME HEALTH MONITOR WITH WEB INTEGRATION




This is a Health Monitoring Device. it tracks the important vitals like heart rate , spO2 and temperature and sends it to a centralized server.
where would be this project useful?
- think of a hospital with lots of patients, by developing and deploying the project to keep track of a patient and the server being capable of handling data from multiple esp and log them according to the user , we can also deploy some ML to predict abnormality in the data and hence detect any new diseases
HOW DOES THE WHOLE SYSTEM WORKS ?
- using the sensors MAX30100 ( spo2 , HR ) , DS18B20 ( temp ) the esp gets the vitals of the patient and prints it in the serial port
- A python script runs in the host machine to get the data from the serial and to updates to the server
- data is stored in MongoDB and accessed using python flask and data is displayed out in the website and graphs is also rendered in the web page as requested
LIVE SERVER RUNNING HERE -> https://health-monitor-legitcoconut.vercel.app/
CODE WILL BE AVAILABLE IN GIT -> https://github.com/LegitCoconut/health-monitor
Downloads
Supplies





- ESP8266 / ESP32
- MAX30100 heart rate sp02 sensor
- DS18B20 temperature sensor
- Buzzer
- Perfboard
- carboards , some wires anfd glue
Wiring Up the Microcontroller



connections for MAX30100 sensor ( refer this blog to setup the sensor -> setup_blog )
- SCL -> D1 ( gpio1 )
- SDA -> D2 ( gpio2 )
- VCC -> 3V
- GND -> GND
connections for DS18B20 sensor
- VCC -> 3v
- GND -> GND
- SIGNAL -> D5 ( gpio14 )
connections for buzzer
- VCC -> 3v
- GND -> GND
- SIGNAL -> D6 ( gpio12 )
Uploading Code to Microcontroller
What all does the code running in the microcontroller do?
- it fetches data from heart rate sensor and updates in the microcontroller
- Fetches data from the SP02 sensor and updates in the MC
- Fetches the temp data and updates in the MC
- The condition for some critical cases like low temp or high temp, low Hear rate, Sp02 will trigger the buzzer
- All these data is uploaded to the cloud for saving and logging
Code for the esp8266 is given with this part
Downloads
Setting Up the Webserver


What the web server does?
- The webserver is based on python flask framework and HTML,CSS & JS.
- There is an end point in the flask app in which it accepts the data send by the ESP and save to the database which is MongoDB in this case
this is the part of python server which helps in saving the data to the database
- the updated values are the displayed in the webpage ( visit webpage ) and also graphs are generated upon users request and then send to front-end
this particular graph creation method is used since vercel dont have the functionality to save images to the storage, images are created upon request and then shown in the front end
code for the webserver is given below can also clone from the online repo also
Downloads
Project Complete




This was a project done into consideration of using for a mass public or for the elderly people
- If you are trying to add some more features like fall detection and all , u have to add another sensor which depends on I2C, then u have to upgrade the heart rate sensor to a good one because there was some issues that we were facing while adding both heart rate and gyro at the same time
in case of any helps -> check bio for social media handles or drop a message in the given mail id