Professional Documents
Culture Documents
MONITORING SYSTEM
A PROJECT REPORT
Submitted by
Of
BACHELOR OF TECHNOLOGY
IN
ELECTRONICS INSTRUMENTATION & CONTROL ENGINEERING
We hereby declare that the project work entitled, “IOT BASED PATIENT HEALTH
MONITORING SYSTEM” submitted in partial fulfillment of the requirement for the
award of degree of “Bachelor of Technology” in Electronics Instrumentation & control
Engineering, Rajasthan Technical University, Kota, is an authentic record of our own
work carried out during VIII semester under the Guidance of Dr. Ajay Dadhich and
Mr. Divakar Kumar, Assistant professor and Mr. Rajkumar Yadav, Assistant
professor, Engineering College Ajmer.
Date:
CERTIFICATE
Date:
We are thankful to Dr. H.S. MEWARA (HOD, EICE), Engineering College Ajmer.
At last but not the least, I am thankful to all our colleagues and other staff members, who
helped us directly or indirectly in the Project work.
Date:
ABSTRACT
The healthcare monitoring systems has emerged as one of the most vital system and
became technology oriented from the past decade. Humans are facing a problem of
unexpected death due to various illnesses which is because of lack of medical care to
the patients at right time.
The primary goal was to develop a reliable patient monitoring system using IOT so that
the healthcare professionals can monitor their patients, who are either hospitalized or at
home using an IOT based integrated healthcare system with the view of ensuring patients
are cared for better. A mobile device based wireless healthcare monitoring system was
developed which can provide real time online information about physiological conditions
of a patient mainly consists of sensors, the data acquisition unit, microcontroller (i.e.,
Arduino), and programmed with a software (i.e., JAVA). The patient’s temperature, heart
beat rate, EEG data are monitored, displayed and stored by the system and sent to the
doctor’s mobile containing the application. Thus, IOT based patient monitoring system
effectively monitors patient’s health status and save life on time.
TABLE OF CONTENTS
CANDIDATE’S DECLARATION
CERTIFICATE
ACKNOWLEDGEMENT
ABSTRACT
CONTENTS
LIST OF FIGURE
6.1 Conclusion 42
6.2 Future scope 42
6.3 Reference 44
LIST OF FIGURES
1
simple electrical flag is changed over to advanced flag (computerized information) which
is put away in RFID. The put way computerized information is transmitted through
ZigBee.
Protocol to the neighborhood server ZigBee is appropriate convention for this framework.
It comprises of greatest number of cell hubs. It is more favored for gadgets which are
littler in measure and expend less vitality. From nearby server the information is
exchanged to the therapeutic server through WLAN. Medicinal server comprises of
substantial database as given in Table I. At the point when the information is exchanged to
the therapeutic server, it checks whether the patient has any past medicinal record then the
server adds the new information to that record and exchanges to the specialist. In the event
that patient does not have any past therapeutic record then the server makes new ID and
stores the information in its database. This information is exchanged to the specialist for
diagnosis.
2
CHAPTER 2
HEALTH MONITORING SYSTEM
3
Patient Health monitoring using IOT is a technology to enable monitoring of patients
outside of conventional clinical settings (e.g. in the home), which may increase access to
Care and decrease healthcare delivery costs. This can significantly improve an
individual's quality of life. It allows patients to maintain independence, prevent
complications, and minimize personal costs. This system facilitates these goals by
delivering care right to the home. In addition, patients and their family members feel
comfort knowing that they are being monitored and will be supported if a problem arises.
With tons of new healthcare technology start-ups, IOT is rapidly revolutionizing the
healthcare industry. In this project, we have designed the IOT Based Patient Health
Monitoring System using ESP8266 & Arduino. The IOT platform used in this project
is Thing Speak. Thing Speak is an open-source Internet of Things (IOT) application and
API to store and retrieve data from things using the HTTP protocol over the Internet or
via a Local Area Network. This IOT device could read the pulse rate and measure the
surrounding temperature. It continuously monitors the pulse rate and surrounding
temperature and updates them to an IOT platform.
The Arduino Sketch running over the device implements the various functionalities of
the project like reading sensor data, converting them into strings, passing them to the IoT
platform, and displaying measured pulse rate and temperature on character LCD.
4
CHAPTER 3
SYSTEM COMPONENTS DESCRIPTION
2. Temperature sensor
5. Potentiometer
6. LCD display
7. LED
9. Jumper wires
10. Breadboard
A pulse wave is the change in the volume of a blood vessel that occurs when the heart
pumps blood, and a detector that monitors this volume change is called a pulse sensor.
First, there are four main ways to measure heart rate: electrocardiogram, photoelectric
pulse wave, blood-pressure measurement, and phonocardiography. Pulse sensors use the
photoelectric method.
Pulse sensors using the photoelectric pulse wave method are classified into 2 types
depending on the measurement method: transmission and reflection.
Transmission types measure pulse waves by emitting red or infrared light from the body
surface and detecting the change in blood flow during heart beats as a change in the
amount of light transmitted through the body.
5
This method is limited to areas where light can easily penetrate, such as the fingertip or
earlobe.
ROHM is currently developing a reflection-type pulse sensor (Optical Sensor for Heart
Rate Monitor).
The reflection-type pulse sensor (Optical Sensor for Heart Rate Monitor) is explained
below.
Reflection-type pulse sensors (Optical Sensors for Heart Rate Monitor) emit infrared, red,
or green light (~550nm) towards the body and measure the amount of light reflected
using a photodiode or phototransistor. Oxygenated hemoglobin present in the blood of
the arteries has the characteristic of absorbing incident light, so by sensing the blood flow
rate (change in blood vessel volume) that changes following heart contractions over time
we are able to measure the pulse wave signal.
The Pulse Sensor is a plug-and-play heart-rate sensor for Arduino. It can be used by
students, artists, athletes, makers, and game & mobile developers who want to easily
incorporate live heart-rate data into their projects. The essence is an integrated optical
amplifying circuit and noise eliminating circuit sensor. Clip the Pulse Sensor to your
earlobe or fingertip and plug it into your Arduino, you can ready to read heart rate. Also,
it has an Arduino demo code that makes it easy to use.
The pulse sensor has three pins: VCC, GND & Analog Pin.
The pulse sensor pin configuration includes three pins which are discussed below.
• Pin1 (Ground): This is a black color wire, used to connect to the GND terminal of the
system
• Pin2 (VCC): This is a red color wire, used to connect to +3.3V/+5V voltage supply
• Pin3 (Signal): This is a purple color wire, used to connect the output signal which is
pulsating.
6
The specifications of the pulse sensor include the following:-
3.2.2 Working:-
The working principle of the pulse sensor is extremely simple. This sensor includes two
faces where the first face is connected with an LED including an ambient light sensor
whereas another face is connected with circuitry. This circuit aids in noise cancellation as
well as amplification.
On the front side, the LED is connected to a vein of a human body (ear tips or Fingertip),
however, it should be located directly on top of a vein. The LED produces light that will
drop directly on the vein.
The veins in the body will have a flow of blood within them simply once the heart is
pumping. So if we check the blood flow we can check the heartbeats also. If the blood
flow is noticed then the sensor like ambient light will receive more light as they will be
reflected through the blood, this small modification within received light can be analyzed
on time to decide our heartbeats.
3.2.3 Applications:-
• Sleep Tracking
• Monitoring of anxiety
• Alarm system
• Remote patient monitoring
7
• Health bands
• Advanced gaming consoles
There are different types of temperature sensors available and them each use different
technologies and principles to take the temperature measurement.
1. Thermistors can be very small in size. They consist of a sensing element which
can be either glass or epoxy coated and have 2 wires so they can be connected to
an electric circuit. They measure temperature by measuring the change in
resistance of the electric current. Thermistors are available as either NTC or PTC
and are often low cost.
2. RTDs or Resistance Temperature Detectors work in a similar way to Thermistors
and measure ohmic resistance to measure temperature. They are connected to a
8
circuit in a similar way to a thermistor but they have a much wider temperature
range and can measure extreme temperatures.
3. Thermocouples use two conductors, made up of different metals that are joined at
the end to form a junction. When this junction is subjected to heat, a voltage is
produced that is directly proportional to the temperature input. They are highly
versatile as different metal combinations allow for different measurement ranges;
however, they lack the fine accuracy of NTC’s and RTD’s making them the least
precise out of the three types.
4. Temperature Probes are a very common and diverse type of temperature sensor.
They consist of a thermistor, a thermocouple or RTD sensing element and can be
finished with a terminal head. All three types of sensor can be manufactured into a
variety of housing types – stock and bespoke. This allows for enhanced utility, that
may span over a multitude of different environments and media that they
encounter.
3.3.2 Applications:
Temperature sensors are used to measure temperature in many different applications and
industries. They are all around us; present in both everyday life and more industrial
settings.
9
• HVAC applications – Heating ventilation and air conditioning devices either
commercial or domesticated.
• Transit – Refrigerated vans and Lorries.
When selecting a temperature sensor for use in your application you should take the
following into consideration;
The LM35 series are precision integrated-circuit temperature devices with an output
voltage linearly-proportional to the Centigrade temperature. The LM35 device has an
advantage over linear temperature sensors calibrated in Kelvin, as the user is not required
to subtract a large constant voltage from the output to obtain convenient Centigrade
scaling. The LM35 device does not require any external calibration or trimming to
10
provide typical accuracies of ±¼°C at
Room temperature and ±¾°C over a full −55°C to 150°C temperature range.
1. The ambient temperature in the detection using the IC part temperature sensitive
2. The ambient temperature is converted into electrical voltage by a circuit in the IC,
where the temperature change is proportional to the output voltage changes.
In the series LM35
3. Every change of 1 ° C would produce a change in output voltage of 10mV s ebesar.
11
3.4 ESP8266:-
The ESP8266 is a very user-friendly and low-cost device to provide internet connectivity
to your projects. The module can work both as an Access point (can create hotspot) and
as a station (can connect to Wi-Fi), hence it can easily fetch data and upload it to the
internet making the Internet of Things as easy as possible. It can also fetch data from the
internet using API’s hence your project could access any information that is available on
the internet, thus making it smarter. Another exciting feature of this module is that it can
be programmed using the Arduino IDE which makes it a lot more user friendly.
The ESP8266 module works with 3.3V only, anything more than 3.7V would kill the
module hence be cautions with your circuits. Here is its pins description.
ESP8266 has many applications when it comes to the IOT. Here are just some of the
functions the chip is used for:
12
• P2P Connectivity: Create direct communication between ESPs and other devices
using IOT P2P connectivity.
• Web Server: Access pages written in HTML or development languages.
• ESP8266 Applications
• The ESP8266 modules are commonly found in the following IOT devices:
3.5Arduino UNO:-
13
the USB cable or by an external 9-volt battery, though it accepts voltages between 7 and
20 volts. It is similar to the Arduino Nano and Leonardo. The hardware reference design
is distributed under a Creative Commons Attribution Share-Alike 2.5 license and is
available on the Arduino website. Layout and production files for some versions of the
hardware are also available.
The word "Uno" means "one" in Italian and was chosen to mark the initial release of
Arduino Software. The Uno board is the first in a series of USB-based Arduino boards; it
and version1.0 of the Arduino IDE were the reference versions of Arduino, which have
now evolved to newer releases. The ATmega328 on the board comes preprogrammed
with a boot loader that allows uploading new code to it without the use of an external
hardware programmer.
• Microcontroller: ATmega328
• Operating Voltage: 5V
• Input Voltage (recommended): 7-12V
• Input Voltage (limits): 6-20V
• Digital I/O Pins: 14 (of which 6 provide PWM output)
14
• Analog Input Pins: 6
• DC Current per I/O Pin: 40 MA
• DC Current for 3.3V Pin: 50 MA
• Flash Memory: 32 KB of which 0.5 KB used by boot loader
• SRAM: 2 KB (ATmega328)
• EEPROM: 1 KB (ATmega328)
• Clock Speed: 16 MHz
15
5. Memory: The memory of an ATmega328 microcontroller includes 32 KB and
0.5 KB memory is utilized for the Boot loader), and also it includes SRAM-2
KB as well as EEPROM-1KB.
6. Input and Output: We know that an arguing Uno R3 includes 14-digital pins
which can be used as an input otherwise output by using the functions like pin
Mode (), digital Read(), and digital Write(). These pins can operate with 5V,
and every digital pin can give or receive 20mA, & includes a 20k to 50k
ohm pull up resistor. The maximum current on any pin is 40mA which cannot
surpass for avoiding the microcontroller from the damage. Additionally, some
of the pins of an Arduino include specific functions.
7. Serial Pins: The serial pins of an Arduino board are TX (1) and RX (0) pins
and these pins can be used to transfer the TTL serial data. The connection of
these pins can be done with the equivalent pins of the ATmega8 U2 USB to
TTL chip.
8. External Interrupt Pins: The external interrupt pins of the board are 2 & 3,
and these pins can be arranged to activate an interrupt on a rising otherwise
falling edge, a low-value otherwise a modify in value
9. PWM Pins: The PWM pins of an Arduino are 3, 5, 6, 9, 10, & 11, and gives an
output of an 8-bit PWM with the function analog write ().
10. SPI (Serial Peripheral Interface) Pins: The SPI pins are 10, 11, 12, 13
namely SS, MOSI, MISO, SCK, and these will maintain the SPI
communication with the help of the SPI library.
11. LED Pin: An arguing board is inbuilt with a LED using digital pin-13.
Whenever the digital pin is high, the LED will glow otherwise it will not glow.
12. TWI (2-Wire Interface) Pins: The TWI pins are SDA or A4, & SCL or A5,
which can support the communication of TWI with the help of Wire library.
13. AREF (Analog Reference) Pin: An analog reference pin is the reference
voltage to the inputs of an analog I/P using the function like analog Reference
().
16
14. Reset (RST) Pin: This pin brings a low line for resetting the microcontroller,
and it is very useful for using an RST button toward shields which can block
the one over the Arduino R3 board.
16. UART: An Arduino Uno uses the two functions like the transmitter digital
pin1 and the receiver digital pin0. These pins are mainly used in
UART TTL serial communication.
17. I2C: An Arduino UNO board employs SDA pin otherwise A4 pin & A5 pin
otherwise SCL pin is used for I2C communication with wire library. In this,
both the SCL and SDA are CLK signal and data signal.
18. SPI Pins: The SPI communication includes MOSI, MISO, and SCK.
19. MOSI (Pin11): This is the master out slave in the pin, used to transmit the data
to the devices
20. MISO (Pin12): This pin is a serial CLK, and the CLK pulse will synchronize
the transmission of which is produced by the master.
21. SCK (Pin13): The CLK pulse synchronizes data transmission that is generated
by the master. Equivalent pins with the SPI library is employed for the
communication of SPI. ICSP (in-circuit serial programming) headers can be
utilized for programming AT mega microcontroller directly with the boot
loader.
17
Fig. 3.5 ATMEGA328P pin diagram
3.6 POTENTIOMETER:-
The measuring instrument called a potentiometer is essentially a voltage divider used for
measuring electric potential (voltage); the component is an implementation of the same
principle, hence its name. Potentiometer is a type of position sensor. They are used to
measure displacement in any direction. Linear potentiometers linearly measure
displacement and rotary potentiometers measure rotational displacement.
The mechanical construction of rotary and linear potentiometers is very similar, each type
consists of a contact wiper and a conductive element or track. In Linear Potentiometers the
track is straight and in Rotary potentiometers the track is circular. The wiper moves along
the track to measure the displacement through proportionally dividing the input voltage.
18
Potentiometers are used throughout many industries for a whole host of applications. They
can be used in;
• Motorsport
• Automotive
• Medical
• Agriculture
• Entertainment
• Transport
• Industrial
The principle of a potentiometer is that the potential dropped across a segment of a wire of
uniform cross-section carrying a constant current is directly proportional to its length. The
potentiometer is a simple device used to measure the electrical potentials (or compare the
E.M.F. of a cell). One form of potentiometer is a uniform high-resistance wire attached to
an insulating support, marked with a linear measuring scale. In use, an adjustable
regulated voltage source E, of greater magnitude than the potential to be measured, is
connected across the wire so as to pass a steady current through it.
Between the end of the wire and any point along it will be a potential proportional to the
length of wire to that point. By comparing the potential at points along the wire with an
unknown potential, the magnitude of the unknown potential can be determined. The
instrument used for comparison must be sensitive, but need not be particularly well-
calibrated or accurate so long as its deflection from zero position can be easily detected.
1. The potentiometer is very accurate because its works on the comparing method rather
than the deflection pointer method for determining the unknown voltages.
19
2. It measures the null or balance point which does not require power for the
measurement.
3. The working of the potentiometer is free from the source resistance because no
current flows through the potentiometer when it is balanced.
20
Fig. 3.7 LCD display
Pin configuration:-
• Pin1 (Ground/Source Pin): This is a GND pin of display, used to connect the GND
terminal of the microcontroller unit or power source.
• Pin2 (VCC/Source Pin): This is the voltage supply pin of the display, used to connect
the supply pin of the power source.
• Pin3 (V0/VEE/Control Pin): This pin regulates the difference of the display, used to
connect a changeable POT that can supply 0 to 5V.
• Pin4 (Register Select/Control Pin): This pin toggles among command or data register,
used to connect a microcontroller unit pin and obtains either 0 or 1(0 = data mode, and
1 = command mode).
• Pin5 (Read/Write/Control Pin): This pin toggles the display among the read or writes
operation, and it is connected to a microcontroller unit pin to get either 0 or 1 (0 =
Write Operation, and 1 = Read Operation).
• Pin 6 (Enable/Control Pin): This pin should be held high to execute Read/Write
process, and it is connected to the microcontroller unit & constantly held high.
• Pins 7-14 (Data Pins): These pins are used to send data to the display. These pins are
connected in two-wire modes like 4-wire mode and 8-wire mode. In 4-wire mode, only
21
four pins are connected to the microcontroller unit like 0 to 3, whereas in 8-wire mode,
8-pins are connected to microcontroller unit like 0 to 7.
• Pin15 (+ve pin of the LED): This pin is connected to +5V
• Pin 16 (-ve pin of the LED): This pin is connected to GND.
22
3.7.2 Working Principle of LCD Display:-
The principle behind the LCDs is that when an electrical current is applied to the liquid
crystal molecule, the molecule tends to untwist. This causes the angle of light which is
passing through the molecule of the polarized glass and also causes a change in the angle
of the top polarizing filter. As a result, a little light is allowed to pass the polarized glass
through a particular area of the LCD.
Thus that particular area will become dark compared to others. The LCD works on the
principle of blocking light. While constructing the LCDs, a reflected mirror is arranged at
the back. An electrode plane is made of indium-tin-oxide which is kept on top and a
polarized glass with a polarizing film is also added on the bottom of the device. The
complete region of the LCD has to be enclosed by a common electrode and above it
should be the liquid crystal matter.
Next comes the second piece of glass with an electrode in the form of the rectangle on the
bottom and, on top, another polarizing film. It must be considered that both the pieces are
kept at the right angles. When there is no current, the light passes through the front of the
LCD it will be reflected by the mirror and bounced back. As the electrode is connected to
a battery the current from it will cause the liquid crystals between the common-plane
electrode and the electrode shaped like a rectangle to untwist. Thus the light is blocked
from passing through. That particular rectangular area appears blank.
3.8 LED:-
A light-emitting diode (LED) is a semiconductor light source that emits light
when current flows through it. Electrons in the semiconductor recombine with electron
holes, releasing energy in the form of photons. The color of the light (corresponding to the
energy of the photons) is determined by the energy required for electrons to cross the band
gap of the semiconductor.[5] White light is obtained by using multiple semiconductors or a
layer of light-emitting phosphor on the semiconductor device.
23
Fig.3.9 LED and its symbol
LEDs are used in applications as diverse as aviation lighting, fairy lights, automotive
headlamps, advertising, general lighting, traffic signals, camera flashes, lighted
wallpaper, horticultural grow lights, and medical devices.
LEDs have many advantages over incandescent light sources, including lower power
consumption, longer lifetime, improved physical robustness, smaller size, and faster
switching. In exchange for these generally favorable attributes, disadvantages of LEDs
include electrical limitations to low voltage and generally to DC (not AC) power, inability
to provide steady illumination from a pulsing DC or an AC electrical supply source, and
lesser maximum operating temperature and storage temperature. (In contrast to LEDs,
incandescent lamps can be made to intrinsically run at virtually any supply voltage, can
utilize either AC or DC current interchangeably, and will provide steady illumination (due
to thermal inertia) when powered by AC or pulsing DC even at a frequency as low as 50
Hz. LEDs usually need electronic support components to function, while an incandescent
bulb can and usually does operate directly from an unregulated DC or AC power source.
24
larger band gap of these semiconductors, the operating voltage of the LED increases.
Blue LEDs have an active region consisting of one or more InGaN quantum
wells sandwiched between thicker layers of GaN, called cladding layers. By varying the
relative in/Ga fraction in the InGaN quantum wells, the light emission can in theory be
varied from violet to amber.
Fig.2.10Blue LED
2. White light:-
There are two primary ways of producing white light-emitting diodes. One is to use
individual LEDs that emit three primary colors—red, green and blue—and then mix all the
colors to form white light. The other is to use a phosphor material to convert
monochromatic light from a blue or UV LED to broad-spectrum white light, similar to
a fluorescent lamp. The yellow phosphor is cerium-doped YAG crystals suspended in the
package or coated on the LED.
25
3.8.2 How does it work?
When the forward biased current IF is applied through the p-n junction of the diode,
minority carrier electrons are injected into the p-region and corresponding minority carrier
electrons are injected into the n-region. Photon emission occurs due to electron-hole
recombination in the p-region.
Electron energy transitions across the energy gap, called radioactive recombination’s,
produce photons (i.e., light), while shunt energy transitions, called non-radioactive
recombination’s, produce phonons (i.e., heat).
3.9 Resistors:-
A resistor is a passive two-terminal electrical component that implements electrical
resistance as a circuit element. In electronic circuits, resistors are used to reduce current
flow, adjust signal levels, to divide voltages, bias active elements, and
terminate transmission lines, among other uses. High-power resistors that can dissipate
many watts of electrical power as heat may be used as part of motor controls, in power
distribution systems, or as test loads for generators. Fixed resistors have resistances that
only change slightly with temperature, time or operating voltage. Variable resistors can be
used to adjust circuit elements (such as a volume control or a lamp dimmer), or as sensing
devices for heat, light, humidity, force, or chemical activity.
The RX pin of ESP8266 works on 3.3V and it will not communicate with the Arduino
when we will connect it directly to the Arduino. So, we will have to make a voltage
divider for it which will convert the 5V into 3.3V. This can be done by connecting the
2.2K & 1K resistor. Thus the RX pin of the ESP8266 is connected to pin 10 of Arduino
through the resistors.
26
used with breadboards and other prototyping tools in order to make it easy to change a
circuit as needed.
There are different types of jumper wires. Some have the same type of electrical
connector at both ends, while others have different connectors. Some common connectors
are:
• Solid tips – are used to connect on/with a breadboard or female header connector.
The arrangement of the elements and ease of insertion on a breadboard allows
increasing the mounting density of both components and jump wires without fear
of short-circuits. The jump wires vary in size and color to distinguish the different
working signals.
• Crocodile clips – are used, among other applications, to temporarily bridge
sensors, buttons and other elements of prototypes with components or equipment
that have arbitrary connectors, wires, screw terminals, etc.
• Banana connectors – are commonly used on test equipment for DC and low-
frequency AC signals.
• Registered jack (RJnn) – are commonly used in telephone (RJ11) and computer
networking (RJ45).
• RCA connectors – are often used for audio, low-resolution composite video
signals, or other low-frequency applications requiring a shielded cable.
27
• RF connectors – are used to carry radio frequency signals between circuits, test
equipment, and antennas.
• RF jumper cables - Jumper cables is a smaller and more bendable corrugated cable
which is used to connect antennas and other components to network cabling.
• Jumpers are also used in base stations to connect antennas to radio units. Usually
the most bendable jumper cable diameter is 1/2".
3.11 Breadboard:-
A breadboard is used to build and test circuits quickly before finalizing any circuit design.
The breadboard has many holes into which circuit components like ICs and resistors can
be inserted.
The bread board has strips of metal which run underneath the board and connect the holes
on the top of the board. The metal strips are laid out as shown below. Note that the top and
bottom rows of holes are connected horizontally while the remaining holes are connected
vertically.
Fig.3.13 breadboard
To use the bread board, the legs of components are placed in the holes. Each set of holes
connected by a metal strip underneath forms a node. A node is a point in a circuit where
two components are connected. Connections between different components are formed by
putting their legs in a common node. The long top and bottom row of holes are usually
used for power supply connections. The rest of the circuit is built by placing components
28
and connecting them together with jumper wires. ICs are placed in the middle of the board
so that half of the legs are on one side of the middle line and half on the other.
• Always use the side-lines for power supply connections. Power the chips from the
side-lines and not directly from the power supply.
• Use black wires for ground connections (0V), and red for other power connections.
• Keep the jumper wires on the board flat, so that the board does not look cluttered.
• Route jumper wires around the chips and not over the chips. This makes changing the
chips when needed easier.
• You could trim the legs of components like resistors, transistors and LEDs, so that
they fit in snugly and do not get pulled out by accident.
29
CHAPTER 4
SYSTEM DESIGN AND DEVELOPMENT
The proposed IOT-based health monitoring system was developed using Arduino
microcontroller which is the brain of the project.
Arduino collects real-time health data from a pulse sensor that measures heart rate in
minutes or BPM (beats per minute). An Arduino digital temperature sensor measures the
patient's body temperature. One temperature sensor is connected to Arduino to measure
room temperature so that
we can adjust the room temperature according to our health and body temperature, and we
use a humidity sensor to measure the humidity in the area so that it does not affect health.
30
The buzzer produces beeps that are audible when the patient's heartbeat occurs / is
detected. This provides a brief understanding of health care professionals of how a
patient's heart works in a particular health condition. Unusual heartbeat can be detected by
listening only to the beeps.
The standard ESP8266 IOT module connects to Arduino via UART is responsible for
connecting the machine to the internet and sending health data to the IOT (Thing speak)
server for storage and monitoring.
This region can not only send patient health data to the server but can also display real-
time data on a 16 × 2 LCD display. This is helpful for health care professionals who
actively monitor the patient on site.
• Arduino UNO
• Temperature sensor
• ESP8266
• LCD display
31
The board contains other items such as serial connection, crystal oscillator, voltage
regulator etc. It contains 2 kB of RAM, 1 kB of ROM, flash memory of 32 kB and can be
easily formatted with open-source Arduino IDE software.
There are many GND pins in Arduino; any of them can be used to grind your circuit. 5V
(4) & 3.3V (5): there is one 5V pin provides 5 volts power to Arduino UNO, and the 3.3V
pin provides an influence of 3.3 volts. Most straightforward the components used with the
Arduino vary jubilantly from five or 3.3 volts.
ANALOG (6): subtitle space beneath 'Analog In' label (A0 to A5 in UNO) by Analog In
pins … DIGITAL (7): on the far side the analog pins digital pins (0 to 13 in UNO). These
pins is used for each digital input (such as telling once a button is pressed) and digital
output (such as semiconductor diode power supply). PWM (8): These anchors act as
standard digital pins, however also can be used with one thing referred to as Pulse- Width
breadth Variation.
The Pulse Sensor is a plug-and-play heart-rate sensor for Arduino. It can be used by
students, artists, athletes, makers, and game & mobile developers who want to easily
incorporate live heart-rate data into their projects. The essence is an integrated optical
amplifying circuit and noise eliminating circuit sensor. Clip the Pulse Sensor to your
earlobe or fingertip and plug it into your Arduino, you can ready to read heart rate. Also, it
The pulse sensor has three pins: VCC, GND & Analog Pin. There is also a LED in the
center of this sensor module which helps in detecting the heartbeat. Below the LED, there
is a noise elimination circuitry that is supposed to keep away the noise from affecting the
readings.
32
4.2.3 Temperature sensor:
4.2.4 ESP8266:
ESP8266 can be a very simple and cheap tool for net production. The module will work
individually as an Associated Objective access point (can display hotspot) and as a
channel (can connect to Wi-Fi), where it will simply download information and transfer it
to the web creating a Web of things as simple as accessibility. It can also download
information from the web exploitation API where any project can access any information
available on the web, so it builds smarter. Another interesting feature of this module is that
it is often programmed to exploit Arduino IDE which makes it easy to use a lot. The
ESP8266 module works with 3.3V only; sometime 3.7V can kill the module when it alerts
you and your circuits. Here is the description of its anchors.
LCD is a flat optical display device which uses liquid crystals' light-modulating properties
combined with polarizer’s. Liquid crystals do not directly emit light, but use a backlight or
reflector to create color or monochrome images.
For designing IOT Based Patient Health Monitoring System using ESP8266 & Arduino,
assemble the circuit as shown in the figure below.
1. Connect Pulse Sensor output pin to A0 of Arduino and other two pins to VCC &GND.
2. Connect LM35 Temperature Sensor output pin to A1 of Arduino and other two
33
pins to VCC &GND.
7. The RX pin of ESP8266 works on 3.3V and it will not communicate with the
Arduino when we will connect it directly to the Arduino. So, we will have to
make a voltage divider for it which will convert the 5V into 3.3V. This can be
done by connecting the 2.2K & 1K resistor. Thus the RX pin of the ESP8266 is
connected to pin 10 of Arduino through the resistors.
34
CHAPTER 5
APPLICATION:-
Before Internet of Things, patients’ interactions with doctors were limited to visits, and
tale and text communications. There were no way doctors or hospitals could monitor
patients’ health continuously and make recommendations accordingly.
Devices in the form of wearables like fitness bands and other wirelessly connected
devices like blood pressure and heart rate monitoring cuffs, glucometer etc. give patients
access to personalized attention. These devices can be tuned to remind calorie count,
exercise check, appointments, blood pressure variations and much more.
IOT has changed people’s lives, especially elderly patients, by enabling constant tracking
of health conditions. This has a major impact on people living alone and their families.
On any disturbance or changes in the routine activities of a person, alert mechanism
sends signals to family members and concerned health providers.
By using wearable’s and other home monitoring equipment embedded with IOT,
physicians can keep track of patients’ health more effectively. They can track patients’
adherence to treatment plans or any need for immediate medical attention. IOT enables
healthcare professionals to be more watchful and connect with the patients proactively.
Data collected from IOT devices can help physicians identify the best treatment process
for patients and reach the expected outcomes.
35
3. IOT for Hospitals:-
Apart from monitoring patients’ health, there are many other areas where IOT devices
are very useful in hospitals. IOT devices tagged with sensors are used for tracking real
time location of medical equipment like wheelchairs, defibrillators, nebulizers, oxygen
pumps and other monitoring equipment. Deployment of medical staff at different
locations can also be analyzed real-time.
There are numerous opportunities for health insurers with IOT-connected intelligent
devices. Insurance companies can leverage data captured through health monitoring
devices for their underwriting and claims operations. This data will enable them to detect
fraud claims and identify prospects for underwriting. IOT devices bring transparency
between insurers and customers in the underwriting, pricing, claims handling, and risk
assessment processes. In the light of IOT-captured data-driven decisions in all operation
processes, customers will have adequate visibility into underlying thought behind every
decision made and process outcomes.
Insurers may offer incentives to their customers for using and sharing health data
generated by IOT devices. They can reward customers for using IOT devices to keep
track of their routine activities and adherence to treatment plans and precautionary health
measures. This will help insurers to reduce claims significantly. IOT devices can also
enable insurance companies to validate claims through the data captured by these
devices.
36
5.2 Advantages:-
• Error Reduction: Data generated through IoT devices not only help in
effective decision making but also ensure smooth healthcare operations with
reduced errors, waste and system costs.
5.3 Benefits:-
1) Simultaneous Reporting and Monitoring:
Real-time monitoring via connected devices can save a million lives in the event of a
medical emergency like heart failure, diabetes, asthma attacks, etc.
With the real-time monitoring of the condition in place by means of a smart medical
device connected to a Smartphone app, connected devices can collect useful medical and
health-related data.
The connected IOT device collects and transfers health data such as information about
37
blood pressure, oxygen, and blood sugar levels, weight, and ECGs.
The data is stored in the cloud and can be shared with an authorized person as per the
sharing access authority. The said person could be a physician, an insurance company, a
participating health firm or an external consultant, and it will allow them to look at the
collected data regardless of their location and time!
IOT can help in automating healthcare and patient healthcare workflow through healthcare
mobility solutions. IOT in healthcare enables interoperability, machine to machine
communication, information exchange, and data movement that make the delivery of
healthcare service extremely cost-effective. This technology-driven setup can bring down
the costs by cutting down unnecessary visits and utilizing better quality resources. Thereby
improving the process of allocation and resource planning.
For healthcare professionals, managing a vast amount of data is not as easy as it sounds.
Data collected in real-time through IOT-enabled mobile devices can be analyzed and
segregated through mobility solutions powered by IOT. This will reduce the collection of
raw data and can drive vital healthcare analytics and data-driven insights, which ultimately
reduce errors and speed up decision-making.
Real-time tracking and alerts in life-threatening situations can turn as a savior to safeguard
a critical patient’s health with constant notifications and real-time alerts for proper
monitoring, analysis, and diagnosis. Healthcare mobility solutions powered by IoT
enable real-time tracking, alerting, and monitoring. This permits hands-on treatments,
better accuracy and apt intervention by doctors hence improving the complete patient care
delivery results.
38
5. Remote Medical Assistance:-
It is a terrible situation for a patient looking for medical assistance, yet being unable to
connect to a doctor due to hindrances such as location and lack of knowledge. The
problem has got its fixture in the IOT-enabled mobility solutions that can help patients
with proper medical assistance on the go.
Patients can take medical prescriptions right at home through healthcare delivery chains
connected to patients through IOT devices.
Patients who suffer from diabetes can have devices with sensors implanted in them, just
below their skin. The sensors in the devices will send information to a patient’s mobile
phone when his or her glucose levels get too low and will record historical data for them
too. This way, patients will also be able to tell when they are most likely to be at risk for
low glucose levels in the future, as well as in the present.
Usually the right treatment for a cancer patient relies on more than just his or her weight
and age. Their lifestyles and fitness levels also play a huge role in what the proper
treatment plan for them will entail. Activity trackers track a patient’s movements, fatigue
levels, appetite, etc. Plus, the data collected from the tracker prior to treatment and after
treatment has started will tell healthcare professionals what adjustments need to be made
to the recommended treatment plan.
5.3.3HeartMonitorswithReporting:-
Patients can wear devices that monitor their heart rates, and that can determine whether
they have high blood pressure. Healthcare providers will have access to reporting of
patient’s heart monitor data when they need to pull it during checkups and exams. The
wearable devices can even alert healthcare professionals when patients are experiencing
39
arrhythmias, palpitations, strokes, or full-blown heart attacks. Ambulances can then be
dispatched in a timely fashion, which can be the difference between life and death.
5.3.5IngestibleSensors:-
Patients can now swallow devices with sensors that look like pills. Once the sensors are
ingested, they relay information to a patient’s mobile app that will help them follow the
proper dosages for their medications. Most medications aren’t taken as prescribed due to
forgetfulness or other human error. This ingestible sensor works to ensure patients are
taking the right medications, at the right time, in the right dosages. Some ingestible
sensors are also being used to more accurately diagnose patients with things like irritable
bowel syndrome and colon cancer.
Devices can now be implanted in a patient that dispenses medication in steady doses
throughout the day. Patients will be notified when they need to refill their medications.
Doctors can also be informed of missed doses during routine visits.
Wireless sensors are being used in labs and hospital refrigerators to ensure blood samples,
chilled medications, and other biomedical materials are always kept at the proper
temperatures.
40
5.3.8 Track able Inhalers:-
IOT inhalers are telling patients what they’re doing or experiencing to cause asthma
attacks, by transmitting information to their smart phones or tablets. That information can
also be shared with their physicians. The connected inhalers also remind patients when to
take their medications.
4.3.9WearablestoFightDepression:-
Apple has designed an app for its Apple Watch that helps manic depressive patients cope
with their depression. The app tracks a patient’s episodes outside of their scheduled
appointments and helps to monitor cognitive and mood functions.
41
CHAPTER 6
CONCLUSION AN FUTURE SCOPE
6.1 CONCLUSION
The Internet of Things is considered now as one of the feasible solutions for any remote
value tracking especially in the field of health monitoring. It facilitates that the individual
prosperity parameter data is secured inside the cloud, stays in the hospital are reduced for
conventional routine examinations and most important that the health can be monitored
and disease diagnosed by any doctor at any distance. In this paper, an IOT based health
monitoring system was developed. The system monitored body temperature, pulse rate and
room humidity and temperature using sensors, which are also displayed on a LCD. These
sensor values are then sent to a medical server using wireless communication. These data
are then received in an authorized personals smart phone with IOT platform. With the
values received the doctor then diagnose the disease and the state of health of the patient.
Healthcare IOT is not without challenges. IOT-enabled connected devices capture huge
amounts of data, including sensitive information, giving rise to concerns about data
security.
Implementing apt security measures is crucial. IOT explores new dimensions of patient
care through real-time health monitoring and access to patients’ health data. This data is
a goldmine for healthcare stakeholders to improve patient’s health and experiences while
making revenue opportunities and improving healthcare operations. Being prepared to
harness this digital power would prove to be the differentiator in the increasingly
connected world.
• IOT based Remote Patient Monitoring System can be enhanced to detect and
collect data of several anomalies for monitoring purpose such as home ultrasound,
Brain signal monitoring, Tumor detection etc.
• More research on problems associated with having data online, data privacy as IOT
42
is managed and run by multiple technologies and multiple vendors are involved in
it. Security algorithms and certain precautions by the users will help avoid any
security related threats in IOT network.
• The interface can be designed to control which sensors can be used by consumers
according to their needs.
• Web UI can be enhanced to perform several activities which include controlling
the hardware, real-time graphs, history and analysis graphs to observe anomalies
etc.
43
REFERENCES
RESEARCH PAPER:-
44