Professional Documents
Culture Documents
The increased use of mobile technologies and smart devices in the area of health has
caused a great impact on the world. Health experts are increasingly taking advantage of
the benefits these technologies bring, thus generating a significant improvement in health
care in clinical settings. Likewise, countless ordinary users are being served by the
advantages of the M-Health (Mobile Health) applications and E-Health (health care
supported by ICT) to improve, help and assist their health.
According to the constitutions of the World Health Organization (WHO), the highest
attainable standard of health is a fundamental right for an individual. As we are truly
inspired by this, we attempt to propose an innovative system that puts forward a smart
patient health tracking system that uses sensors to track patient vital parameters and uses
the internet to update the doctors and caretakers so that they can help in case of any issues
at the earliest preventing death rates.
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.
1.1 MOTIVATION
Health is always a major concern in every growth the human race is advancing in
terms of technology. Healthcare is given extreme importance now a- days by each country
due to the spread of new viral diseases. The Internet of Things (IoT) is the new revolution
of the internet which is a growing research area, especially in health care.
This project intends to propose an IoT monitoring of health systems that helps in
alerting the caretaker and getting a proper diagnosis of the patient’s state of health, even if
the doctor is at a far distance. Remote Patient Monitoring arrangement empowers
observation of patients outside of customary clinical settings (e.g. at home), which
expands access to human service offices to bring down expenses.
1.2 PROBLEM STATEMENT
Monitoring and Recording of various medical parameters of patients outside hospitals
have become a widespread phenomenon. Humans are facing the problem of unexpected
death due to various illnesses which is because of a lack of medical care for patients at the
right time. In the absence of the doctors, the patient cannot consult the doctors due to
which an emergency situation may also be created.
The personal health monitoring of each individual is considered very important
because of the rise in health problems in today's world. The increasingly stressful lifestyle
is taking a maximum toll on public health. With the ever-increasing queues at hospitals
and an increasing number of patients, the doctor fees have sky-rocketed which is affecting
especially those patients who cannot afford the fee or who are not suffering from major
ailments but get to know so only after paying a hefty fee to the doctor.
1.3 OBJECTIVES
1. To develop an automated health monitoring system that will help to monitor the host
remotely.
2. To enable an advanced solution for remote tracking of patient’s temperature and pulse
rate, also including the detection of the host's fall position.
3. To send alarming notifications via email or mobile application to the concerned
authority or person if any abnormality is detected.
1.4 METHODOLOGY
The proposed system will be based on Arduino Uno microcontroller because of
its numerous advantages of Atmega328P and will have an open-source platform
with the benefit of physical computing. The system consists of different sensors like
the Pulse Rate sensor and LM35 Temperature sensor along with an Accelerometer
module.
The main applications that the system will be able to perform are discussed as
follows: The Pulse Rate sensor and the Temperature sensor will detect the patient’s
heartbeat per minute (BPM) and body temperature respectively and the values are
displayed on the LCD screen. The accelerometer module detects if the patient has
fallen off the bed and alerts the caretaker through IoT application Thingspeak.
1.6 Chapter 2:ORGANIZATION OF REPORT:
This chapter specifies the detailed view of the proposed system including its block
diagram, hardware and software components description.
Chapter 3:
This chapter includes the implementation of the proposed system with a circuit
description, flow chart and detailed working of the designed algorithm.
Chapter 4:
This chapter includes result analysis and further discussions on advantages &
limitations of proposed solution.
Chapter 5:
This chapter includes the conclusion and scope of the project in near future.
CHAPTER 2: HARDWARE IMPLEMENTATION
The Arduino UNO is a frequently-used microcontroller in the family of Arduino. This is the
latest third version of an Arduino board and was released in the year 2011. The main features
of this board include a detachable, ATmega328 microcontroller, and available in DIP
(dual-in-line package). The programming board can easily be loaded using an Arduino
computer program (Arduino IDE). This board has huge support from the Arduino
community, which will make a very simple way to start working in embedded electronics,
and many more applications.
The Arduino board is being used for making different engineering projects and different
applications. The Arduino software is very simple to use for beginners, yet flexible and
adequate for advanced users. It runs on Windows, Linux, and Mac. Arduino makes simpler
the working process of microcontrollers and it gives some advantages over other systems for
beginners. The different types of Arduino boards that are used for beginners are Arduino
Uno, Arduino Pro, Arduino Mini, Arduino Micro, Arduino Nano, and many more.
2.1.2 What is Arduino UNO?
The Arduino UNO is a standard board of Arduino. Here UNO means 'one' in Italian. It was
named UNO to label the first release of Arduino Software. It was also the first USB board
released by Arduino. It is considered a powerful board used in various projects. Arduino. cc
developed the Arduino UNO board.
The Arduino UNO includes 6 analog pin inputs, 14 digital pins, a USB connector, a power
jack, and an ICSP (In-Circuit Serial Programming) header. It is programmed based on IDE,
which stands for Integrated Development Environment. It can run on both online and offline
platforms. The IDE is common to all available boards of Arduino.
The Arduino Uno R3 pin diagram is shown below. It comprises 14-digit I/O pins. From these
pins, 6-pins can be utilized like PWM outputs. This board includes 14 digital input/output
pins, Analog inputs-6, a USB connection, quartz crystal-16 MHz, a power jack, a USB
connection, resonator-16Mhz, a power jack, an ICSP header an RST button.
Fig: Pin Diagram
i. Power Supply: The power of the Arduino can be done with the help of an exterior power
supply otherwise USB connection. The exterior power supply (6 to 20 volts) mainly includes
a battery or an AC to DC-adapter. The connection of an adapter can be done by plugging a
center-positive plug (2.1mm) into the power jack on the board. The battery terminals can be
placed in the pins of Vin as well as GND. The power pins of an Arduino board include the
following.
● Vin: The input voltage or Vin to the Arduino while it is using an exterior power
supply opposite to volts from the connection of USB or else RPS (regulated power
supply). By using this pin, one can supply the voltage.
● 5Volts: The RPS can be used to give the power supply to the microcontroller as well
as the components that are on the Arduino board. This can approach from the input
voltage through a regulator.
● 3V3: A 3.3 supply voltage can be generated with the onboard regulator, and the
highest draw current will be 50 mA.
● GND: Ground pins
iv. 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.
● PWM Pins: The PWM pins of an Arduino are 3, 5, 6, 9, 10, & 11, and give an output
of an 8-bit PWM with the function analog Write ().
● SPI (Serial Peripheral Interface) Pins: The SPI pins are 10, 11, 12, and 13 namely SS,
MOSI, MISO, and SCK, and these will maintain the SPI communication with the help
of the SPI library.
● 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.
● 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 the Wire library.
● AREF (Analog Reference) Pin: An analog reference pin is the reference voltage to the
inputs of an analog i/ps using a function like analogReference().
● 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.
v. Communication: The communication protocols of an Arduino Uno include SPI, I2C, and
UART serial communication.
● UART: An Arduino Uno uses two functions the transmitter digital pin1 and the
receiver digital pin0. These pins are mainly used in UART TTL serial communication
● I2C: An Arduino UNO board employs an SDA pin otherwise A4 pin & A5 pin
otherwise SCL pin is used for I2C communication with the wire library. In this, both
the SCL and SDA are CLK signals and data signals.
● SPI Pins: SPI communication includes MOSI, MISO, and SCK.
● MOSI (Pin11): This is the master out slave in the pin, used to transmit the data to the
devices
● MISO (Pin12): This pin is a serial CLK, and the CLK pulse will synchronize the
transmission which is produced by the master.
● SCK (Pin13): The CLK pulse synchronizes data transmission that is generated by the
master. Equivalent pins with the SPI library are employed for the communication of
SPI. ICSP (in-circuit serial programming) headers can be utilized for programming
the ATmega microcontroller directly with the boot loader.
Here the APDS-9008 miniature surface-mount ambient light photo sensor plays an important
role and is responsible to detect the concentration of light which bounces back through the
fingertip. D1 LED gives the light source for this operation. The signal from the ambient light
sensor is amplified through op-Amp and the signal is ready to read by the microcontroller.
The working of the Pulse/Heartbeat sensor is very simple. The sensor has two sides. On one
side, the LED is placed along with an ambient light sensor, and on the other side lies the
circuitry. This circuitry is responsible for the amplification and noise cancellation work. The
LED on the front side of the sensor is placed over a vein in the human body. This can either
be a fingertip or an ear tip, but it should be placed directly on top of a vein. Now the LED
emits light that will fall on the vein directly. The veins will have blood flow inside them only
when the heart is pumping, so if the flow of blood is monitored, the heartbeats can be
monitored as well. If the flow of blood is detected then the ambient light sensor will pick up
more light since it will be reflected by the blood, this minor change in received light is
analyzed over time to determine our heartbeats.
The LM35 is an integrated circuit sensor that can measure temperature with an electrical
output proportional to the temperature (in °C). It can measure temperature with better
accuracy than using a thermistor. The sensor circuitry is sealed and not subject to oxidation.
The LM35 generates a higher output voltage than thermocouples and may not require that the
output voltage be amplified. The LM35 has an output voltage that is proportional to the
Celsius temperature. The scale factor is .01V/°C.
The LM35 does not require any external calibration or trimming and maintains an accuracy
of +/-0.4°C at room temperature and +/-0.8°C over a range of 0°C to +100°C. Another
important characteristic of the LM35 is that it draws only 60 microamps from its supply and
• Minimum and Maximum Input Voltage is 35V and -2V respectively. Typically 5V.
• ±0.5°C Accuracy
• Monitoring BatteryTemperature
● ADXL335 module
- The output signals of this module are analog voltages that are proportional to
the acceleration.
- It contains a polysilicon surface-micro machined sensor and signal
conditioning circuitry.
2.4.1 Working Mechanism:
Before diving into hookup and example code, let’s first take a look at its Pin out.
● VCC pin provides power for the accelerometer which can be connected to
5V on the Arduino.
● X-OUT pin outputs analog voltage proportional to acceleration exerted on Xaxis.
● Y-Out pin outputs analog voltage proportional to acceleration exerted on Yaxis.
● Z-Out pin outputs analog voltage proportional to acceleration exerted on Z-axis.
● GND pin is connected to GND on Arduino
● ST (Self-Test) pin controls the self-test feature. This feature is discussed in
detail at the end
2.4.3 Angles using ADXL335
Angle of inclination means by how much angle the device is tilted from its plane of
surface.
We get these angles in radians. So, multiply these values by (180/π) to get angle in
degrees within range of -90° to +90° each axis.
● Angle of Rotation
● Now let‟s find a complete angle of rotation (0° to 360°) around X, Y, Z axis, which
we can, Also call as
These angles are in degrees and can give readings of a complete rotation.
Now let’s calculate these angles. As we get Θ, Ψ and Φ in the range of -90°
to +90°. Here we need to make these values in the range of -180° to +180° so that
we can calculate complete 360° angle of rotation. Let calculate these with arc
tangent function which can be expressed as,
This function will produce the result in the range of -π to π. These values in radians we
can convert into degree by multiplying it with (180/π ≈ 57.29577951) factor. So here we
get values in -180° to +180°, and we can convert it to complete 0° to 360° by just
adding 180° to range.
Note that, rotation along X (roll) and Y (pitch) axis will produce change in
acceleration but rotation along with Z axis (yaw) will not produce any change in
acceleration as it is perpendicular to the plane of surface. Hence using only
accelerometer, yaw cannot be calculated.
We can also see this effect on X and Y axis when these axes are made
perpendicular with plane of surface.
2.4.4 Hardware Overview of ADXL335 Accelerometer:
At the heart of the module is a small, low power triple axis MEMS accelerometer from
Analog devices with extremely low noise – ADXL335. The sensor has a full sensing range of
±3 g. It can measure the static acceleration due to gravity in tilt-sensing applications, as well
as dynamic acceleration resulting from motion, shock, or vibration.
The sensor works on power between 1.8V to 3.6VDC (3.3V optimal), and typically consumes just
350µA of current. However, an on-board 3.3V regulator makes it a perfect choice for interfacing with
5V microcontrollers such as the Arduino.
This breadboard friendly board breaks out every pin of the ADXL335 to a 6-pin, 0.1″ pitch
header. This includes 3 analog outputs for X, Y and Z axis measurements, 2 supply pins and a
self-test pin which allows you to check the functioning of the sensor in the final application.
The analog outputs are Ratiometric, meaning 0g measurement output is nominally equal
to half of the 3.3V supply voltage (1.65V), -3g is at 0v and 3g is at 3.3V with full
scaling in between.
2.4.5 Interfacing Accelerometer With Arduino:
The three output pins of accelerometer give analog output and should therefore be connected
to the analog input pins of your Arduino, A0, A1 and A2. Connect the VCC pin of the
accelerometer to the 5V pin of the Arduino. Connect GND of accelerometer to the GND of
Arduino. Set the reference voltage of ADC as 3.3V by connecting the AREF pin to 3.3V so
as to match the output of ADXL335.
2.4.5 Specifications:
fig.2.15 LCD
The 16×2 LCD display is a very basic module commonly used in DIYs and circuits. The
16×2 translates o a display 16 characters per line in 2 such lines. In this LCD each character
is displayed in a 5×7 pixel matrix.
2.5.1 Construction:
Liquid crystal should able be to control both of the operation to transmit or can also able to change the
polarized light
Thus the light travels through each layer and guided on the next with the help of molecule.
The molecule tends to change its plane of vibration of the light in order to match their angle. When
the light reaches to the far end of the liquid crystal substance, it vibrates at the same angle as that of
the final layer of the molecule vibrates. The light is allowed to enter into the device only if the second
layer of the polarized glass matches with the final layer of the molecule.
2.5.2 Working:
The principle behind the LCD‟s 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 cause 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 other. The LCD works on
the principle of blocking light. While constructing the LCD‟s, 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 to 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 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.
2.5.3 Pin Configuration:
–- RS (Register select): A 16X2 LCD has two registers, namely, command and data.
The register select is used to switch from one register to other. RS=0 for command
register, whereas RS=1 for data register
– Command Register: The command register stores the command instructions given to
the LCD. A command is an instruction given to LCD to do a predefined task like
initializing setting the cursor position, controlling displayetc.
– Data Register: The data register stores the data to be displayed on the LCD. The data
is the ASCII value of the character to be displayed .When we send data to LCD it goes
to the data register and is processed there. When RS=1, data register selected.
2.5.4 Important Command Codes For LCD:
fig.2.18 GSM
GSM system was developed as a digital system using time division multiple access
(TDMA) technique for communication purpose. A GSM digitizes and reduces the
data, then sends it down through a channel with two different streams of client data,
each in its own particular time slot. The digital system has an ability to carry 64 kbps
to 120 Mbps of data rates.
There are various cell sizes in a GSM system such as macro, micro, pico and umbrella
cells. Each cell varies as per the implementation domain. There are five different cell
sizes in a GSM network macro, micro, pico and umbrella cells. The coverage area of
each cell varies according to the implementation environment.
TDMA technique relies on assigning different time slots to each user on the
same frequency. It can easily adapt to data transmission and voice communication
and can carry 64kbps to 120Mbps of data rate.
2.6.1 GSM Architecture
● A Mobile Station: It is the mobile phone which consists of the transceiver, the
display and the processor and is controlled by a SIM card operating over
thenetwork.
● Base Station Subsystem: It acts as an interface between the mobile station
and the network subsystem. It consists of the Base Transceiver Station which
contains the radio transceivers.It also consists of the Base Station Controller
which controls the Base Transceiver station and acts as an interface between the
mobile station and mobile switching centre.
● Network Subsystem: It provides the basic network connection to the mobile
stations. The basic part of the Network Subsystem is the Mobile Service
Switching Centre which provides access to different networks like ISDN, PSTN
etc. It also consists of the Home Location Register and the Visitor Location
Register. It also contains the Equipment Identity Register which maintains an
account of all the mobile equipment’s.
From the below circuit, a GSM modem duly interfaced to the MC through the
level Shifter.
Once you connect the SIM900A modem using the USB to RS232
connector, you need to find the correct COM port from the Device Manager of the
USB to Serial Adapter. Then you can open Putty or any other terminal software and
open a connection to that COM port at 9600 baud rate, which is the default baud
rate of this modem. Once a serial connection is open through the computer or your
micro-controller you can start sending the AT commands. When you send AT
commands for example “AT\r” you should receive back a reply from the SIM800A
modem saying “OK”.
Rx 4 UART data in
- 7 GND
+ 8 VCC
2.7.1 Working:
When a low voltage DC signal is applied to the buzzer the transistor circuit
creates low voltage oscillations and the inductor amplifies the low voltage
oscillations and the alternating signal is applied to the two electrodes, the piezo
material moves forth and back producing a buzz sound.
2.7.4 Applications:
• Novelty uses
• Judging panels
• Educational purposes
• Annunciator panels
• Electronic metronomes
• Electric alarms
The lighting emitting diode is a p-n junction diode. It is a specially doped diode
and made up of a special type of semiconductors. When the light emits in the forward
biased, then it is called as a light emitting diode.
fig.2.26 LED
Hence it makes the complete atom & more stable and it gives the little burst of
energy in the form of a tiny packet or photon of light. The N-type silicon is in red color
and it contains the electrons, they are indicated by the black circles.
● The P- type silicon is in the blue color and it contains holes, they
are indicated by the white circles.
● The power supply across the p-n junction makes the diode forward
biased and pushing the electrons from n-type to p-type. Pushing the
holes in the opposite direction.
● Electron and holes at the junction are combined.
● The photons are given off as the electrons and holes are recombined.
The flow of current in the semiconductors is caused by the both flow of holes in
the opposite direction of current and flow of electrons in the direction of the current.
Hence there will be recombination due to the flow of these charge carriers.
➢ LED Characteristics
There are many applications of the LED and some of them are explained below.