0% found this document useful (0 votes)
31 views26 pages

Wearable Health Monitoring Device

Uploaded by

nkhavoc9789
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views26 pages

Wearable Health Monitoring Device

Uploaded by

nkhavoc9789
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 26

KINGS Engineering College

Wearable Health Monitoring Device

Project Created By
Sibiyon A, Pragadish K, Naveen Kumar M, Iniyavan B, Dhillon R

Project Reviewed By: Mr. Kumaresan


Project Created Date: 07/June/2024
Project Code: SOP002
College Code: 2108
Team Name: System Sprinters
EXECUTIVE SUMMARY :-

The IoT Wearable Health Monitor project aims to create


an advanced wearable device using IoT technology for
continuous health monitoring. It will track vital signs
like heart rate, blood pressure, and physical activity,
transmitting data in real-time to health apps and EHRs
via cloud integration. This facilitates remote patient
monitoring and access to health information. The user
interface will be intuitive, with a mobile app providing
easy access to health metrics and personalized
insights. Affordability and accessibility are prioritized,
making the device inclusive for all users. Targeting
health-conscious individuals and healthcare providers,
the project seeks strategic partnerships to drive
development and market penetration. Financially, it
anticipates investments in R&D, production, and
marketing, with revenue from device sales,
subscription services, and healthcare partnerships. In
summary, the IoT Wearable Health Monitor project
promises to revolutionize healthcare management by
providing accurate monitoring, real-time data
transmission, and personalized insights, ultimately
leading to improved health outcomes and enhanced
quality of life.

The user interface will be intuitive, featuring a mobile


app that displays health metrics and trends in a user-
friendly manner. Advanced data analytics algorithms
will analyze the collected data, providing users with
actionable insights and personalized recommendations
to improve their health habits.
TABLE OF CONTENTS :-
CONTENTS :-

Executive Summary

Table of contents

Project Objective

Key Components

Key Features

Implementation Steps

Methodology

Scopes

Benefits

Results

Conclusion

Reference
PROJECT OBJECTIVES :-

The Internet of Things (IoT) Wearable Health Monitor project


aims to develop a cutting-edge, user-friendly wearable device
that continuously monitors vital health metrics. By leveraging
IoT technology, the device will provide real-time health data,
seamless integration with healthcare systems, and advanced
analytics to support proactive health management and
improved well-being.
Continuous Health Monitoring:
Track key health indicators such as heart rate, blood pressure,
blood oxygen levels, and physical activity.
User Engagement:
Provide personalized health insights and recommendations.
Data Integration:
Seamlessly integrate with existing health apps and electronic
health records (EHRs).
Accessibility and Affordability:
Ensure the device is cost-effective and accessible to a wide
range of users.

KEY COMPONENTS :-

• ESP 8266 NODE MCU


• Temperature Sensor (LM23)
• Heart rate Sensor (KY039)
• OLED Display (128×64)
ESP8266 NodeMCU:

o The NodeMCU is an open-source development board


based on the ESP8266 Wi-Fi SoC.

Temperature Sensor (LM23):

o LM23, I can The LM23 is not a commonly known


temperature sensor. It’s possible that you meant a
different sensor (such as the DS18B20 or
DHT11/DHT22).
o If you provide more details about the offer specific
information.

Heart Rate Sensor (KY039):

o The KY039 is a heartbeat sensor module that detects


heartbeats using a finger.
o It provides an analog output based on the detected
heartbeat signal.

OLED Display (128×64):

The 0.96-inch SSD1306 OLED display is commonly


used for text, shapes, and bitmap images.

KEY FEATURES :-

Real-Time Tracking:
Continuous, accurate monitoring of vital signs.
Data Analytics:
Advanced algorithms to analyze health data and provide
actionable insights.
User-Friendly Interface:
An intuitive mobile app for easy access to health metrics and
trends.
Interoperability:
Compatibility with major health platforms and EHR systems.
Extended Battery Life:
Long-lasting battery to reduce the frequency of recharging.

IMPLEMENTATION STEPS :-

Design Procedure:

1. The sensor pins are connected to the corresponding


pins of ESP8266 NODE MCU as per the circit diagram.
2. USB mini adapter cable used to power up the ESP8266
Module.
3. Create the channel in the ThingSpeak app and channel
API key copied in the program.

Set WiFi connection to the NODE MCU type SSID and


Password in the program.

4. The analog voltage received from the temperature


sensor and converted into temperature in degree
Celsius by using the ADC with the following conversion
formula.
LM35_TempC_Sensor1 = Voltage / 10;

LM35_TempF_Sensor1 = (LM35_TempC_Sensor1 * 1.8) + 32;

1. Similarly the digital heart rate value received from the


heartbeat sensor.
2. Both the values send to OLED display through SDL and
SCL pins.
3. Also the measures values send to Thingspeak cloud.
CODE FOR MICRO CONTROLLER :-

#include <Wire.h>
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <WiFi.h>
#include "ThingSpeak.h"

#define SCREEN_WIDTH 128 // OLED display width, in pixels


#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#define OLED_RESET -1 // Reset pin # (or -1 if sharing
Arduino reset pin)

Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT,


&Wire, OLED_RESET);
const char* ssid = "HeartStrokeDetector"; // your network
SSID (name)
const char* password = "Indianss@12"; // your network
password

int correlation;
WiFiClient client;
unsigned long myChannelNumber = 1700318;
const char * myWriteAPIKey = "8SBFEZ26FALQC4CA";

#include "esp_adc_cal.h"
unsigned long lastTime = 0;
unsigned long timerDelay = 30000;
#define LM35_Sensor1 39

int xpin=34;
int ypin=35;
int LM35_Raw_Sensor1 = 0;
float LM35_TempC_Sensor1 = 0.0;
float LM35_TempF_Sensor1 = 0.0;
float Voltage = 0.0;
int datapin=36;
int count=0;
unsigned long temp=0;
int fallflag;

void setup()
{
Serial.begin(9600);
WiFi.mode(WIFI_STA);
ThingSpeak.begin(client); // Initialize ThingSpeak
if(WiFi.status() != WL_CONNECTED
{
Serial.print("Attempting to connect");
while(WiFi.status() != WL_CONNECTED)
{

WiFi.begin(ssid, password);
delay(5000);
}

if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3C))
{
Serial.println(F("SSD1306 allocation failed"));
for (;;); // Don't proceed, loop forever
}

display.display();
delay(100);
display.clearDisplay();
}

void loop()
{
LM35_Raw_Sensor1 = analogRead(LM35_Sensor1);
// Calibrate ADC & Get Voltage (in mV)

Voltage = readADC_Cal(LM35_Raw_Sensor1)
// TempC = Voltage(mV) / 10

LM35_TempC_Sensor1 = Voltage / 10;


LM35_TempF_Sensor1 = (LM35_TempC_Sensor1 * 1.8) +
32;

int x = analogRead(xpin); //read from xpin


delay(1); //
int y = analogRead(ypin); //read from ypin
delay(1);
temp=millis();
while(millis()<(temp+10000))
{
if(analogRead(datapin)<100)
{
count=count+1;
while(analogRead(datapin)<100);
}
}

count=count*6;
display.clearDisplay();
display.setTextSize(2);
display.setTextColor(WHITE);
if(count==0)
{
display.setCursor(0, 30);
display.print("HB:");
display.print(count);
}
else
{
count = map(count, 60, 120, 68, 84);
// count = constrain(sensorValue,68, 84);
display.setCursor(0, 30);
display.print("HB:");
display.print(count);
}
display.setCursor(0, 10);
display.print("TEMP:");

// display.setCursor(6, 10);
display.print(LM35_TempC_Sensor1);
if((x>1500)&&(x<1800))
{
display.setTextSize(1);
display.setCursor(0, 50);
display.print("FALL:");
display.print("FORWARD");
fallflag=1
}

else if((x>2100)&&(x<2300))
{
display.setTextSize(1);
display.setCursor(0, 50);
display.print("FALL:");
display.print("BACKWARD");
fallflag=2;
}

else if((y>1500)&&(y<1800))
{
display.setTextSize(1);
display.setCursor(0, 50);
display.print("FALL:");
display.print("LEFT");
fallflag=3;
}

else if((y>2100)&&(y<2300))
{
display.setTextSize(1);
display.setCursor(0, 50);
display.print("FALL:");
display.print("RIGHT");
fallflag=4;
}

Else
{
display.setTextSize(1);
display.setCursor(0, 50);
display.print("FALL:");
display.print("NORMAL");
fallflag=0;
}

display.display();
correlation=count+LM35_TempC_Sensor1;
ThingSpeak.setField(1, LM35_TempC_Sensor1);

//ThingSpeak.setField(1, temperatureF);
ThingSpeak.setField(2, count);
ThingSpeak.setField(3, fallflag);
ThingSpeak.setField(4, correlation);

// Write to ThingSpeak. There are up to 8 fields in a channel,


allowing you to store up to 8 different

// pieces of information in a channel. Here, we write to field 1

int m = ThingSpeak.writeFields(myChannelNumber,
myWriteAPIKey);
lastTime = millis();
temp=0;
count=0;
correlation=0;
delay(1000);
}
uint32_t readADC_Cal(int ADC_Raw)
{
esp_adc_cal_characteristics_t adc_chars;
esp_adc_cal_characterize(ADC_UNIT_1, ADC_ATTEN_DB_11,
ADC_WIDTH_BIT_12, 1100, &adc_chars);
return(esp_adc_cal_raw_to_voltage(ADC_Raw, &adc_chars));
}
}
METHODOLOGY :-

Required Components :-
AD8232 ECG sensor Module Kit
Arduino Uno development Board (Method 1)
ESP 32 WiFi and Bluetooth Board (Method 2 only)(IOT)

BLOCK DIAGRAM :-

SOURCE CODE FOR ARDUINO UNO :-

void setup()
{
// initialize the serial communication:
Serial.begin(9600);
pinMode(10, INPUT); // Setup for leads off detection LO +
pinMode(11, INPUT); // Setup for leads off detection LO -

void loop()
{
if((digitalRead(10) == 1)||(digitalRead(11) == 1)){
Serial.println('!');
}
Else
{
// send the value of analog input 0:
Serial.println(analogRead(A0));
}
//Wait for a bit to keep serial data from saturating
delay(1);
}
MAX30100 sensor is used for pulse oximeter with I2C based
OLED display. It has a 128x64 Resolution with a controlling
chip of SSD1306.

Simulation of This project:


SIMULATION CODE :-
#include <LiquidCrystal.h>
int i = 0;
int sensor = A0;
float temp;
float tempc;
float tempf;

/*
Circuit:
* RS pin connected to digital pin 12
* pin E (Enable) connected to digital pin 11
* pin D4 connected to digital pin 5
* pin D5 connected to digital pin 4
* pin D6 connected to digital pin 3
* pin D7 connected to digital pin 2
* R / W pin connected to the GND
* pin 1 and pin 4 connected to GND
* pin 2 connected to + Vcc
* 10 KOhm potentiometer / trimmer control panel connected
to pin 3 of the LCD
* pin SX potentiometer / trimmer connected to + Vcc
* DX potentiometer / trimmer pin connected to GND
* the left and right pins of the potentiometer / trimmer can be
interchanged
*/
/*
The instance of the LiquidCrystal object called lcd is created
in which
the LCD pins connected to the Arduino digital outputs are
indicated
*/
LiquidCrystal lcd (12, 11, 5, 4, 3, 2);

void setup ()
{
// set the number of columns and the number of lines of lcd
lcd.begin (16, 2);
// I see the message on the display
//lcd.print ("Hackatronic.com ");
}

void loop ()
{
// place the cursor in column 0 and line 1
// (note: line 1 and the second line, as it counts starting from
0):
//for(i=0;i++;15){
//lcd.setCursor (i, 2);
//}
// print the number of seconds since the last reset
//lcd.print (micros () / 1000);
//lcd.print("^^^");
//lcd.print(" ");
//delay(100);
//delay(2000);
//t=t+2;
temp=analogRead(sensor);
tempc=(temp*5)/10;
tempf=(tempc*1.8)+32;
lcd.setCursor(0,0);
lcd.print("Temp in C = ");
lcd.println(tempc);
lcd.setCursor(0,1);
lcd.print("Temp in F = ");
lcd.println(tempf);
}

1. Hardware Design and Development :-


Component Selection:
Choose appropriate sensors (heart rate, blood pressure,
blood oxygen, accelerometer, gyroscope), microcontroller,
wireless communication modules (Bluetooth, Wi-Fi), power
management components, and display (if needed).
Prototyping:
Create initial prototypes using development boards and
sensor modules.
PCB Design:
Design a custom PCB to integrate all selected
components.
Housing Design:
Develop an ergonomic, durable, and waterproof casing for
the wearable device.

2. Firmware Development :-
Sensor Integration:
Write firmware to interface with all sensors, ensuring
accurate data acquisition.
Data Processing:
Implement algorithms for preprocessing sensor data (e.g.,
filtering noise, calibration).
Communication Protocols:
Develop code to handle wireless communication (BLE, Wi-
Fi) for data transmission to smartphones and cloud servers.
Power Management:
Optimize firmware for low power consumption and
efficient battery management.

3. Software Development :-
Mobile Application:
Develop iOS and Android apps to display real-time health
data, trends, and personalized insights. Ensure a user-friendly
interface.
Cloud Integration:
Set up a cloud infrastructure for storing, processing, and
analyzing health data. Use platforms like AWS, Google Cloud,
or Azure.
API Development:
Create APIs for data integration with health apps and
electronic health records (EHR) systems.
Data Analytics:
Implement machine learning algorithms for analyzing
health data and providing personalized recommendations.

4. Security Implementation :-
Data Encryption:
Ensure secure data transmission and storage using
encryption protocols.
Compliance:
Adhere to health data regulations (e.g., HIPAA) to protect
user privacy.

SCOPES :-

1. Health Monitoring
Vital Sign Tracking: Continuous monitoring of heart rate,
blood pressure, blood oxygen levels, and body temperature.
Activity Tracking: Monitoring physical activity, including steps
taken, distance traveled, calories burned, and sleep patterns.
Chronic Disease Management: Providing real-time data to
help manage conditions such as diabetes, hypertension, and
cardiovascular diseases
2. Real-Time Data Transmission:
Instant Alerts and Notifications: Sending immediate alerts to
users and healthcare providers in case of abnormal health
readings.
Remote Monitoring: Allowing healthcare professionals to
monitor patients remotely, improving patient care and reducing
the need for frequent hospital visits.

3. Data Analysis and Insights


Personalized Health Insights: Analyzing health data to
provide tailored recommendations and actionable insights for
users.
Predictive Analytics: Using machine learning algorithms to
predict potential health issues and enable preventive
measures.

4. Integration with Health Systems


Electronic Health Records (EHR): Seamless integration with
EHR systems to update patient records automatically.
Health Apps and Platforms: Compatibility with popular health
and fitness apps for comprehensive health tracking.

5. User Engagement
Intuitive User Interface: Providing a user-friendly interface
for easy access to health data and trends.
Gamification: Encouraging user engagement through
gamified elements such as goals, rewards, and challenges.

6. Healthcare Provider Collaboration


Telemedicine Support: Enhancing telemedicine services by
providing accurate and real-time health data
BENEFITS :-

1. Continuous Monitoring: Wearables provide real-time


monitoring of vital health metrics such as heart rate, blood
pressure, sleep patterns, and physical activity.

2. Timely Interventions: The valuable data from wearables


enables individuals and healthcare providers to stay informed
about health conditions. This facilitates timely interventions
and personalized health management.

3. Remote Patient Monitoring: Healthcare providers use


wearable health monitoring devices to remotely monitor
patients. These devices help detect health issues, manage
chronic conditions, track post-operative recovery, and gather
real-time health data for more informed decision-making.

4. Improved Patient Compliance: Although adoption rates vary,


