Skip to content

โค๏ธ๐Ÿ“Š A real-time Heart Rate & SpO2 Monitor using MAX30100, ESP32, and Firebase โ˜๏ธ. It transmits heart rate ๐Ÿ’“ & SpO2 ๐Ÿฉธ via Wi-Fi ๐Ÿ“ก to Firebase ๐Ÿ”ฅ for cloud visualization ๐Ÿ“ˆ. Features real-time monitoring โฑ๏ธ, cloud storage โ˜๏ธ & scalability ๐Ÿ› ๏ธ. Future: wearable โŒš, mobile app ๐Ÿ“ฑ & AI analytics ๐Ÿค–. ๐Ÿš€

License

Notifications You must be signed in to change notification settings

Shib-Sankar-Das/Heart-Rate-and-SpO2-Monitoring-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โค๏ธ๐Ÿ“Š Heart Rate and SpO2 Monitoring System using MAX30100, ESP32, and Firebase

๐ŸŒŸ Introduction

This project demonstrates a real-time system for monitoring heart rate (bpm) โค๏ธ and blood oxygen levels (SpO2) ๐Ÿฉธ using the MAX30100 pulse oximeter sensor, ESP32 microcontroller, and Firebase Realtime Database โ˜๏ธ. The system reads health metrics, sends the data to Firebase, and allows cloud storage and visualization. 20241115_1328391

๐Ÿ”ง Project Approach

  1. Sensor Integration ๐ŸŽ›๏ธ:

    • The MAX30100 sensor is initialized to collect heart rate and SpO2 data.
    • A callback function detects heartbeats and updates readings.
  2. Connectivity ๐Ÿ“ก:

    • The ESP32 is configured to connect to a Wi-Fi network.
    • Firebase is integrated for data storage.
  3. Data Transmission ๐Ÿ”„:

    • Sensor readings are checked for validity.
    • Valid data is transmitted to Firebase at regular intervals (every 2 seconds).
  4. Visualization ๐Ÿ“ˆ:

    • Data stored in Firebase can be visualized using Firebase's integrated dashboard or third-party analytics tools.

๐Ÿ› ๏ธ Components Required

  • ๐Ÿ”Œ ESP32 Dev Kit
  • ๐Ÿฉบ MAX30100 Pulse Oximeter Sensor
  • ๐Ÿช› Jumper Wires
  • โš™๏ธ Breadboard

๐Ÿ“ Pin Diagram

ESP32 Pin MAX30100 Pin
3.3V VCC
GND GND
SDA (GPIO21) SDA
SCL (GPIO22) SCL

๐Ÿš€ Setup Instructions

  1. Hardware Setup ๐Ÿงฉ:

    • Connect the MAX30100 sensor to the ESP32 as per the pin diagram.
    • Ensure secure and proper connections.
  2. Software Setup ๐Ÿ’ป:

    • Install the required libraries:
      • FirebaseESP32 ๐Ÿ”ฅ
      • MAX30100_PulseOximeter ๐Ÿ’“
    • Update the Wi-Fi and Firebase credentials in the code.
    • Upload the code to the ESP32 using the Arduino IDE.
  3. Firebase Setup ๐Ÿ”’:

    • Create a Firebase project.
    • Set up a Realtime Database and copy its URL.
    • Obtain the database secret (legacy token) for authentication.
  4. Run the System ๐Ÿƒ:

    • Power the ESP32.
    • Monitor the serial output for sensor readings and Firebase updates.

๐Ÿ“ท Screenshots

20241115_1328481 Screenshot 2024-11-15 1353331

๐Ÿ”ฎ Future Scope

  • Integration with Mobile Applications ๐Ÿ“ฑ:
    • Create a mobile app for real-time health monitoring.
  • Advanced Analytics ๐Ÿค–:
    • Utilize machine learning to analyze trends in health data.
  • Wearable Device โŒš:
    • Design a compact, battery-operated wearable version of the system.
  • Additional Metrics ๐Ÿ“‹:
    • Include more sensors to track other health parameters like blood pressure.

โœจ Key Features

  • Real-time Monitoring โฑ๏ธ: Logs and displays SpO2 and heart rate data continuously.
  • Cloud Storage โ˜๏ธ: Data is securely stored and accessible via Firebase.
  • Scalability ๐Ÿ› ๏ธ: The project can be extended to multiple users with minimal changes.

๐Ÿงฉ Challenges and Solutions

  • Sensor Initialization โšก:
    • Issue: MAX30100 sensor failed to initialize properly.
    • Solution: Verified wiring and ensured the library was correctly installed.
  • Firebase Integration ๐Ÿ”Œ:
    • Issue: Data upload failed during testing.
    • Solution: Confirmed correct Firebase credentials and ensured stable Wi-Fi.

About

โค๏ธ๐Ÿ“Š A real-time Heart Rate & SpO2 Monitor using MAX30100, ESP32, and Firebase โ˜๏ธ. It transmits heart rate ๐Ÿ’“ & SpO2 ๐Ÿฉธ via Wi-Fi ๐Ÿ“ก to Firebase ๐Ÿ”ฅ for cloud visualization ๐Ÿ“ˆ. Features real-time monitoring โฑ๏ธ, cloud storage โ˜๏ธ & scalability ๐Ÿ› ๏ธ. Future: wearable โŒš, mobile app ๐Ÿ“ฑ & AI analytics ๐Ÿค–. ๐Ÿš€

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages