0% found this document useful (0 votes)
107 views43 pages

Iot Base D Healt Hcare Monitoring System

JATd

Uploaded by

Jatin Kapoor
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)
107 views43 pages

Iot Base D Healt Hcare Monitoring System

JATd

Uploaded by

Jatin Kapoor
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/ 43

IOT BASED HEALTHCARE MONITORING SYSTEM

Subm i t t ed by:

JAT IN KAPOO R 16102193

SIDD HA RT H SA XE NA 16102034

Na m e of Super vi s or : SH IVAJI TY AG I

Na m e of E xt ern a l Super vi sor : DR. VINEET K HANDELWAL

Major Project Report

Submitted in partial fulfillment of the B. Tech Degree


JAYPEE INSTITUTE OF INFORMATION TECHNOLOGY
NOIDA-62
CERTIFIC ATE
T his is t o cer t if y that t he wor k sub mitt ed b y JATIN KA POOR in par tial fu lf ilment
f or the a war d of degr ee of B. T ech of Jayp ee I nstitut e of I nf or mation T echnology,
Noida -62 has b een car r ied out u nder my sup er vis ion. T his wor k has not b een
sub mitt ed par tially or wholly t o a ny ot her Univer s it y or I nstitut e f or t he a war d of
this or any ot her degr ee or dip loma.

Signatur e of Sup er vis or ……………………..


Na me of Sup er vis or Mr . SHIVAJI TYAGI
D es ignation ……………………..
Date ……………
ACKNOWLEDGMENTS
We express our deep sense of gratitude to Mr. SHIVAJI TYAGI,
Electronics Department for encouraging us to take this project. We
are highly indebted to for continuous support, supervision,
motivation and guidance throughout the tenure of our project in
spite of their hectic schedule and their experience gave us the light
in handling this project and helped us in clarifying the abstruse
concepts, requiring knowledge and perception, handling critical
situations and in understanding the objective of our work.
Lastly, we would like to thank our colleagues and friends without
whose support and constant help this project wouldn’t have been a
reality.
LI S T OF CO NTENTS

P AR T A

1. INTRO DUCT ION


 REP ORT OUT LINE
2. LITER AT URE S URVEY
3. P ROP OS ED M ETHODO LO GY
 BLO CK D IAGR AM
 F AB R IC AT ION
 F UNCT ION AL D IAGR AM
4. WORK ING
5. CONC LUS ION
6. F UTURE S COP E
7. REF ERENCES

P AR T B

1. ABS TR ACT
2. INTRO DUCT ION
3. LITER AT URE S URVEY
4. BAS IC P HYS IO LOG IC AL P AR AM ETRES
 BLO OD P RES S URE
 P ULS E R AT E
 BODY TEM P ERTURE
 SPO2
 ECG
5. HARDW ARE DES CR IP T ION
 BLO CK D IAGR AM
 B. P . AND P ULS E R ATE M ODULE
 F ALL DETE C T ION S ENS OR
 S P O2 S ENS OR
 AR DU INO UNO
 RAS P BERRY P I
 Z IGBEE
 GS M M ODULE
6. S OF T W ARE DES C R IP T ION
 AR DU INO IN TEGR ATE D DEVE LOP EM ENT S OF T W ARE
 P YTHON LANG U AGE
 HTM L/ P HP
7. S CHEM AT IC D IAGR AM AND F LO W CH ART
 S CHEM AT IC D IAGR AM
 F LO W -CH ART
8. CONC LUS ION
9. REF E RENCES
PART A
CHAPTER I
INTRODUCTION
Humans have always developed technology to support their needs
and require ments. The basic need of alteration in technology,
irrespective of the domain has been to simplify task and making
everyday chores accessible and faster .As the growth of
modernization a tre mendous growth of people going to big super
and hyper markets for shopping and various pursose is seen.
Shopping at big malls has become daily activitynow days in
cities.We can see huge rush during festive seasons in hyper and
super markets. People purchase diverse products and rush to billing
counters that causes proble m of big queue at the end. The motive of
the system of the system is to make a system that can solve the
entire problem faced in malls by people.In the today‟s world, all
super and hypermarkets should engage shopping baskets and
shopping trolleys in order to aid purchasers to select and store the
products which they have in mind to purchase. The process of
billing consumes lot of time and has created the need for shops to
hire many labour resources in the billing section, and yet the
waiting time remains considerably much for the customers. In the
paper, we see med it convenient to propose the “RFID enabled
auto matic billing system ” which targets to reduce ,and possibly
eliminate the total waiting time of purchasers, reduce the total
manpower and raw material requirement and expenses for markets
and hike the efficiency of the overall syste m.. The whole
arrange ment of the components along with RFID tag will be
implanted in the trolley and all the items in the mall will have RFID
tags. When people will pick up any product and place it in trolley
its code will be discovered and its price will be saved in me mory,
all the bill will be showed on the LCD screen. Therefore this syste m
will reduce the overall time of shopping and make our shopping
quite easy and simple.

1.1 Report outline-


The recent couple of years have witnessed explosive interest in
RFID and supporting technologies due to rapid expanding use to
track products. Similar technology can be used for unique
identification of each product in the supermarket. Since, ite m -leve l
tagging is not practical due to relatively high cost of RFID cards
deployment in respect with the very low profit margin of products,
a situation with ite m tagging with RFID labels can be easily
envisioned. Accessorizing each cart with one (or more, depending
on the size of the cart) RFID reader makes easy enlisting of items
and their cost as and when the items are put into the cart. This
enlisting is possible on pra ctically every screen with the personal
choice of size. This helps to generate an auto mated bill along with
keeping track of the expenditure.
The addition of ite ms into the system is very easy. The RFID reader
are non-contact sensors that can read over a considerable distance.
The items are added just by hovering the ite m over the reader once
only. Deleting the item fro m the cart is just as simple, which can be
done by hovering the item over the reader a second time.
Every cart can be uniquely identified by its RFID reader. Once
shopping is complete the user can use the buttons on cart to “Enlist”
the ite ms, “Calculate” the total cost and “Send” the generated bill to
the billing counter. There the customer can quickly pay and leave.
This not only saves money but also helps in easy tracking of lost
carts.
CHAPTER 2
LITERATURE SURVEY
Secure Smart Environment Using IOT based on RFID Jebah
Jaykumar[1] This paper describes about IOT and its use in
improving future shopping, shows how RFID technolog y makes life
easier and secure and thus helpful in the future. Smart Trolley in
Mega Mall J.S.Awati1 [2] in modern era, for auto mation of mall we
use a microcontroller based TROLLEY which is totally auto matic is
developed. Only customer has to display the barcode side of the
product envelope in front of barcode scanner. Then data regarding
product will be visible and spread out on screen using this trolley
and customer can buy bulk of product in very minimum time with
minimal effort. Trolley for Super Marke t Billing System S. Senath,
[3] The Automated and progra mme d Shopping Trolley is a Smart
Trolley which uses a Rasberry Pie Embedded Chip with two Bar
code Scanners and a Battery kit to allow users to self checkout at
Super Markets Smart Trolley using IOT S hraddha Nitnaware1 [4]:
The IOT based smart trolley is designed using ARM processor. This
structure eliminates the unnecessary time at a queue. In shopping
mall shopping is a daily activity in metro cities. User will have to
various products and keep the m inside the trolley & will have to go
to the counter for bill payment of all products. By using barcode
reader the cashier will make the bill at the billing counter. IOT
Based Intelligent Trolley for Shopping Mall 1Dhavale Shraddha[5] .
The whole structure with RFID tag will be placed in the trolley and
all the products in the mall will have RFID tags. When people will
pick up any product and place it in trolley its code will be detected
and its price will be stored in me mory, all the bill will be showed
on the LCD screen Electronic Shopping Cart For Effective Shopping
based on RFID Kalyani Dawkhar1[6] to overcome the problem o f
queues in the shopping malls there has been developed a smart
trolley with RFID and LCD display. When a person put any product
in the trolley it will scan and the cost, display na me and expire date
of the product will. Cost will add into final bill. Bill will be stored
in microcontroller me mory. It will transfer fro m RF trans mitter to
RF receiver. Receiver will transfer this informatio n to the PC
through serial communication. Intelligent Trolley for Automatic
Billing in Mall Using Internet Server 1Gaikwad Payoj Dilip, [7] s.
CHAPTER 3
PROPOSED METHODOLGY

3.1 Block diagram


The block diagram of the syste m which is to be made by us is given
below.

3.2 FABRICATION-
1. ARDUINO NANO – The Arduino Nano is a small, compact,
complete, and breadboard -friendly board related on the A tmega328
(Arduino Nano 3.0) or At mega168 (Arduino Nano 2.x). It has
more or less the same functional of the Arduino Duemilanove, but
in a different and easy package.

2. RFID – (radio frequency identification) it is a wireless


trans mission of communication method that uses of electro magnetic
or electrostatic couple in the radio frequency portion of the
electromagnetic spectra for unique identification of an object,
animal ,ite m or any pe

LCD – It stands for liquid -crystal display that is a light emitting


device and it is electronically flucting device that makes use of the
light fluctuation properties of the liquid crystals. Liquid crystals
never ever e mit light directly , instead it makes use of a backlight
or reflector to give
production of images in color or monochrome .

6. ESP- ESP is a electronic device that stands for electronic


stability program is is the device that connects our working syste m
to the WIFI and allows the whole working system to connect to
android and WIFI, now over here in our system it finds a use as the
ESP connects the syste m wit h the WIFI and android that helps use
to get the bill online available on our cell phones .It has its work on
the future scopes of this project as due to it we will be Able to do
lot of this online as online payments and checking of purchase
keeping records etc for the system .
3.3 Functional diagram -
The functional diagram of our system is given below
CHAPTER 4
WORKING
We are using a 3.7*3.7voltage lipo battery( that gives a total output
of 11v) due to its s mall,compact , little size and high capacity of
work, with the aid of capacitor we filter voltage and we make it to 5
voltage that is optimal for our system to work.The 5v power is then
13assed on to the arduino bord and it divides voltages to different
syste m according to its need .It supplies 3 volt to RFID and 3.3 to
AS117 that is used to connect to WIFI .RFID helps the recognition
of the materials being purchased from the shopping mall.It is a
wireless transmissio n of co mmunication method that uses of
electromagnetic or electrostatic couple in the radio frequency
portion of the electro magnetic spectra for unique identification of
an object, animal ,item or any person .Understanding the function
and working of RFID in a lay man language we say that a receiver
and trans mitter end is there the catches the signal fro m the receiver
end and pushes it to trans mitter from that it is attached to led
buzzer or any other object to get output so that it is comprehendible
.It reads all those objects in which there are RFID tags so that IOT
can catch its frequency . In our project we are using RC522 which
is co mpact, small ,easy and user friendly to use. Previosly used
125khz EM -18 RFID which was hard to control and had proble m o f
bugging In our project we are using 13.56 mh RFID that is easy to
control compact in shape size and has no proble m of bugging .It
produces a 13 bit data that is easily managble we are using AS117
to connect shopping bill to a online application fro m there we will
be able to get a bill of all the items that we have purchased and
bought .Finally we have a LCD that is of size 16*2 which compact
and enough for our system . what ever we are purchasing along with
its amount will be displayed on the LCD screen ,af ter all the
shopping is done overall price of the product will also we displayed
on the screen of the LCD.There is one major change in syste m that
is previously vrdio cameras were mounted on the trolley or the
basket made syste m bulky and bigger but in our system we are using
RFID tags with RFID that made overallsyste m look co mpact and
quiet simple
CHAPTER 5
CONCLUSION
This s mart trolley envisions simplifying billing process by helping
customers in creating a shopping session which lasts until the
customer commands it to be cleared. This session maintains the data
of each product in the basket by using RFID tags to make the entry.
It also helps in keeping the shopping experience in budget by
displaying the total cost to the customer. By the emerging trend o f
online shopping, which reduces the hassle while shopping at stores,
introduction of s mart carts and s mart baskets n ot only help the
stores to eliminate the surge but also help to reduce the usage of
paper, unnecessarily wasted in printing copies of bill, and the
number of e mployees making it mo re economical and environment
friendly. Thus the use of RFID based smart tro lley is of the great
interest and benefit to the society. The ESP attached to the system
makes is far more co mpatable by giving the whole information of
the shopping available on the android cell phones.
CHAPTER 6
Future Scope
The proposed and suggested Smart Shopping Trolley Syste m will be
very beneficial and time saving in the future of shopping in malls
.The customer will just need to write the na me of the product and
that he or she wants to search on the Android device, and the
wheeled system will auto matically guide him/her to the product/s
locations and he can do his shopping with lots of co mfort and ease .
In the addition to this we see that our android cells will go to the
counter and can pay bill of the shopping online a nd just show it at
the billing counter and walk off showing the whole purchase to the
security it will further reduce the overall time of the shopping and
even further cut down the billing rush at the counter .One more
thing can be added to the system that is a buzzer is the weight of
trolley accedes ten kg to help old customers of the malls. It will be
of the great help to the older people who are there in the malls
going for the shopping.
CHAPTER 7
REFERENCES
 Ka l ya n i Da wkhar 1 , Shra ddh a
 Je ba h Ja ykum a r 1 , Se cur e Sm a r t Dh om a se2 , Sa mr uddh i
E n vir on m ent Usi n g IOT ba sed on Ma h a ba l esh wa r kar 3 E l ect r oni c
RFI D et a l , / (IJCSIT ) Sh oppi n g Car t For E ffe ct i ve
In t ern a t i ona l Journ al of C om put er Sh oppi n g ba sed on RFID.
Sci en c e a n d In for m a ti on INT E RNAT IONA L JO URNA L OF
T ech n ol ogi es, V ol . 5 (2) , 2014, INNOVAT IVE RE SE A RC H IN
E LE CT RICAL, E LE CT RONIC S,
 J. S. Awa t i 1 , S. B. Awa t Sm a r t INST RUME NT AT ION AND
T r ol l e y i n Mega Mal l CONT RO L 2015
In t ern a t i ona l Journ al of E m er gin g
T ech n ol og y a n d Adva n ced
E n gin eer in g Websi t e:
www. i jet a e. c om (ISSN 2250 -  1Ga i kwa d Pa yoj Di l i p, 2 Sa bl e
2459, Vol um e 2, Issue 3, Mar ch Ma n i sh a Gan pa t. Int el l i gen t
2012) T r ol l e y for Aut om a t i c Bi l l i n g in
Ma l l Usi n g In t ern et Ser ver
In t ern a t i ona l Journ al of C om put er
Sci en c e a n d In for m a ti on
 S. Sa in a th, K. Sur en der, V. T ech n ol og y Res ea r ch 2016.
Vi kr am Ar vi n d Aut om a t ed
Sh oppi n g Tr ol l e y for Super
Ma r ket Bi l l in g S yst em .
In t ern a t i ona l Journ al of C om put er  Ms. Meka l a . S1 , Ar un ku mar . A2 ,
Appl i ca t i on s (0975 – 8887) Ba l a ji . N3, Pr a sath . A4 SMART
In t ern a t i ona l Con fer en ce on S HOP PING USI NG LIFI, IOT IN
Com m un i ca t i on, Com put in g an d RE T AIL S HOP In t ern at i on al
In for m a t i on T echn ol og y Res ea r ch Journ al of E n gin eer in g
(ICCCMIT -2014) a n d T echn ol og y ( IRJE T ) 2016

 Shr a ddh a Ni tn a wa r e1 , Geet a  Ga l an de Ja ysh r ee1 , Rut uja


Pa wa r 2 , Kan ch an Ga va de3 . Sm ar t Gh ol a p2 , Pr eet i Ya da v3 RFID
T r ol l e y usi n g IOT . In t erna t i ona l Ba s ed Aut om a t i c Bi l l i n g
Jour n a l for Res ea r ch in Appl i ed T r ol l e yIn t ern a ti on a l J our na l of
Sci en c e & E n gin eer in g E m er gin g T echn ol og y a n d
T ech n ol og y (I J RASE T )2017 Adva n ced E n gin eer in g (2014. )

 1Dh a va l e Shr a ddha D.,  Yoon K youn g Ch oi Sma rt


2Dh oka n eTr upt i J. , 3Shin de In for m a t i on T echn ol og y
Pr i ya n ka S., IOT Ba sed Depa r t m ent . An Auxi l iar y
In t el l i gen t Tr ol l e y for Sh oppi n g Rec om m en da t i on Syst em for
Ma l l © 2016 IJE DR | Vol um e 4, Repet i t i vel y Pur ch a sin g It em s in
Issue 2 | ISS N: 2321 -9939 E -Com m er ce IE E E . (2016)
for Super m ar ket s usin g FPGA.
 Sudh ir Ra o Rupa n a gudi 2015 Int ern at i on a l Con fer en ce on
Wor l dSer ve E duca t i on . A Novel Com m un i ca t i on, In for m a t i on &
Vi de o Pr oc es si n g ba sed Cost Com put i n g T echn ol og y
E ffe ct i ve Sm a r t Tr ol l e y S yst em
PART B
CHAPTER 1

ABSTRACT

Patients keep dying all over the world due to unavailability o f


proper and timely help. A system that is portable is required for
continuous physiological parameter monitoring and is advantageous
for elderly or ill patients who are not kept in the hospital . This IOT-
(Internet Of Things) based patient health monitoring system will for
sure enable the doctors to view their patient's health status online at
their nearby device. Raspberry Pi board is used as the gateway or
medium of sensor input devices which a re installed at the patient’s
end and to send physiological parameter value or any data related to
a patient at the doctor’s computer through internet, so that
necessary treatment can be given immediately by doctor re motely
and patients can be advised re mo tely by the doctors. We use
Raspberry Pi as a gateway or medium for a serial input value of
sensor’s data. For programming, Python and C language are used.
This remote technology for medical treatment for patients is based
on IOT.
CHAPTER 2

INTRODUCTION

The advancement in new innovative technologies and Internet o f


Things (loT) has had its substantial influence in the Health -Care
Industry. Moreover, the fusion and mix of novel advances in
technology with the healthcare systems provide us with a new
window of opportunities for improvements in the areas of patient
care and co mmunications, support for decision making and reducing
the inaccuracies in this industry. But the fragmented nature of the
healthcare system, which is further worsened by la ck of technology
for co mmunication between the specialists, has stimulated the need
of functional interoperability to ameliorate this coordination.
Nowadays, information technology is considered a necessity rather
than a supporting tool.

If we connect an e lectronic device with the body of the patient


which reads physical quantity that is te mperature and sends it to
monitor. Earlier the healthcare system was working on an analogue
input system and output taken fro m the signal is displayed on CRO
or any co mputer screen. That output data may be in analogue form
or in digital form.

The doctors can analyze and access the para meter values and data of
patient health through VNC(Virtual Networking Computing) Viewer.
And the doctor can take prompt actions for the pat ient proper
treatment. So, patient health will be monitored continuously using
this technology. We use ARM processor based Raspberry Pi as a
pathway/gateway or a medium for a serial input value of sensors.
For progra mming we use Python and C logics. VNC -server is used
at the Raspberry Pi OS and VNC -Viewer is used at doctor’s end
devices. Using a VNC viewer doctor can remotely analyze different
para meter values of patients using different sensors which are at the
patient’s end. For accessing the data from ra spberry pi, they must
have a static IP address of the remote Raspberry Pi internet. VNC
servers can be accessed using local network, or through Wi -Fi and
internet. Using this project doctors can directly view different
para meters of patients' health withou t any delay directly through the
VNC re mote display.
CHAPTER 3
LITERATURE SURVEY

Various basic physical parameters of human beings such as blood


pressure, heartbeat, oxygen saturation in Blood (SPO2), body
temperature and fall detection are measured using relevant sensors
and sent to the Arduino microcontroller board for further
processing. The co mputed para meters are then trans mitted to a
Raspberry Pi based Web server for display on the web page/VNC.
ZigBee is used for communication between Arduino -Raspberry Pi.
The necessary software is developed using Arduino IDE and Python
language. The latest parameters can be viewed from anywhere using
an internet enabled device. When the value of the physiological
para meters exceeds a certain threshold, an SMS alert is generated.
This system is especially helpful for elderly and ill patients.A
syste m is imple mented to monitor the ECG and other useful
para meters. This data is then stored in a database which can be
displayed on a website that can be accessed only by authorized
personnel. If the heart beat is in normal range monitoring goes on.
If the heart beat is observed to be abnormal an alert to the
authorized personnel by sent as an SMS via GSM module and alert
in the hospital would sound through a buzzer. (if installed).A
syste m is designed to monitor the Electrocardiogra m (ECG). This
data is then stored and is displayed in a website that can be
accessed only by authorized personnel. For ease, Pytho n
progra mming language can be implemented for communication with
ECG machines and. If the heart beat is in normal range monitoring
continues. If the heartbeat is not in normal range alert the
authorized person by sending SMS through GSM module and alert
in the hospital through buzzer sound.
CHAPTGER 4
BASIC PHYSIOLOGICAL PARAMETERS

4.1 BLOOD PRESSURE


Blood pressure results fro m the force created by the pumping actio n
of the heart that drives blood into the arteries, then into the
circulatory syste m. As the blood flows into the arteries, they offer
some resistance to the flow of blood. The early detection and
control of hypertension can reduce the risk of heart diseases and
kidney failure. The normal blood pressure for a healthy person is
120/80 mm Hg. If the blood pressure is above 140/90, it is known as
hypertension. Daily blood pressure monitoring would help to
control the blood pressure and take necessary action when it
becomes abnormal.

4.2 PULSE RATE


Pulse is the throbbing of arteries resulting from the heartbeat. Pulse
can be commonly felt at the neck, wrists, behind the knee, on the
side of the elbow. Frequency of heart beat is normally indicated b y
the pulse rate. In a healthy adult at rest, normal pulse rate can
change from 60 -100 bp m. But during sleep, this is as low as 40
bpm, and during strenuous exercise, it rises to as high as 200 -220
bpm. Irregular or rapid heartbeat shows cardiac abnormality.
Reduced pulse rate can also initiate a blocked blo od vessel.
4.3 BODY TEMPERATURE
The normal body temperature of a human being is around 98.6 -
degree Fahrenheit. Body te mperature higher than 100 -degree
Fahrenheit is considered as a fever.

4.4 SPO 2
Arterial Oxygen Saturation provides early information related to
transportation of oxygen to the tissues in the human body which is
an important indicator of the patient’s health. It gives the
percentage of the oxygenated he moglobin compared to the total
amount of hemoglobin in the blood. The SpO2 value is represented
as a percentage. Normal SpO2 of a healthy person is in the range of
95% to 100%. If it is below 95%, it indicates poor blood
oxygenation and considered as hypoxia.

4.5 ELECTROCARDIOGRAM (ECG):


The electrocardiogra m (ECG or EKG) is the register of the heart's
electrical activity. Heart muscles contract by electrical stimulation,
known as activation or excitation. These muscles are electrically
charged at rest and get contracted by d epolarizing the charge.
It gives the information about heart rate and rhythm, and the mass
or volume of the chambers of heart. There are several methods for
determining heart rate. Here we’ve used the method of counting the
number of QRS complexes over a 6 second inte rval. Multiply that
counting number by 10. This method works well for both regular
and irregular rhythms. In the fig 1.2, we can count 7 QRS
complexes, so the heart rate is 70. Like this we can determine the
Heart Rate from the ECG graph.
CHAPTER 5
HARDWARE DESCRIPTION

In this paper the blood pressure, pulse rate, oxygen saturation, body
temperature and fall detection are measured using relevant sensors
and Arduino board. These values are then transmitted to Raspberry
Pi through the zigbee module, wh ich are then uploaded on a web
page along with the date and time stamp.

5.1 BLOCK DIAGRAM

Figure. Block diagram of web based patient health monitoring syste

Figure shows the block diagram of a web based monitoring system,


this project consists of a tra nsmitter and receiver section. In
trans mitting section BP, Pulse rate module, accelerometer, spo2
sensor, temperature sensor are connected to arduino UNO. These
sensors measure the values physically from the patient and send the
corresponding data or value to Arduino UNO. Arduino uno then
transfers these values to Raspberry Pi using the Zigbee trans mitter
module. Raspberry Pi stores the reading received from a Zigbee
receiver and uploads the m on the page along with date and time. It
then sends the commands to the GSM module to send SMS alerts if
required in critical conditions.

5.2 BLOOD PRESSURE AND PULSE RATE MODULE

This module can measure systolic and diastolic BP, and pulse rate.
It has a co mpact design and fits over the west of Patients like a
watch or a band. It has featured of auto matic compression and
decompression. It operates on +5v dc voltage. This is obtaine d from
the Arduino board. It sends signals through TX pins at a baud rate
of 9600. The output reading is an 8 buy value in ASCII format with
bull parity bit and just one stop bit. Each reading consists of 15
bytes including an enter character. The typical reading will consist
of the systolic, diastolic and pulse rate. These values are separated
by comma and space. 115, 065, 095.

Fig. Blood pressure and pulse rate module


5.3 FALL DETECTION SENSOR

GY-61 DXL335 3-Axis is an Accelerometer Module . It’s based on


ADXL335 integrated circuit which is a triple axis accelero meter
with extre mely low noise and power consumption. This sensor has a
full sensing range around 3 times g. It has capability to measure the
static acceleration by gravity in tilt -sensing applications, as well as
dyna mic acceleration resulting from motion, shock, or even a small
vibration. In this investigation GY-61 ADXL35 triple axis
accelerometer is used to detect whether a person has fallen or not .
It operated on a voltage rangin g from 3v to 5v. It's current supply is
400uA. It gives a voltage that is proportional to acceleration and
angle of the device.

Fig. GY-61 DXL335 3-Axis accelerometer

6 TEMPRATURE SENSOR

LM35 is a temperature measuring device. It has an analog output


voltage that is proportional to the temperature. It sends output
voltage in Centigrade ( degree Celsius). It do not require any
external calibration or circuitry. It has a sensitivity of LM35 is 10
mV/degree Celsius.
TEMP(C)=Vout * 100 C/V).

Fig. LM35 temperature sensor

5.4 SPO 2 SENSOR

SpO2 is known as the oxygen saturation level, it is a measure of the


amount of oxygen carrying hae moglobin molecules in the blood
relative to the amount of hae moglobin molecules that do not carry
oxygen. This sensor measures the oxygen of Patient's blood without
requiring any liquid blood sample .
It has a probe consisting of 2 LEDs and one photodiode detector.
Light is made to pass through the finger. The 2 LEDs are
alternatively flashed and the resulting lig ht passes through the
fingers. This light then falls on the photodiode. Corresponding to
this, the photodiode produces an output value. The AC and DC
signal of recieved signals of both IR and RED LEDs are used to
compute the SPO2 percentage. AC r e d and AC i r are outputs which are
obtained by the difference of maximum and minimun voltages (light
intensities) across the photodiode when RED and IR LEDs are kept
On respectively. And DC r e d and DC i r are the corresponding mean
values of the voltages .