wearables empower patients to self-monitor their health.
Providers can utilize wearable data to help diagnose and make
informed care decisions.

5. Evolution of Technology: Wearable technology is continually


improving, offering new features and capabilities for better
health outcomes.

6. Improved Healthcare Efficiency: Minimizes unnecessary


hospital visits through effective remote monitoring and early
detection of issues.
Helps healthcare providers allocate resources more efficiently
by focusing on patients who need immediate attention.
RESULTS :-

1. Improved Health Outcomes


Early Detection of Health Issues: Continuous monitoring
allows for the early detection of irregularities in vital signs,
leading to timely interventions and better management of
conditions such as hypertension, diabetes, and cardiac
problems.
Better Chronic Disease Management: Patients with chronic
illnesses experience better disease management through
consistent monitoring and real-time data sharing with
healthcare providers, resulting in fewer complications and
hospitalizations.

2. Increased Patient Engagement


Active Participation: Users are more engaged in their health
management due to the availability of real-time data and
personalized health insights. This leads to increased adherence
to treatment plans and healthier lifestyle choices.
Behavioral Changes: Wearable devices promote positive
behavioral changes by providing feedback on physical activity,
sleep patterns, and other health metrics, encouraging users to
adopt healthier habits.

3. Enhanced Remote Monitoring and Telehealth


Reduced Hospital Visits: With the ability to monitor patients
remotely, healthcare providers can reduce the number of
unnecessary in-person visits, focusing on those who need
immediate attention.
Effective Telehealth Integration: The integration of wearable
devices with telehealth platforms enhances virtual
consultations by providing accurate, real-time health data to
physicians, improving the quality of remote care.
4. Cost Saving
Preventive Healthcare: Emphasis on preventive care and
early intervention reduces the need for expensive treatments
and hospitalizations, leading to significant cost savings for both
patients and healthcare systems.
Optimized Resource Allocation: Healthcare providers can
allocate resources more efficiently, focusing on patients who
require urgent care, thus improving overall healthcare delivery.

5. Data-Driven Insights and Predictive Analytics


Health Trend Analysis: Long-term data collection enables the
analysis of health trends and patterns, helping users and
healthcare providers make informed decisions.
Predictive Health Alerts: Machine learning algorithms can
predict potential health issues based on historical data,
allowing for proactive measures and personalized care plans.

6. Enhanced Safety and Emergency Response


Instant Alerts: The device can send immediate alerts to users
and healthcare providers in case of emergencies, such as
sudden drops in heart rate or blood oxygen levels, ensuring
timely medical assistance.
Fall Detection: Built-in sensors can detect falls and other
accidents, triggering automatic alerts to emergency contacts or
healthcare providers.
CONCLUSION :-

The implementation of wearable health monitoring devices


yields significant benefits, including improved health outcomes,
increased patient engagement, enhanced remote monitoring
capabilities, cost savings, data-driven insights, enhanced
safety, support for clinical research, and user empowerment.
These results highlight the transformative potential of wearable
health technology in personal and public healthcare, leading to
a healthier, more informed population and more efficient
healthcare systems.

REFERENCE :-

1. Simulator for Arduino with temperature sensor


(https://www.hackatronic.com/arduino-with-
temperature-sensor-interfacing-lcd-and-lm35/ )

2. Heart Rate Display


(https://www.circuitschools.com/ecg-monitoring-
system-using-ad8232-with-arduino-or-esp32-iot-
based/)

3. Design For Health Monitor


(https://www.electronicsforu.com/electronics-
projects/wearable-iot-health-monitoring-system )

4. Book Reference: (“Wearable Sensors: Fundamentals,


Implementation and Applications", Authors: Edward
Sazonov, Michael R. Neuman, Publisher: Academic
Press, Year: 2014, ISBN: 978-0124186620)

5. Book Reference: ("Wearable and Implantable Medical


Devices: Applications and Challenges", Editor:
Nilanjan Dey, Amira S. Ashour, Simon James Fong,
Chintan Bhatt, Publisher: Academic Press, Year:
2019, ISBN: 978-0128153697)

You might also like