Professional Documents
Culture Documents
CHAPTER 1
INTRODUCTION
In a hospital health care monitoring system it is necessary to constantly monitor the
monitoring of patient vital signs, these systems require the sensors to be placed bedside
monitors or PCs, and limit the patient to his bed. A real-time monitoring system of
some critical vital signs will be implemented. Such a system may help the doctor or
people in the family to monitor the emergency alarm from patients. In this project, we
consider three parameters of the vital signs which are Pulse rate, Human body
temperature and ECG. The data helps to prevent and protect the patient’s.
This is very useful for future analysis and review of patient’s health condition.
For more versatile medical applications, this project can be improvised, by
incorporating dental sensors and annunciation systems, thereby making it useful in
hospitals as a very efficient and dedicated patient care system.
1
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
CHAPTER 2
LITERATURE SURVEY
The health monitoring task is achieved by telemedicine (enabling medical infor-
mation exchange as the support to distant decision making) and telemonitoring (ena-
bling simultaneous distant monitoring of patient and his vital function) that monitors
the changes in ECG signals and provide feedback to help maintain an optimal heart
status. Wireless ECG sensor module is realized by using an eZ430-RF2500 which is a
complete MSP430 wireless development tool providing all the hardware and software
for the MSP430F2274 microcontroller and CC2500 2.4GHz wireless transceiver. On
the personal server module, visualization and analysis software are implemented. This
software has the following facilities: GUI (Graphic Interface) for ECG waveforms; dis-
plays the patient’s parameters received from the sensors; sends the commands and med-
ical decisions. [1]
There are many advantages of using this type of sensor. It can be used for broader
range of patients and medical professionals and those people living in rural or isolated
regions. It reduces cost and time. It provides the best health care and flexible capable
of measuring, pre-processing and transmission ECG info to personal server. This type
of sensor can be used for those patients’ that has a longer time span than normal span
and the proposed system could also be used as a warning system for monitoring during
normal activity or physical exercise.
The system architecture for smart healthcare based on an advanced Wireless Sen-
sor Network (WSN). It specifically targets assisted-living residents and others who may
benefit from continuous, remote health monitoring. It presents best practices in wireless
sensor network design for health care applications. Based on the most important aspects
like power efficiency and security which guide the development of a wireless sensor
network based applications. The sensor boards handle acquisition of physiological sig-
nals and pre-processing. For example, the ISPM samples three independent accelerom-
eter axes each at a rate of 200 Hz. The raw accelerometer data is filtered and pre-pro-
cessed. The filtering includes moving an average filter to eliminate high frequency
movement artifacts, and separation of low and high frequency components of the ac-
2
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
celeration signal. Sensor orientation can be calculated as the angle between low fre-
quency accelerometer components. User activity is estimated with a function based on
the Sum of the integrals of the AC components in each channel. [2]
Thus, also the ongoing miniaturization allows building tiny computers that are
able to observe all kinds of physical phenomena. Structural Health Monitoring (SHM)
has the potential to dramatically reduce lifecycle costs, safe useful life of a structure,
shrink insurance costs, decrease the need for expensive repairs, and circumvent com-
plete failure of the monitored structure.
The basic wireless technologies which currently healthcare systems are RFID,
Bluetooth, ZigBee and wireless sensor network which gives innovative medium for
data transmission in the field of medicine. WBAN usually uses Zigbee. One of many
applications of WBAN in medical domain is computer assisted physical rehabilitation.
Intelligent sensors used by patients transmit vital signs to personal server sequentially;
the data is transmitted from personal server to servers of the healthcare system, such as
weather forecast, medical database or emergency server over Internet. Algorithms may
be executed on the healthcare system servers to give instant and patient-specific rec-
ommendations. [4]
3
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
CHAPTER 3
Problem Statement
iological parameters. Although present systems allow constant monitoring, these sys-
tems require the sensors to be placed in such a way that it limits the patient to his bed.
The Project contains three sensors to monitor the human body temperature,
Pulse Rate and ECG. The sensed information is sent to a Microcontroller through signal
conditioning circuit in the patient unit. A desired amount of sensor value is set and
if it is exceeded the sensor information will be transmitted from the patient unit to the
main controller unit with the help of a ZigBee communication system which is con-
nected with the Microcontroller in both the units. The main controller unit will send the
sensed data of the patient by the help of a GSM Module to the physician. The physician
can receive the SMS sent by GSM module and check the vitals of the patient. The
message is sent to a mobile phone using Global system mobile (GSM) Modem.
MAX232 will act as a driver between the microcontroller and the modem.
The Project would benefit the patient as the patient will no longer be confined
to the hospital bed as the sensors are wearable nor any assistant doctor or nurse will be
required to log the health vitals of the patient manually thus reducing any possible hu-
man error.
4
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
CHAPTER 4
Methodology
4.1 Need of components:
4.1.1 AT89S51: 89S51 over 8051 due to the following reasons: For 8051
we have to install its corresponding software for writing program on PC. For
8051 we will write program. In Keil which is freely available on internet for
downloading.
4.1.3 Level Converter: To convert the bipolar voltage signal into unipolar
format. We can use any level converter IC satisfying the electrical specifications
of microcontroller. We chose to use MAX 232 IC.
5
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
4.1.6 Serial Interfacing: For serial transfer of code we need a serial in-
terfacing cable .Depending on the distance between the door and the PC we
choose serial interface required. We choose to use RS 232 which provides sep-
aration of 300 m. & data transfer rate of 330 kb/s.
6
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
4.2 Methodology
The project begins with the study of different types of sensors such as pulse rate, heart-
beat, blood pressure, temperature and ECG.
The most important part of our project was to write the program in keil for the micro-
processor whose algorithm is given below:
➢ Define input and output ports
-Input ports: ADC and switch
-Output ports: LCD and Buzzer
➢ Set the required timer 0 and serial port.
➢ Initializing the UART , LCD, message and GSM modem
➢ Set a_flag=0 so that command is not sent from GSM which will be a false
command in the beginning as the system is switched on.
➢ Set mode_set=1 for Normal Mode which includes pulse rate and temperature
sensor.
7
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
Based upon the above algorithm the program was written and debugged. The errors
occurred were rectified and run successfully.
4.3 Circuit Board Assemblance:
It basically consists of PCB (printed circuit board) design , PCB making and
soldering. These processes are explained below, in brief.
4.3.2 Soldering:
In single sided PCB, the conductor tracks runs only on one side of copper clad
board. Thus crossing of conductor is not allowed .While soldering care must be taken
that the pads are not burned while soldering and no short circuit occurs while soldering.
8
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
CHAPTER 5
Project Description
9
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
Information is gathered using wearable sensors such as temperature, pulse and ECG
and transmitted to the micro controller AT89S51. The microcontroller AT89S51 is used
for the purpose of transmitting and receiving data. The vital parameter measured by the
IR Pulse rate sensor is connected to pin 2 of port 3 of the microcontroller which acts as
a timer while the information from the Temperature sensor is sent to the analog to dig-
ital convertor, MCP3208 which is 12 bit converter and has 8 input channels. This con-
vertor in turn is connected to port 1 of microcontroller which is an I/O port. The data is
continuously streamed through ZigBee to a personal Computer. This way the medical
history of the patient is maintained which can be referred to anytime. ZigBee module
NRF24L01 is used for the above purposes. GSM modem sim900 has also been used in
the above system so as to send an automated message to the physician in case the vital
parameters fall or increase from the threshold value .The modem receives information
from RS232 which acts as a protocol converter. A buzzer is also attached to the system
and it will act as an alarm system in case of emergency situations. This system works
on a 5V power supply.
1) Patient unit: The patient unit consists of three different types of sensors to measure
the temperature, Pulse rate and ECG of the human body in its working environment.
The sensors are connected on the basis of Wireless Body Sensor Network (WBAN).
The microcontroller of the patient unit acquires the sensor information by the help of
the signal conditioning circuit and in the meantime microcontroller passes that acquired
information the Main Controller Unit by the help of the ZigBee transmitter module.
2) Main Controller unit: The main controller unit consists of ZigBee module and
GSM modem. The information of the patient unit is received by the microcontroller
and displayed on the LCD of the controller unit. Buzzer is for providing warning in any
critical condition. By the use of the GSM modem all the information of the patient’s
vital parameters will be transmitted to the Physician’s mobile as a SMS.
3) Observer unit: This unit consists of Physician’s mobile phone and the personal
computer which will be storing the physiological parameters of the patient.
10
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
3 ADC 1 MPC3208
2] Other components:
2 LM358 3 --------
3 Crystal 1 11.0592MHz
4 LED’s 2 2v
6 Capacitors 18 0.01mF/16 v
1 0.1mF/25 v
1 1mF/25 v
6 33pF/10 v
8 Switches 1 SPST
Microcontroller AT89S51:
The AT89S51 provides the following standard features: 4K bytes of Flash, 128 bytes
of RAM, 32 I/O lines, two 16-bit timer/counters, a five vector two-level interrupt
architecture, a full duplex serial port, on-chip oscillator and clock circuitry. In addition,
the AT89S51 is designed with static logic for operation down to zero frequency and
supports two software selectable power saving modes. The Idle Mode stops the CPU
while allowing the RAM, timer/counters, serial port and interrupt system to continue
functioning. The Power-down Mode saves the RAM contents but freezes the oscillator
disabling all other chip functions until the next hardware reset.
12
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
LCD 16x2: LCD is a liquid crystal display9 and there are 14-pin and 16-pin displays.
Among them 16-pin display is used which has additional features than 14-pin like
background color transition and more than 80 characters are displayed. RS pin resets
the display after some delay, 4 data lines are connected to MCU.
13
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
14
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
The resistance of the photo resistor decreases with increasing light intensity ,in other
words , it exhibits photo conductivity.
LM35 Temperature Sensor -It is also known as analog temperature sensor. It pro-
vides a voltage output that is linearly proportional to Celsius (temperature. It uses a
solid state technology to determine the temperature. If the temperature increases
means voltage also increases. By amplifying the voltage change it is easy to generate
an analog signal which is directly proportional to temperature. They are precise, never
wear out, don’t need calibration work for any environmental conditions. It can be con-
sistent between sensor and readings. In our project we are converting celsius into Far-
enheit by using the formula:- F = C x 1.8 + 32
15
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
Capacitors-
A capacitor is an electrical/electronic device that can store energy in the electric field
between a pair of conductors (called "plates"). The process of storing energy in the
capacitor is known as "charging", and involves electric charges of equal magnitude, but
opposite polarity, building up on each plate.
Capacitors are often used in electric and electronic circuits as energy-storage devices.
They can also be used to differentiate between high-frequency and low-frequency sig-
nals. This property makes them useful in electronic filters.
Figure 5.9:Capacitors
16
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
Crystal Oscillator- A crystal oscillator is an electronic circuit that uses the mechanical
resonance of a vibrating crystal of piezoelectric material to create an electrical signal
with a very precise frequency. This frequency is commonly used to keep track of time
(as in quartz wristwatches), to provide a stable clock signal for digital integrated cir-
cuits, and to stabilize frequencies for radio transmitters/receivers. We use a 11.0592
MHz crystal oscillator.
RS 232 C- It is a serial interface between the sensors and the micro controller .It is
connected to sensors through 16 pin socket.
MAX 232- It is a level converter which will convert the bipolar code received through
RS232C to unipolar format that is 0 to +5V.
NRF24L01 RF Module is a trans receiver module which provides easy to use RF com-
munication at 2.4 Ghz. It can be used to transmit and receive data at 9600 baud rates
from any standard CMOS/TTL source. It works in half duplex mode.
Features:
17
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
SIM900A Module-
General features
•Quad-Band 850/ 900/ 1800/ 1900 MHz
•Compliant to GSM phase 2/2+
– Class 4 (2 W @850/ 900 MHz)
– Class 1 (1 W @ 1800/1900MHz)
•SAIC (Single Antenna Interference Cancellation)
•Control via AT commands (GSM 07.07 , 07.05 and SIMCOM enhanced AT Com-
mands)
•SIM application toolkit
•Supply voltage range: 3.2V to 4.8V
•Low power consumption: 1.0mA
18
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
CHAPTER 6
IMPLEMENTATION
The schematic of Health monitoring system including IR Pulse Rate Sensor, ECG has
been made using EAGLE which is a powerful graphics editor for designing PC-board
layouts and schematics. The Graphic User Interface has been created using Visual
Basics version 6 to display Temperature and pulse rate parameters. The parameters are
streamed to the Pc using Zigbee Module.
EAGLE contains a schematic editor, for designing circuit diagrams. Parts can be placed
on many sheets and connected together through ports. We use the ADD command to
add the components and the symbols for +5V, V+, and GND from supply1.
19
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
20
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
21
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
Forms are created using drag-and-drop techniques. A tool is used to place controls (e.g.,
text boxes, buttons, etc.) on the form (window). Controls have attributes and event
handlers associated with them. Default values are provided when the control is created,
but may be changed by the programmer. Many attribute values can be modified during
run time based on user actions or changes in the environment, providing a dynamic
application. For example, code can be inserted into the form resize event handler to
reposition a control so that it remains centered on the form, expands to fill up the form,
etc. Visual Basic can create executables (EXE files), ActiveX controls, or DLL files,
but is primarily used to develop Windows applications and to interface database
systems. In this project we have used three boxes displaying Comm Port No. , Input
Length which is the length of string it will receive and the RThreshold. Temperature
and Pulse rate parameters will be displayed using this application and will be sent to
the PC using Zigbee module.
22
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
The coding of Microcontroller is done using embedded C and the software used
for coding is Keil µVision 3.The ANSI standard Keil µVision 3 compiler is specifically
designed for the 8051 and 8951 microcontroller families. Extensions incorporated into
the compiler support all resources of your embedded hardware and allow efficient ac-
cess to interrupts, register banks, SFRs, and memory spaces. The µVision 3 configura-
tion wizard simplifies editing the startup code (and many other configuration files). A
graphical interface helps you quickly select the options that match your target system
and easily spot potential startup problems. Since the microcontrollers came into picture
in the early sixties, the need for simulation of various program codes was felt. Initially
the technique of downloading the code on the circuit board was used but it was time
consuming and uneconomical. Hence was the need to develop software to debug the
microcontroller related code programs directly. This need resulted in the development
of Keil.
23
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
IMPLEMENTATION OF SENSORS
Block Diagram-
WORKING -
Heart beat sensor is designed to give digital output of heart beat when a finger
is placed on it. When the heart beat detector is working, the red LED with 660nm wave-
length flashes in unison with each pulse. Because the flow of blood is pulsatile in na-
ture, the transmitted light changes with time. A normal finger has light absorbed from
bloodless tissue, venous blood, and arterial blood. The volume of arterial blood changes
with pulse, so the absorption of light also changes. The light detector will therefore see
a large DC signal representing the residual arterial blood, venous blood, and bloodless
tissue. When the photodiode detects light, a current is created proportional to the inten-
sity of the light detected. This current is converted into voltage using a differential cur-
rent-to-voltage amplifier, followed by signal conditioning circuit consisting of low pass
and high pass filters. The Filtered output is passed on to a ZigBee module through
which Pulse Rate will be stored in the Microcontroller.
24
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
Circuit diagram:
25
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
26
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
Working-
The sensor requires three connections to the right arm (RA), left arm (LA) and right leg
(RL) of the patient. We make use of Instrumentation Amplifiers (INAs) to condition
small signals in the presence of large common-mode voltages and DC potentials so we
choose Analog instrumentation amplifier to amplify the ECG voltage from electrodes,
27
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
which is in the range of 1mV to 5mV.we have designed the instrumentation amplifier
using op-amp LM358, with a gain of 1000 and power supply is +12V to -12V. It
contains following signal conditioning unit:-
This block is used to remove the unwanted signals like noise, the frequency range of
ECG is 0.04HZ to 150 Hz, and so the low pass filter is designed with the cut off
frequency of 150HZ.
Amplifier:
It consists of a simple non inverting amplifier which is designed to saturate the ECG
signals, and the output of amplifier is fed to the microcontroller to count the heart rate.
Microcontroller AT89S51 is being used in our project for counting of the pulses. It
takes the conditioned square pulses from hardware system as an input and counts it for
one minute, which is the required heart rate count.
28
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
29
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
30
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
CHAPTER 7
RESULTS
Temperature and Pulse Rate is displayed on the LCD and the parameters are also
displayed on the GUI through Zigbee so as to maintain a History of the patients
continuous monitoring.
31
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
This is the Access port software which displays the magnitude of the ECG wave. The
computer is connected via RS232 to comm port1 at 9600 baud rate and data is streamed
to the software.
32
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
An Automated message is sent to the local physician’s mobile whose number is al-
ready inserted in the program.
The threshold values set for temperature and pulse rate are as follows:-
-Temperature rises above 102 F.
-Pulse rate falls below 30 ppm or rises above 150 ppm.
33
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
CHAPTER 8
ADVANTAGES AND APPLICATIONS
ADVANTAGES
APPLICATIONS
34
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
CHAPTER 9
CONCLUSION
35
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
CHAPTER 10
FUTURE SCOPE
The future scope of this system would be a wireless sensor network architecture for
smart homecare that possesses the essential elements of each of the future medical
applications,namely:
-Miniature,wearablesensors,and
36
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
References
[1] Cristian Rotariu, Hariton Costin,Dragos Arotaritel, Bogdan Dionisie, “A
WIRELESS ECG MODULE FOR PATIENT MONITORING NETWORK”,
2008 .
[2] P. Binkley, “An Advanced Wireless Sensor Network for Health Monitor-
ing”, IEEE Engineering in Medicine and Biology Magazine 22 (3) (2003) 23–
24.
37
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
APPENDIX
38
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
39
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
40
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
41
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
42
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
43
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
44
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
45
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
46