Skip to content

AadityaPanda/Health-Monitoring-System

Repository files navigation

🏥 Health Monitoring System

An IoT-based real-time health monitoring system for heart rate and temperature tracking

Arduino ESP8266 ThingSpeak C++ IoT

Circuit-Diagram

Real-time health monitoring with IoT connectivity


📖 Project Overview

This IoT-based health monitoring system provides real-time tracking of vital signs including heart rate and body temperature. The system combines hardware sensors with cloud connectivity to enable both local display and remote monitoring capabilities.

🎯 Key Objectives

  • Real-time Monitoring: Continuous tracking of heart rate and temperature
  • Local Display: Immediate feedback via LCD screen
  • Remote Access: Cloud-based monitoring through ThingSpeak
  • User-Friendly: Simple setup with visual and auditory feedback

📋 Table of Contents


🚀 Features

📊 Monitoring Capabilities

  • 💗 Heart Rate Tracking - Real-time BPM measurement
  • 🌡️ Temperature Sensing - Accurate Fahrenheit readings
  • 📱 LCD Display - Local real-time data visualization
  • 🔊 Audio Feedback - Heartbeat sound indicators

🌐 Connectivity Features

  • 📡 Wi-Fi Enabled - ESP8266 wireless connectivity
  • ☁️ Cloud Storage - ThingSpeak data logging
  • 📈 Remote Monitoring - Access data from anywhere
  • 🔄 Real-time Updates - Continuous data transmission

🔧 Hardware Requirements

🛡️ Essential Components

🔌 Component 📝 Description 🔢 Quantity 💰 Estimated Cost
🎛️ Arduino Uno Main microcontroller board 1 $15-25
💗 Pulse Sensor Heart rate detection sensor 1 $10-15
🌡️ Temperature Sensor Analog temperature measurement 1 $5-10
📺 16x2 LCD Display Local data visualization 1 $8-12
📡 ESP8266 Wi-Fi Module Wireless connectivity 1 $5-8
🔗 Resistors Circuit protection (if needed) Various $2-5
🍞 Breadboard Prototyping platform 1 $5-8
🔌 Jumper Wires Circuit connections Set $3-5

💡 Total Estimated Cost: $53-88 USD


📊 Circuit Diagram

Circuit-Diagram

Complete circuit schematic for the health monitoring system


🛠️ Hardware Setup

📋 Step-by-Step Wiring Guide

🔌 Sensor Connections

💗 Pulse Sensor

Purple Wire → Arduino Pin A0
Red Wire    → Arduino 5V
Black Wire  → Arduino GND

🌡️ Temperature Sensor

Signal Pin → Arduino Pin A1
VCC Pin    → Arduino 5V
GND Pin    → Arduino GND
📺 LCD Display Connections

16x2 LCD Pinout

RS  → Arduino Pin 12
EN  → Arduino Pin 11
D4  → Arduino Pin 5
D5  → Arduino Pin 4
D6  → Arduino Pin 3
D7  → Arduino Pin 2
VSS → Arduino GND
VDD → Arduino 5V
V0  → Potentiometer (for contrast)
📡 ESP8266 Wi-Fi Module

ESP8266 Connections

TX  → Arduino Pin 9
RX  → Arduino Pin 10
VCC → Arduino 3.3V
GND → Arduino GND

⚠️ Important: ESP8266 operates at 3.3V. Use voltage dividers if necessary.

🖼️ Physical Setup

IMG_20181211_001750-768x441

Assembled health monitoring system hardware


💻 Software Setup

📚 Required Libraries

Install the following libraries through Arduino IDE Library Manager:

// Core Libraries
#include <LiquidCrystal.h>    // LCD display control
#include <SoftwareSerial.h>   // ESP8266 communication
#include <WiFiEsp.h>          // Wi-Fi connectivity
#include <ThingSpeak.h>       // Cloud data logging

🔧 Configuration Steps

  1. 📥 Download Arduino IDE - Download here
  2. 📦 Install Required Libraries - Use Library Manager
  3. 🔧 Configure Wi-Fi Credentials - Update in code
  4. 🔑 Set ThingSpeak API Key - Create account and get key
  5. 📤 Upload Code - Flash to Arduino board

📈 Results & Display

📺 LCD Output Format

┌─────────────────┐
│ Heart Rate: 72  │
│ Temp: 98.6°F    │
└─────────────────┘

🌐 ThingSpeak Dashboard

Thinspeak-graph

Real-time data visualization on ThingSpeak platform

📊 Data Visualization Features

  • 📈 Real-time Graphs - Heart rate and temperature trends
  • 📅 Historical Data - Long-term health tracking
  • 🔔 Alerts - Customizable threshold notifications
  • 📱 Mobile Access - Monitor from anywhere

🔄 Usage Instructions

🚀 Getting Started

  1. 🔌 Power On

    Connect Arduino to power source
    Wait for LCD initialization
    
  2. 📊 Monitor Data

    • Heart rate displays in BPM
    • Temperature shows in Fahrenheit
    • Data updates every 2-3 seconds
    
  3. 🌐 Check ThingSpeak

    • Open ThingSpeak dashboard
    • View real-time charts
    • Analyze historical trends
    

📋 Operation Modes

Mode Description Duration
🔄 Continuous Real-time monitoring Always on
📊 Data Logging Cloud data storage Every 15 seconds
🔊 Audio Feedback Heartbeat sounds On pulse detection

🌐 ThingSpeak Integration

🔧 Setup Process

  1. 📝 Create Account - ThingSpeak.com
  2. 📊 Create Channel - Set up data fields
  3. 🔑 Get API Key - Copy Write API Key
  4. ⚙️ Configure Code - Update credentials

📈 Data Fields Configuration

Field Parameter Unit
Field 1 Heart Rate BPM
Field 2 Temperature °F
Field 3 Timestamp UTC

🐛 Troubleshooting

Common Issues & Solutions

🔌 Connection Issues

  • Problem: No sensor readings
  • Solution: Check wiring connections and power supply

📡 Wi-Fi Connection

  • Problem: ESP8266 not connecting
  • Solution: Verify credentials and signal strength

📺 LCD Display

  • Problem: Garbled text or no display
  • Solution: Adjust contrast potentiometer

📊 ThingSpeak Upload

  • Problem: Data not appearing online
  • Solution: Check API key and internet connection

🆘 Support Resources


🤝 Contributing

We welcome contributions to improve this health monitoring system!

🔧 How to Contribute

  1. 🍴 Fork the Repository
  2. 🌿 Create Feature Branch
    git checkout -b feature/AmazingFeature
  3. 💾 Commit Changes
    git commit -m 'Add AmazingFeature'
  4. 📤 Push to Branch
    git push origin feature/AmazingFeature
  5. 🔄 Open Pull Request

💡 Contribution Ideas

  • 📱 Mobile app development
  • 🔔 Advanced alerting system
  • 📊 Enhanced data analytics
  • 🛡️ Security improvements
  • 🎨 UI/UX enhancements

📞 Contact

👨‍💻 Project Maintainer

Email GitHub LinkedIn


🏥 Health Monitoring System - Monitoring your health, one heartbeat at a time

If you found this project helpful, please consider giving it a ⭐ on GitHub!


📜 License

MIT License

This project is licensed under the MIT License


🔗 Additional Resources

About

This project is an IoT-based health monitoring system that measures heart rate and temperature using a Pulse Sensor and an analog temperature sensor. The system displays real-time data on an LCD screen and sends the information to ThingSpeak for remote monitoring.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages