HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015 1 CHAPTER 1 INTRODUCTION In a hospital health care monitoring system it is necessary to constantly monitor the patient’s physiological parameters. Although present systems allow continuous 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. Wireless technology is used in many applications that have become a part of human activities such as agriculture, military, medical care, smart home system etc. Distinctly, wireless sensor networks (WSN) play a crucial role in such monitoring systems, for the reason that WSN can offer some advantages over other types of wireless systems, especially its scalability and flexibility of architecture. In this Project, a group of sensors have been implemented for measuring Pulse rate, body temperature and ECG with real-time monitoring system based on ZigBee wireless network. This project incorporates sensors to measure parameters like body temperature, heart beat rate and IR pulse rate sensors. A micro-controller board is used for analyzing the inputs from the patient and any abnormality felt by the patient causes the monitoring system to give an alarm and the SMS to the doctor and concerned authorities. Also all the process parameters within an interval selectable by the user are recorded to the common computer. 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.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
1
CHAPTER 1
INTRODUCTION
In a hospital health care monitoring system it is necessary to constantly monitor the
patient’s physiological parameters. Although present systems allow continuous
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.
Wireless technology is used in many applications that have become a part of
human activities such as agriculture, military, medical care, smart home system etc.
Distinctly, wireless sensor networks (WSN) play a crucial role in such monitoring
systems, for the reason that WSN can offer some advantages over other types of
wireless systems, especially its scalability and flexibility of architecture. In this Project,
a group of sensors have been implemented for measuring Pulse rate, body temperature
and ECG with real-time monitoring system based on ZigBee wireless network.
This project incorporates sensors to measure parameters like body temperature,
heart beat rate and IR pulse rate sensors. A micro-controller board is used for analyzing
the inputs from the patient and any abnormality felt by the patient causes the monitoring
system to give an alarm and the SMS to the doctor and concerned authorities. Also all
the process parameters within an interval selectable by the user are recorded to the
common computer.
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.
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
2
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-
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
3
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.
A portable real-time wireless health monitoring system also provides an accurate
result which is used for remote monitoring of patients’ pulse rate and oxygen saturation
in blood. The system was designed and implemented using ZigBee wireless technolo-
gies. All pulse oximetry data are transferred within a group of wireless personal area
network (WPAN) to database computer server. The developed real-time pulse oximetry
monitoring system has a pair of light-emitting diodes (LEDs), One of LED has a wave-
length in red and other one is in infrared region. The light was detected by a photodiode.
The LEDs and photodiode was packed in Velcro strip that facing through a patient’s
fingertip. The pulse oximetry data was kept and calculated by microcontroller unit. [3]
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]
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
4
CHAPTER 3
Problem Statement
Health monitoring system is mandatory to constantly monitor the patient’s phys-
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.
This Project focuses on creating a Health monitoring System using Wireless
Body sensor networks (WBAN) and can help people by providing healthcare services
such as medical monitoring, medical data access, and communication with the
healthcare provider.
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.
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
5
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.2 MPC3208: The MPC3208 12-bit Analog-to-Digital Converter (ADC)
combines high performance and low power consumption in a small package.
The chip we are using has eight separate ADC channels we can use. The
MCP3208 works at 3-5 volts, and can take 50,000 samples per second (50 kHz)
with 12 bits of resolution.
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.
4.1.4 Voltage Regulator: It is a standard practice to provide voltage reg-
ulation by using IC’s. We choose to use a fixed output voltage providing regu-
lator IC 7805.
4.1.5 DB107: It is a bridge rectifier. A bridge rectifier is an arrangement of
four or more diodes in a bridge circuit configuration which provides the same
output polarity for either input polarity. It is used for converting an alternating
current (AC) input into a direct current (DC) output.
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
6
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.
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
7
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.
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
8
➢ Set mode_set=0 for ECG mode
➢ If old value of parameters equals the new value message will not be sent again.
➢ If new value is less than or greater than threshold value a message will be sent
to physician.
➢ Stop
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.1 PCB Layout :
Printed circuit board is a piece of art. The performance of an electronic circuit
depends upon layout and design of PCB. Printed circuit boards are used to route elec-
trical current through copper tracks, which are firmly bonded to an insulating base. The
PCB layout was designed in EAGLE Version 4.11. . Depending upon the number of
component and the area of the board the layout will be single layered or multi layered.
The details of this are given in chapter 4.
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.
4.4 Graphical User Interface:
To make the information of employee entrance/exit and to make the circuit user
friendly we have designed a user interface in VISUAL BASICS 6.0. In VB, we have
designed a form which contains of textbox, captions, labels, hardware triggering icon
and other required components, usually used in VB programming.
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
9
CHAPTER 5
Project Description
5.1 PROJECT HARDWARE
5.1.1 BLOCK DIAGRAM-
Figure 5.1: Block diagram of system
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
10
5.1.2 EXPLANATION OF THE BLOCK DIAGRAM
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.
The system consists of three major units:
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.
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
11
5.1.3. List of Components:
1] IC’s used:
Sr No. NAME OF COMPONENT No. used. IC No.
1 Microcontroller 1 89S51
2 Level converter 1 MAX 232
3 ADC 1 MPC3208
4 Voltage regulator 1 LM 7805
2] Other components:
Sr No. NAME OF COMPONENT No. Used Value
1 Resistor pull up package 1 --------
2 LM358 3 --------
3 Crystal 1 11.0592MHz
4 LED’s 2 2 v
5 Bridge Rectifier DB107 1 --------
6 Capacitors 18
1
1
6
0.01mF/16 v
0.1mF/25 v
1mF/25 v
33pF/10 v
7 Resistors 3 330 ohms/ 0.25 w
8 Switches 1 SPST
9 RS 232C(serial connector) 1 --------
10 Zigbee Module- NRF24L01 2 --------
11 GSM Module-SIM 900 1 --------
12 LCD 16x2 Display 1 --------
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
12
5.1.4 COMPONENT SPECIFICATIONS-
Microcontroller AT89S51:
The AT89S51 is a low-power, high-performance CMOS 8-bit microcomputer with 4K
bytes of Flash programmable and erasable read only memory (PEROM). The device is
manufactured using Atmel’s high-density nonvolatile memory technology and is
compatible with the industry-standard MCS-51 instruction set and pinout. The on-chip
Flash allows the program memory to be reprogrammed in-system or by a conventional
nonvolatile memory programmer. By combining a versatile 8-bit CPU with Flash on a
monolithic chip, the Atmel AT89S51 is a powerful microcomputer which provides a
highly-flexible and cost-effective solution to many embedded control applications.
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.
Figure 5.2: Pin diagram of AT89S51
HEALTH MONITORING USING WIRELESS SENSORS AND GSM || 2014-2015
13
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.