arpitpatawat / LiveLine

A Health Monitoring/Awareness/Risk-Alert App which will display a Person's Heart rate, SpO2 (oxygen% in the body) level concentration and Body Temperature

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LiveLine 🧑‍⚕️ 🩺

Background Study -

  • During the covid 19 period, many lives could be saved if they have been admitted early into hospital. People had faced difficulty in breathing due to decrement in oxygen saturation level in their blood. The early they know about their SpO2 concentration , they faster they can start therpy
  • It is important to identify whether your heart rate sits within the normal range. If disease or injury weakens the heart, the organs will not receive enough blood to function normally.
  • Heart attack became common to middle age people, Many a time they find themselves alone in this situation. If the family member can get aware they can approach the person at the earliest.
  • For any infectious disease — one of the cardinal signs of infection is raised body temperature. Increasing body temperature is a symbol of virus/bacteria intrusion inside the body
  • If a person has a fever with a dry cough, they may have symptoms of COVID-19.

About this Project -

From the background study, we can say that the early we get info about symptoms/abnormal movement of our body, the more chance we have to save ourselves from disease/severe attacks.
With the help of sensor, we are building a Health Monitoring/Awareness/Risk-Alert App which will display a Person's Heart rate, SpO2 (oxygen% in the body) level concentration and body temperature. Using MAX30100 Heart Rate Sensor we are measuring all these value and with the help of NodeMCU we are sending all these data to firebase cloud which will fetched by LiveLine app made with flutter and dart and displayed in the App. All the memeber can monitor their family member vitals and furthermore any abnormality in pulse rate/oxygen concentraion will be alerted to user and mail to other family member.Using standerd value, the current condition will be displayed in the app.

Components -

  1. MAX30100 Heart Rate Sensor
  2. NodeMCU
  3. Power batteries
  4. Jumper wires

MAX30100 working -

The MAX30100 consists of a pair of high-intensity LEDs (RED and IR, both of different wavelengths) and a photodetector. The wavelengths of these LEDs are 660nm and 880nm, respectively.The MAX30100 works by shining both lights onto the finger or earlobe (or essentially anywhere where the skin isn’t too thick, so both lights can easily penetrate the tissue) and measuring the amount of reflected light using a photodetector.The oxygenated hemoglobin (HbO2) in the arterial blood has the characteristic of absorbing IR light. The redder the blood (the higher the hemoglobin), the more IR light is absorbed. As the blood is pumped through the finger with each heartbeat, the amount of reflected light changes, creating a changing waveform at the output of the photodetector. As you continue to shine light and take photodetector readings, you quickly start to get a heart-beat (HR) pulse reading.
Pulse oximetry is based on the principle that the amount of RED and IR light absorbed varies depending on the amount of oxygen in your blood. The following graph is the absorption-spectrum of oxygenated hemoglobin (HbO2) and deoxygenated hemoglobin (Hb). As you can the last graph, deoxygenated blood absorbs more RED light (660nm), while oxygenated blood absorbs more IR light (880nm). By measuring the ratio of IR and RED light received by the photodetector, the oxygen level (SpO2) in the blood is calculated.



Hardware Connection -

MAX30100 PIN NodeMCU PIN
SCL D1
SDA D2
Vin 3V3
GND GND

plug NodeMCU with a USB cable.

Software Guide

  • Copy the code from LiveLine.ino file and paste in Arduino IDE.
  • To install the library navigate to the Sketch > Include Library > Manage Libraries… Wait for Library Manager to download libraries index and update list of installed libraries.
  • Filter your search by typing max30100. There should be a couple entries. Look for MAX30100lib Library by OXullo Intersecans. Click on the entry, and then select Install.
  • Create a Firebase project from console.
  • Go to Console->Database->Rules and remove auth request writing following data: (WARNING: don't do it for production appplications!)
{
  "rules": {
    ".read": true,
    ".write": true
  }
}
  • Click on the settings/cog wheel icon next to your project name at the top of the new Firebase Console
  • Click Project settings
  • Click on the Service Account tab
  • Click on the Database Secrets link in the inner left-nav
  • Hover over the non-displayed secret and click Show
  • Copy Auth ID of firebase and Also the host address
  • Paste the two values along with the code and change wifi SSID and Password (Note that wifi band must be 2.4GHz)
FIREBASE_HOST "<Firebase host setting>"
FIREBASE_AUTH "<database code>"
WIFI_SSID "<WiFi Name>"
WIFI_PASSWORD "<your WiFi password>"
  • upload the code into NodeMCU
  • press your finger on the sensor and you can see below image in serial monitor image

this sensor can be attached with pinky finger using a tape and NodeMCU can be attached in jacket/shirt and the wire is going to be replaced by a small cell (in that case connect +ve to Vin and -Ve to GND).

prjkt image

App working -

home page heart rate spo2 body temp


Contributors -
If you ❤️ this repo, then please ⭐ this.

About

A Health Monitoring/Awareness/Risk-Alert App which will display a Person's Heart rate, SpO2 (oxygen% in the body) level concentration and Body Temperature


Languages

Language:Dart 84.2%Language:C++ 10.6%Language:Objective-C 1.7%Language:Shell 1.3%Language:Java 1.1%Language:Swift 0.9%Language:Kotlin 0.3%