where ACred and ACir are the outputs obtained from the difference
of maximum and minimum voltages across photodiode when RED
and IR LEDs are respectively ON. And DCred and DCir are the
corresponding mean values of voltages

5.5 ARDUINO UNO BOARD

The Arduino Uno is a microcontroller board that is based on a


removable, dual-inline-package chip (DIP) ATmega328/128 AVR
microcontroller. It consists of 20 digital input and output pins (out
of which 6 can be used as PWM outputs and other 6 can be used for
analog inputs). It has 2kb of memory SRAM, 32Kb of ok chip flash
me mory and 1kb of EEPROM.The reco mmended supply voltage
should be around 7 -12V.

Fig. Arduino Uno board


5.6 RASPBERRY PI MODEL B+ CONTROLLER

The Raspberry Pi is a mini computer (consisting of a processor ,a


graphic card, and a me mory in a single package). This model has a
size of about a credit card. The board was developed for the users
who wanted to use the system without use of any co mputers or any
other operating device. Using this board, the whole s yste m can be
operated by just giving a source of power supply. The Raspberry Pi
has a Broadco m BCM2837 syste m.on.chip - (SoC), which includes
an ARM Cortex A53, 1.2 GHz processor, Video Core IV GPU, and
an on board RAM of 1GB is available. It does not conta in a built-in
hard disk but does use an SD card for booting and storage. This SD
card contains the operating system (Linux), and the data that is
required to run the Raspberry Pi. Raspberry Pi functions according
to the operating system.

Fig. Raspberry Pi board


5.7 ZIGBEE MODULE

ZigBee is for high level communication protocols using s mall


energy and low -power digital radios based on an IEEE 802.15.4 -
2003 standard for PAN. ZigBee is designed for those devices whic h
require simple wireless networking and do not need high data
transfer rates. These devices could be sensor network, information
displays, ho me/industrial automatic systems, etc. Main benefit
compared with Bluetooth is lower power demand, quick response
from sleep to awake and cost. ZigBee works at 2.4 GHz radio band
frequency with data trans mission rates from 20 to 900 kb/s. ZigBee
protocol support many different types of network like star, tree and
generic mesh.

Fig. Zigbee Module


5.8 GSM MODULE

GSM mode m is used for co mmunication between a computer and the


GSM/GPRS network. It requires a SIM card to activate
communication with the network. A GSM modem can send and
receive SMS and voice calls. This modem is also capable o f
interacting with the controller using several co mmands which are
sent but the controller serially.

Fig. GSM module


CHAPTER 6
SOFTWARE DESCRIPTION

6.1 ARDUINO INTEGRATED DEVELOPEMENT


ENVIRONMENT

It is used to write and upload code to the Arduino board. It is an


open source software and it runs on various platforms such as
Windows, MAC OS X, and Linux. The Arduino IDE provides a text
editor for writing code. These programs are called sketches and are
saved with the file extension .ino .

6.2 PYTHON LANGUAGE

It is a high level and interpreted progra mming language. Python has


a bulk of precoded libraries for more specific tasks. It is very
portable and cross-platform compatible on UNIX, Windows and
Macintosh. It is a fully supported programming language for
Raspberry pi.

6.3 HTML and PHP

HTML stands for Hyper Text Markup Language and is used to


create webpages. It is a Tag based language. PHP is a server -side
scripting language used to create dyna mic webpages. It can perform
syste m functions like read/write system files, etc. PHP code will be
embedded into HTML code.
CHAPTER 7
SCHEMATIC DIAGRAM AND SODFTWARE FLOW
CHART

7.1 SCHEMATIC DIAGRAM

Fig. Schematic diagram of setup

The block diagram of this setup is shown in the figure below. The
trans mitter pin of the blood pressure sensor is connected to pin
“RXD” of AtMega328P to receive data in serial format fro m the
blood pressure sensor. The blood pressure sensor Start Pin is
connected to the Digital write pin PD7 of arduino through a switch
to start BP sensor by the progra m. The X_out and Y_out pins of the
accelerometer are connected to the analog A0(ADC0) pin and
Analog A1 pin (ADC1) respectively to read the body acceleratio n
or the corresponding accelerometer output. OUT pin of LM35 is
connected to ADC3 pin of atmega to get the value of real time bod y
temperature. The pin 2 and 3 od Spo2 sensor are connected to PD2
and PD3 pin iof atmega.(Digitalwrite pin), in order to control RED
and IR LEDs of SPO2 sensor. The pin 5 of spo2 sensor is connected
to ADC5(analog pun 5) of the atmega in order to get the voltage
across the photodiode of SPO2 sensor . Zigbee trans mitter’s RX is
connected to Atmega TX pin. Hence Zigbee receiver and GSM
module are connected to the Raspberry Pi USB port using USB -
Serial interface -cables.

7.2 FLOWCHART
The flowchart of software at arduino and rasp berry pi web server
are shown in Figure below. IN uno progra mming, First the gGPIO
pins 2,3,7 pins are initialised and set as output pins to control the
blood pressure module and spo2 sensor. The baud rate for serial
communication is set 9600 bits/second. To receive serial data fro m
blood pressure sensor and afte r this transfer this data tro Zi gbee
trans mitter module. The Blood pressure sensor can be enabled by
sending a high to low pulse at pin & of Arduino. The serial data
which has been received fro m the blood pressure sensor is received
and stored in a variable “ :BP”. The voltages from analog pin A0 ,
A1, A3 which are connected to x_axis and y _axis odf accelero meter
and the temperature sensor res[ectively are received and stored in
variables “acc_c”, “acc_y” and “temp”
Fig. Flo wchart of programming on Arduino side

Pin 3 of arduino is set to LOW and Pin2 to HIGH to turn on IR Led.


Then Voltage at analog PIN 5 is to be taken times. This was
connected to Pin 5 of Spo2 sensor. After this we co mpute the mean
of these values and the difference between the maximum and
minimum value. These values are stored in variables named
“DC_IR” and “AC_IR”. Similarly one Pin 3 is set to High and Pin 2
to LOW to turn on Red LED, now we use the same process to
compute “DC_RED” and “AC_RED”. Equation of formulation of
spo2 is used to find the value of oxygen saturation which is then
stored in a variable “SPO2”. The patient’s body temperature
computed using formula Temp *(5.0/1023)*100 which is then stored
in variable “TEMP1”.
The programme checks the accelerometer output.. if acc_x>=410 or
acc_x <= -410 , then the arduino sends the measured sensor data
serially through the TX port to the zigbee trans mitter RX port in a
format described below along with the message “the person has
fallen”
BP (S, D, PR); TEMP1; SPO2

Where S is the systolic Blood Pressure , D is the Diastolic Blood


pressure PR is the pulse rate. Similarly if acc_x<410, acc_x>= -410
and acc_y<=410 , acc_y>= -410, the arduino transfers the message
to the zigbee trans mitter “Person has Not fallen”.
The programme checks the accelerometer output.. if acc_x>=410 or
acc_x <= -410 , then the arduino sends the measured sensor data
serially through the TX port to the zigbee trans mitter RX port in a
format described below along with the message “the person has
fallen” – BP(S,D,PR); Te mp1; SPO2 Where S is the systolic Blood
Pressure , D is the Diastolic Blood pressure PR is the pulse rate.
Similarly if acc_x<410, acc_x>= -410 and acc_y<=410 , acc_y>= -
410, the arduino transfers the message to the zigbee trans mitter
“Person has Not fallen”.
Fig. Flo w-chart for programming at Raspberry Pi’s end.

Using a python coded programme we initialise the srilar [ports of


raspberry pi and set the baud rate 9600 bits/second for the serial
communication with the GSM module and zigbee receiver . The
serial data containing the various physiological [parameters values
are received in a file The received para meters are then stored in a
file which is named Text3.txt in append mode, e very 60 seconds
along with the date and time sta mp if enabled.

These values can be uploaded on the web page which can be


accessed by h authorized personnel only by javnoj the IP address of
raspberry pi. To study the variation of para meters with time , the ir
values are stored . in a file text4.txt separated by “ , ” in append
mode.
If any physiological parameter of the patient has exceeded or is
abnormal according to the set datum, The raspberry pi then sends
the command to GSM module for sending an SMS a lert to the
authorized registered personnel . Using the PHP progra m web page
can be created and the data fro m the file text3.txt is read for
uploading the content on the webpage.
CHAPTER 8

CONCLUSIONS

In this project, implementation details of a web based automatic


physiological para meter monitoring syste m using Arduino Uno and
Raspberry Pi are presented. The physiological para meters of the
patient are updated every 60 s on the webpage. Also, when the v alue
of the physiological parameters exceeds a certain threshold, the
doctor/caretaker is alerted through SMS. This system is useful for
monitoring the health status of elderly and ill patients who are not
able to visit hospital daily and require assistanc e in critical
conditions.
CHAPTER 9
REFERENCES

 Dh i r a j S u ne h r a, P i ni Ra ma k ri s h n a,  S a l omi S. Th o ma s , Mr. Ama r


“ We b -b a s e d p a t ie n t he a lt h S a r a s wa t, An u r a g S h a s h wa t ,
mon i t or i n g s ys t e m u s i n g Ra s p b e r r y Dr . Vi s h al Bh a r ti , “ S e n si n g He a r t
P i ” , IEEE, 0 4 M a y 2 0 1 7 . b e a t a n d Bod y Te mp e r a t u r e Di gi t a ll y
using
 R. Ku ma r , Dr. M. P a ll i k on d a  Ar d u i n o” , IEEE, 2 6 J u n e 2 0 1 6.
Ra j a s e k ar a n , “ An IO T Ba s e d P at i e nt
M on i t or i n g S ys t e m u s i n g Ra s p b e r r y  Vi ve k P a r d e s h i, Saurabh Sa ga r ,
P i ” , IEEE, 3 1 Oct ob e r 2 0 1 6 . S wa p n i l M u r mu r wa r, P a n k aj Ha ge ,
“ He a l t h M on i t or i n g S ys t e ms using
 M. S u r ya De e k s h i t h Gu p t a, Io T a n d Ra s p b e rr y P i – A Re vi e w” ,
Va ms i k r i s hn a P at ch a va , Vi r gi n i a IEEE, 1 3 J u l y 2 0 1 7 .
M e n e ze s , “ He al t h ca r e b a s ed on IoT
u s i n g Ra s p b e rr y P i ” , IEEE, 1 4  Oma r S . Al wa n , K. P r a h a l d Ra o,
 January 2016. “ De d i ca t e d r e a l -ti me mon i t or i n g
s ys t e m f or health ca r e using
 Ab h i l a s h a In g ol e , S h r i k a nt Zi gBe e ” , IEEE, 2 9 Au gu s t 2 0 1 7 .
Amb a t k a r , Sandeep Ka k d e,
“ Imp l e me n t a t i on of He a l t h -ca r e  J a t i n Ar or a , Ga ga n d e e p , Ama n d e e p
mon i t or i n g s ys t e m u s i n g Ra s p b e r r y S i n gh , Na r i n de r Pa l S i n gh , S ar ve s h S
 P i ” , IEEE, 1 2 No ve mb e r 2 0 1 5 . S Ra wa t , Gu r vi n d e r Singh,
“ He a r t b ea t Ra t e M on i t or i n g S ys t e m
 M. Udi n Ha r u n Al Ra s yi d , Al i f by Pulse Te ch n i q u e Us i n g HB
Ak b a r P r a n a t a, Bi h -Hwa n g Le e , S e n s or ” , IEEE, 0 9 F e b r ua r y 2 0 1 6 .
Ferry As t i k a S a p ut r a, Ama n g
S u d a r s on o, “ P or t a b l e  P a we l Na r cz yk , Kr z ys zt o f S i wi e c,
e l e ct r oca r d i o gr a m s e n s or mon i t or i n g Wi t ol d A. P l e s k a cz, , ” P r e ci s i on
s ys t e m b a s e d on b od y a r e a n et wor k ” , Hu ma n Bod y Te mp e r a t u r e
IEEE, 2 8 J u l y 2 0 1 6 . M e a s ur e me n t Ba s e d on Th e r mi s t or
S e n s or ” , IEEE, 0 2 J u n e 2 0 1 6.
 Ne r a mi t r Chi r a k an p h a is a r n,
Th a d s a n e e Th on gk a n l u a n g,  Dh i r a j S u ne h r a, P i ni Ra ma k ri s h n a,
Yu wa t h i d a Ch i wp r ee ch a r , “ A. h e a r t “ We b -b a s e d p a t ie n t he a lt h
rate me as u r e me nt and e l e ct ri ca l mon i t or i n g s ys t e m u s i n g Ra s p b e r r y
pulse s i gn a l a n al ys i s f or s u b j e ct s P i ” , IEEE, 0 4 M a y 2 0 1 7 .
s p a n of 2 0 -8 0 ye a r s ” , IEEE, 1 9 M a y
2016.  R. Ku ma r , Dr. M. P a ll i k on d a
Ra j a s e k ar a n , “ An IO T Ba s e d P at i e nt
M on i t or i n g S ys t e m u s i n g Ra s p b e r r y b e a t a n d Bod y Te mp e r a t u r e Di gi t a ll y
P i ” , IEEE, 3 1 Oct ob e r 2 0 1 6 . u s i n g Ar d u i n o” , IEEE, 2 6 J u n e 2 0 1 6.

 M. S u r ya De e k s h i t h Gu p t a,  Vi ve k P a r d e s h i, Saurabh Sa ga r ,
Va ms i k r i s hn a P at ch a va , Vi r gi n i a S wa p n i l M u r mu r wa r, P a n k aj Ha ge ,
M e n e ze s , “ He al t h ca r e b a s ed on IoT “ He a l t h M on i t or i n g S ys t e ms using
using Ra s p b e r r y Pi”, IEEE, 14 Io T a n d Ra s p b e rr y P i – A Re vi e w” ,
January 2016. IEEE, 1 3 J u l y 2 0 1 7 .

 Ab h i l a s h a In g ol e , S h r i k a nt  Oma r S . Al wa n , K. P r a h a l d Ra o,
Amb a t k a r , Sandeep Ka k d e , “ De d i ca t e d r e a l -ti me mon i t or i n g
“ Imp l e me n t a t i on of He a l t h -ca r e s ys t e m f or health ca r e using
mon i t or i n g s ys t e m u s i n g Ra s p b e r r y Zi gBe e ” , IEEE, 2 9 Au gu s t 2 0 1 7 .
P i ” , IEEE, 1 2 No ve mb e r 2 0 1 5 .
 J a t i n Ar or a , Ga ga n d e e p , Ama n d e e p
 Ne r a mi t r Chi r a k an p h a is a r n, S i n gh , Na r i n de r Pa l Si n gh , S a r ve s h
Th a d s a n e e Th on gk a n l u a n g, S S Ra wa t , Gu r vi n d e r S i n gh ,
Yu wa t h i d a Ch i wp r ee ch a r , “ A. h e a r t “ He a r t b ea t Ra t e M on i t or i n g S ys t e m
rate me as u r e me nt and e l e ct ri ca l by Pulse Te ch n i q u e Us i n g HB
p u l s e s i gn a l S e n s or ” , IEEE, 0 9 F e b r ua r y 2 0 1 6 .
 a n a l ys i s for s u b j e ct s s p a n of 2 0 -8 0
ye a r s ” , IEEE, 1 9 Ma y 2 0 1 6 .  P a we l Na r cz yk , Kr z ys zt o f S i wi e c,
Wi t ol d A. P l e s k a cz, , ” P r e ci s i on
 S a l omi S. Th o ma s , Mr. Ama r Hu ma n Bod y Te mp e r a t u r e
S a r a s wa t, An u r a g S h a s h wa t , M e a s ur e me n t Ba s e d on Th e r mi s t or
Dr . Vi s h al Bh a r ti , “ S e n si n g He a r t S e n s or ” , IEEE, 0 2 J u n e 2 0 1 6.

You might also like