Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

Notifications You must be signed in to change notification settings

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

No packages published

Languages