CHAPTER ONE: INTRODUCTION
1.1 Background study
Heart beat rate means the number of heartbeats per unit time,
usually expressed as beats per minute (bpm). The human
heart pounds to pump oxygen rich blood to the muscles and
carry cell waste products away from the tissues. Heartbeat
rate can vary according to the demand of the muscles to
absorb oxygen and excrete carbon dioxide changes such as
during exercise or sleep. It also varies significantly between
individuals based on age, fitness and genetics. This means that
the heart must beat faster to deliver more oxygen rich blood.
During exercise routines, the heartbeat rate gives a strong
indication of how effective the exercise is to the body.
The patient monitoring systems is one of the
major
improvements in the global health care program because of its
advanced technology. A patient monitoring system measures
the
heartbeat
by
using
embedded
technology.
This
advancement in technology is highly needed because many
sick patients at the hospitals die because of high fever and
heart attacks. The trend of cardiovascular disease has shown
that heart beat rate plays a key role in determining the
1
possibility of a heart attack while an increase in the body
temperature can induce fever on a patient. Heart diseases
such as heart attack, coronary heart disease, congestive heart
failure, and congenital heart disease are the leading causes of
death for men and women in many countries. Most of the time,
the aged people of the society are more prone to heart disease
problems than the younger ones. For people who live alone
with no one to monitor their health condition, this device offers
an opportunity to them for a constant monitoring of their
health status, it is developed to monitor and alert the doctors
about the heartbeat and temperature condition of a patient. It
is developed to give patients a timely and proper heath care.
These days it is not easy for doctors and the nurses to remain
close to a patients bed side to monitor their heath condition. In
the past, a huge and fixed monitoring device was used (only in
the hospitals) to know the health status of a patient when on a
bed. These monitoring devices are only available in the
hospitals and are constantly on the patients body. Many of
them are not user friendly so it is important that the doctors
and family members will have a handy device that can always
monitor their patients when they are not around.
Another vital thing to monitor in a patient is the heartbeat rate.
It is very important that the heartbeat is to be normal. That is
72 BPM. If there is any abnormality, then the patient is in
distress. Heartbeat rate means the number of heartbeats per
unit of time. The normal heartbeat rate of a resting person is
about 70 bpm for adult males and 75 bpm for adult females.
The average heartbeat per minute for 25-year old ranges
between 140-170 beats per minute while for a 60-year old it is
typically between 115-140 beats per minute and body
temperature is 37 degree Celsius or 98.6 Fahrenheit. .
Normally it is difficult to keep track of the abnormalities in the
heartbeat count of by manual means. Patients are not well
versed with the manual treatments, which the doctors
normally use for tracking the count of the heartbeat. Thus,
there must be some kind of device which would help patients
and their family member to keep track of their health by
themselves. This sole reason is why this project presents a
heartbeat and temperature monitoring device using radio
frequency (RF.). The concept of developing an RF. based
patient monitoring device is to have a simple home and
hospital based pulse and body temperature monitoring device
for sick persons that are in critical condition and needs to be
constantly or periodically monitored by clinician or family.
1.2 Statement of problem
Measuring of the heartbeat rate is very important mostly
when attending the to a medical patient in other to know the
die level of the patient, this helps in solving chronically issues
which are not easy to handle by males drugs. Doctors takes
the heart rate beat to determine the blood pressure and to
know to solve it medically.
The human health is one of the most important concerns in the
world today. Anything/everything becomes meaningless when
one becomes sick and dies due to improper Medicare. For
health reasons, people, governments and several voluntary
bodies spend a lot of money to ensure a better health
condition for themselves and the entire populace. Scientists
and Engineers are always at work to device a means of
supporting/sustaining a sound health condition for all through
the
invention
of
numerous
technologies
both
Electrical/Mechanical gadgets that are in use for health care
delivery today. The heart is a very delicate organ in the human
body (once it stops beating, nothing else matters). Thus, If
early actions are taken (and on time) the heart condition can
be managed effectively and many patients can be cured and
saved. The problem of patients slumping and dying is
associated with cardiovascular arrests and can be checkmated
this sensitive and highly effective device (the patient heartbeat
and temperature monitor). This device has an outstanding
advantage that it is easy to handle and access. Heartbeat rate
and body temperature monitors are part of the most vital tools
needed in first aid kit for saving lives. Unlike the x-ray, the
heartbeat and temperature monitor does not impose any
hazard to the human health. There devices in the market which
can provide raw measurement data of the patients to the
doctors, but the patients may not be able to interpret the
medical measurement into a meaningful diagnosis due to their
limited medical background. On the other hand, if raw medical
data is delivered to the doctor, time is wasted and may pose a
problem, but in emergencies waste of time can never be
5
tolerated. It is tough to share data over large area within a
short period. Most of the products available in the market have
this drawback of limitation in flexibility and portability. If the
heat that is produced from metabolism cannot be checkmated
on time, it will cause a turbulent body temperature, which
could be worse than 40C and lead to headache, vertigo, low
blood pressure, high energy consumption, unconsciousness
and crocking up of body temperature regulation function. On
the other hand, when the produced heat is less than the
dissipating heat, the body temperature cannot hold on and it
will result to a decrease in metabolism.
1.3 Aim and objectives
Aims of the project includes:
a. To design and implement a heartbeat monitor with display
b. To know the important of heart rate monitors medical
environment
c. To know the various stages of the design and how to
implement it.
d. Is important to discuss the working ability of a heart beat
monitor, so during the study the design programs was
elaborated to help student in better understanding of a
heart beat monitor.
Objectives:
6
To design and implement a heartbeat monitor with display
which can be used in different areas for monitoring heart
rate movement of a living being.
1.4 Scope of the project
This project was design to only read the heartbeat rate of any
living animal like mammals mainly humans, and is designed to
display only heartbeat pulsed no temperature is included.
This also covers the various stages of the design, it design
stapes, the circuit diagram implementation, the program
instruction codes writing and programming and the packaging
and testing of the project.
1.5 Project limitations
This project can only read heart beat in beats per min of the
time of input and output, it makes used of full 9V to 12V power
trail and outside it will not function properly, and it is limited to
finger type reading and cannot carry out reading from the
chest by placing sensor to the chest.
1.6 Significance of the project
a. It helps to get the heartbeat rate of a human being
b. It can be used for commercial purposes.
c. It projects exposes the user on how to measure heart
beat using fingertip method.
d. The project helps the student to know the design
procedure of the project and how to assembly it.
7
1.7 Project report organizations
Chapter one carries the introduction, aim and objective, scope of
study, limitation of the work, significance and the project report
organization of the work. Chapter two carries the literature review
of the work along with other reviews of the project. Chapter three
carries the project design methodology and steps which lead to
the construction of the project. Chapter four testing the project
design, observation and Bill of engineering. Chapter five carries
summary and conclusion.
CHAPTER TWO: LITERATURE REVIWE
2.1 MEDICAL MONITORING DEVICE
Medical monitor devices are of integrated technology and are
found in the area of electronics, computers, material and
information Engineering. It plays an important role in the
medical/patient simulation system. With the help of the medical
monitoring systems, a doctor can get an up to date information of
a patient. In any modern society, the physical condition and
safety of patients has attracted more and more attention.
Patients, who are merely over conscious of their health are easily
8
susceptible to the unexpected situations, such as contraction of
diseases/infections as well as some kind of sickness because they
take their health issues for granted. Thus, for a good guarantee of
the patients daily life, a monitor designed for this purpose is
needed. This monitoring device requires wearable bracelet bangle
connected to the device from where the body temperature and
heart condition is monitored.
This study aims at the designing of a patient monitoring device
with good stability, wearable, low power consumption, low cost
and high anti- jamming ability, which enables the doctors to
acquaint themselves with the real-time condition of their patients.
2.2 HISTORY OF PATIENTS MONITORING SYSTEM
The invention of a patients monitoring system has been very
important even to the fitness industry and as well as an aid to
living a healthy lifestyle. Today, many treadmills and elliptical
machines often have these monitors built in them to check the
rate of the heartbeat at any given time. These monitoring devices
are also very important to cyclists and athletes because it prevent
them from over training or under training. The very first
monitoring
device
with
heartbeat
9
rate
(without
body
temperature detector) was invented in 1975 by writer, lecturer
and inventor Gregory Lekhtman. Lekhtman continues to design
fitness electronic devices for his international award winning
company,
Biosig
Instruments
Incoporated.
He
has
also
collaborated with fitness equipment manufacturers such as Sony,
Polar and Nordic Track. By 1977, improvements were made on the
original heart rate monitor, and the Polar Electro Company
produced the first wireless heart rate monitor. It was specifically
used in training the Finnish National Cross Country Ski team. By
the late 1970s and early 1980s, heart rate monitors were
available in stores abroad for consumers.
2.3 FUNCTIONS OF THE PATIENT HEALTHCARE MONITORS
Patient heart rate monitors can perform many functions beyond
tracking of heart rate in real time. One of the features is that
when one enters an information and programming of choice
within the machine, the monitor can average the persons
heartbeat rate and estimate how many calories the person burns
10
per hour. The information obtained can be downloaded into a
computer for tracking purposes.
On cardiovascular machines like the treadmill or elliptical trainer,
once an information is entered like age and program, the machine
can adjust the body resistance until it reaches the desired zone
for the heartbeat rate.
2.3.1 Already existing system
One of the existing patients monitoring system demonstrated
below in this literature review is a technique that measures the
heartbeat rate by sensing the change in blood volume in a finger
artery (or mostly wrist artery) while the heart is pumping blood.
The system consists of an infrared LED that transmits an IR. signal
through the fingertip or wrist of the subject, a part of which is
reflected by the blood cells. The reflected signal is detected by a
photo diode sensor. The changing blood volume with heartbeat
results in a train of pulses at the output of the photo diode, the
magnitude of which is too small to be detected directly by a
microcontroller. A two-stage high gain, active low pass filter is
designed for the system using two operational amplifiers (OpAmps) to filter and amplify the signal to appropriate voltage level
11
so that the pulses can be counted by the microcontroller,
(PIC16F628A).
Finally, the detected heart rate was displayed on a three (3)-digit
seven-segment display. The schematic circuit diagram of the
system is shown in figure 2.1 below.
12
FIG 2.1 PATIENT HEARTBEAT RATE MEASUREMENT USING
PIC16F628A
Based on the information gathered on this literature review, the
heartbeat rate detected by the machine can be defined as the
number of heartbeats per unit of time and is usually expressed in
beats per minute (bpm). In adults, a normal heart beats for about
60 to 100 times per minute (occurring during resting condition).
The heartbeat rate during rest condition plays a role in
determining the health solution of a patient. The monitoring
device can measure the heartbeat rate from any spot on the body
from where pulses can felt with the thumb or finger. The most
common places are the wrist and neck. You can count the number
of pulses within a certain interval (say 15 sec), and easily
determine the heartbeat rate in bpm (beats per minute). In the
above project design approach, the monitoring system uses an
optical sensor to measure the alteration in blood volume at the
fingertip with each heart beat. The sensor unit consists of an
infrared light-emitting-diode (IR. LED) and a photodiode, placed
side by side as shown below.
13
FIG 2.2: FINGERTIP PLACEMENT OVER THE SENSOR UNIT
The IR. Diode transmits an infrared light into the fingertip (placed
over the sensor unit), and the photodiode senses the portion of
the light that is reflected back. The intensity of reflected light
depends upon the blood volume inside the fingertip blood vessel.
Thus, each heartbeat slightly alters the amount of reflected
infrared light that can be detected by the photodiode. With a
proper signal conditioning, this little change in the amplitude of
the reflected light can be converted into a pulse. The pulses can
later be counted by a microcontroller to determine the heartbeat
rate. A circuit diagram of the signal conditioning of the system is
as shown below:
14
FIG 2.3:IR. SENSOR AND SIGNAL CONDITIONING CIRCUIT
In the above system design, a signal conditioning circuit consists
of two identical active low pass filters with a cut-off frequency of
about 2.5 Hz. This means the maximum measurable heart rate is
about 150 bpm.
The value of IC 1 and IC 2 in the above diagram is MCP602.
Inverting bias resistor- 680k (Rf.)
Non- inverting resistor 68k (RI)
The Inverting Amplifier: the Open Loop Gain, (Avo) of the
operational amplifier can be very high, as much as 1,000,000
(120dB) or more. However, this very high gain is of no real use to
15
us as it makes the amplifier both unstable and hard to control as
the smallest of input signals, just a few micro volts, (V) would be
enough to cause the output voltage to saturate and swing
towards one or the other of the voltage supply rails loosing
complete control. As the open loop DC gain of an operational
amplifier is extremely high, we can therefore afford to lose some
of this gain by connecting a suitable resistor across the amplifier
from the output terminal back to the inverting input terminal to
both reduce and control the overall gain of the amplifier. This then
produces and effect known commonly as Negative Feedback,
and thus produces a very stable Operational Amplifier based
system. Negative Feedback is the process of "feeding back" a
fraction of the output signal back to the input, but to make the
feedback negative, we must feed it back to the negative or
"inverting input" terminal of the op-amp using an external
Feedback Resistor called Rf. This feedback connection between
the output and the inverting input terminal forces the differential
input voltage towards zero. This effect produces a closed loop
circuit to the amplifier resulting in the gain of the amplifier now
being called its Closed-loop Gain. A closed-loop amplifier uses
16
negative feedback to accurately control the overall gain but at a
cost in the reduction of the amplifiers bandwidth. This negative
feedback results in the inverting input terminal having a different
signal on it than the actual input voltage as it will be the sum of
the input voltage plus the negative feedback voltage giving it the
label or term of a Summing Point. We must therefore separate the
real input signal from the inverting input by using an Input
Resistor, R-in. As we are not using the positive (non-inverting)
input, this is connected to a common ground or zero voltage
terminal as shown below, but the effect of this closed loop
feedback circuit results in the voltage potential at the inverting
input being equal to that at the non-inverting input producing a
Virtual Earth summing point because it will be at the same
potential as the grounded reference input. In other words, the opamp becomes a "differential amplifier".
Inverting Amplifier Configuration
17
In this Inverting Amplifier circuit, the operational amplifier is
connected with feedback to produce a closed loop operation. For
op-amps there are two very important rules to remember about
inverting amplifiers, these are: "no current flows into the input
terminal" and that "V1 equals V2", (in real op-amps, these rules
are broken). This is because the junction of the input and
feedback signal (X) is at the same potential as the positive (+)
input, which is at zero volts, or ground then, the junction is a
"Virtual Earth". Because of this virtual earth node, the input
resistance of the amplifier is equal to the value of the input
resistor, R-in and the closed loop gain of the inverting amplifier
can be set by the ratio of the two external resistors.
18
We said above that there are two very important rules to
remember about Inverting Amplifiers
or any operational
amplifier for that matter and these are.
1. No Current Flows into the Input Terminals
2. The Differential Input Voltage is Zero as V1 = V2 = 0 (Virtual
Earth)
Then by using these two rules, we can derive the equation for
calculating the closed-loop gain of an inverting amplifier, using
first principles.
Current (I) flows through the resistor network as shown.
19
20
CHAPTER THREE
DESIGN METHODOLOGY AND
ANALYSIS
3.1 SYSTEM DESIGN
A patient monitoring system-using RF. is meant to detect
abnormal pulses and temperature on a patients body. The
system methodology includes using a radio frequency (RF.)
module to transmit a warning signal to a receiver where a
specialist (doctor), nurse or anyone can be alerted to attend to
the
patient.
The
system
repeatedly
persons until the patient
advantages
of
high
recovers.
stability,
alerts
This
the
concerned
system
wearable,
low
has
the
power
consumption, high anti-jamming ability and seldom region limit
because of the RF. This proposed method is designed using top
to ground design implementation techniques. The two main
parts of the system design is the detection module and the RF.
communication module. The detection module must be placed
on the patients hand while the RF. communication module will
always be with the specialist (doctor) or the patients family
21
members, so that whenever there is abnormality on the patients
temperature, they can easily be informed to control the situation.
The detection module mainly includes physical signal detection
module designed like a wristwatch or bracelet. Due to the wrist
type sensor (physical signal detection module), it is convenient
for patients to operate and take with them comfortably. The
wireless detection module consists of the patients wrist type
body sensor, an analog to digital converter (ADC), a clock
pulse circuit, a microcontroller (MCU) and a regulated 9 volts
battery power supply (PSU) as shown in the system design
structural chart shown in figure 3.1 bellow:
CLO
CK
PULSE
22
PATIENT BODY SENSOR UNIT
ADC UNIT
PSU
MCU
WIRELESS DETECTION MODULE
FIG 3.1: SYSTEM DESIGN STRUCTURAL CHART
The first step in the system design procedure was to
gather the required information for the quoted system design
specifications. The exact system components to be used were
calculated and placed on a computer aided design software
(Proteus 7) used for the design simulation of the paper design. A
code written in assemble language program using MIDE was
used to actualize the design program. The program is written
based on AT89S52 specific instructions.
23
3.2 SYSTEM ANALYSIS
3.2.1Sensor unit
The patient wrist type body sensor is made of LM35
integrated circuit. The LM35 is used to acquire signal more
especially, the body temperature of the
patient while a
microcontroller processes it. The three common sensors used
for this particular task are thermistors, thermocouples and
resistance
thermometers
but
here,
an
LM35
was
used
because it can measure temperature more accurately than
thermistors and generates a higher output
voltage
than
thermocouples. LM35 sensor may not require that the output
voltage be amplified and it is placed on an adjustable bracelet
to be worn on the patients wrist to gather/obtain information
about the bodys pulse rate, heat flow, and skin temperature.
The information gathered is interfaced to the MCU for data
transmission. The LM35 is an integrated circuit sensor. Its
electrical output signal is proportional to the temperature in oC
(degree Celsius temperature).
The scale factor is .01V/oC. The sensor circuitry is sealed
24
and not subject to oxidation. It does not require any
external
calibration
or
trimming
and
maintains
an
accuracy of +/-0.4 oC at room temperature and +/- 0.8 oC
over a range of 0 oC to +100 oC.
Fig 3.2: THE LM35 SENSOR
25
3.2.2 Choice of resistor and sensor value
The value of the resistance on the LM35 determines the
range of the output voltage. Using a multi-meter, the
maximum and minimum values of the sensor resistance (R
min*R max) can be determined. In this context:
R min = 1.50K
R max =
780k
R= square root of (R min*R max) = Square root of (1.50k *
780k
).
26
FIG 3.3: THE LM35 SENSOR CIRCUIT
The value of the variable resistor (RP 4.7K) in the sensor
unit as shown in the schematic circuit diagram above (Figure
3.3) is used to set a maximum limit of sensor control points.
When the body temperature exceeds the limit, a warning sound
occurs; the alert sound attracts the users attention.
The
warning sound is also sent to the doctor or the family members
of the patient using RF.
3.3 WIRELESS DETECTION MODULE
The wireless detection module is used to transmit the
acquired values as detected by the sensor. These physical
parameters or value will be converted from analog signal to
27
digital data for further processing. The digital data after been
processed by the microcontroller unit is then transmitted into the
air by an RF. module. At the receiving end, the job of the RF.
communication
module
(receiver
unit)
is
to
detect
those
incoming digital values from the air and demodulate (transform)
the signal into sound. The output sound produced is by an
output transducer called buzzer. A buzzer is an electrical
component that converts electrical signal into sound. The most
fundamental choice to be made in the design of the wireless
detection module is the selection of its operating frequency. The
RF. signal must comply with government regulations and wireless
standards. Currently, frequencies used
for wireless systems
include 315 MHz, 433 MHz, 868 MHz (for Europe and Nigeria),
915 MHz (North America), and the 2.45-GHz Industrial-ScientificMedical (ISM) band. The 2.45-GHz band provides implementation
flexibility due to the abundance of commercially available RF.
devices in that band.
However, the basic concern of using this band is the
possibility of intersystem interference. Using lower frequencies
would help in extending the communications range due to low
28
path loss attenuation. With low
propagation path loss, the
antenna gain would not become an important factor in the
system link budget. However, low frequencies require larger
sized antennas. If the density of deployment allows for few
meters spacing between the sensors, the choice of lower
frequencies
would
be
good
choice.
Very
low operating
frequencies (70 MHz or even lower) may provide better solutions
for some wireless applications.
3.4 MICROCONTROLLER (MCU)
The microcontroller can be adopted for several purposes but
in this project, it processes the digital data from the ADC unit.
The input pin of the microcontroller is connected to the output
terminal of the ADC for the sensor circuitry. When this pin
goes to HIGH, it means that there is an output from the
sensor and vice versa. The microcontroller used is shown below
in figure 3.4
29
Input
Fig 3.4: A MICROCONTROLLER CHIP
The microcontroller determines the number of times the
output will sound the buzzer {alarm}. This decision is vital to
avoid fake alert from the sensor unit. The output of the
microcontroller is connected to a transistor as shown in figure
3.5 as buffer. The transistor is an amplifier known as ransiator
buffer.
30
Fig. 3.5 Block diagram of a microcontroller
internal circuitry
Pin description
Vcc: Supply voltage.
GND: Ground.
31
Fig 3.6: TRANSISTOR BUFFER FOR THE RF.
TRANSMITTER
The output pin of the microcontroller is connected to the
transistor shown in the above circuitry. When this pin goes
high, the transistor BC547 is switched on and current flow
through the transistor. The collector voltage then equals that of
the emitter which is connected to ground.
32
Fig 3.7 TRANSISTOR BUFFER
On
the
other
hand,
when
this
pin
goes
low,
the
transistor BC547 is switched off and no current flow through the
transistor. The collector voltage then equals to that of VCC
(+5V). Thus, the potential at the point of RF. power connected
to the power supply of transmitting module is high and
switches on the transmitting module. Therefore, power can be
saved for a long running the sensor node activities. The RF.
module switches ON only when there is signal at the sensor unit.
3.5 POWER SUPPLY UNIT
The power supply unit is a regulated 5v supply powered
33
from a 9 volts battery. The battery "cycle" is one complete
discharge and recharge cycle. It usually discharges from 100%
to 20%, and then back to 100%. The battery life is directly
related to how deep the battery is cycled each time. If the
batterys is discharged to 50% every day, it will last about twice
as long as if it is cycled to 80% depth of discharge (DOD). If
cycled only 10% DOD, it will last about 5 times as long as one
cycled to 50%. The battery powers the project through an
LM7805 DC voltage regulator, which keeps the output voltage
supply constant. A voltage regulator has only three legs as
shown below:
heat sink
FIG 3.8: LM7805
This device appears to be a comparatively simple device
but it is actually a very complex integrated circuit. A regulator
34
converts
varying
input
voltage
and
produces
constant
Regulated output voltage. Voltage regulators are available in
a variety of output, typically 5 volts, 9 volts and 12 volts. The
last two digits in their respective name indicates the output
voltage.
Examples of regulator are listed below;
Name
Voltage
Lm 7805
+ 5 volts
Lm 7809
+9 volts
Lm7812
+12 volts
Lm 7905
-5 volts
Lm 7909
-9 volts
Lm 7912
-12 volts
The LM78xx series of voltage regulators are designed for
positive inputs while LM79xx series are used for negative input.
35
3.6 ALARM UNIT
The alarm unit of this device is a buzzer connected to the
microcontroller output at the RF. communication module. A
transistor amplifier is used to strengthen the signal of the
microcontroller before it gets to the buzzer. A 4.7K and 2.2k
resistor is used to bias the base of the transistor. The collector
of the transistor is connected to the positive supply through
the buzzer, while the emitter terminal is connected to the
negative
terminal. Figure 3.8 shows the connection of the
resistors and the buzzer.
.
1k
P2.728
vcc
VCC
VCC
Buzzer
4.7k
P2.6 27
2k
C945 or NPN Transistor
GND
36
FIG 3.9: TRANSISTOR AMPLIFIER CONNECTED TO THE
MICROCONTROLLER
3.7 OTHER COMPONENTS
Some of the passive and active components used in this
project are as described below:
3.7.1 Diodes:
A
diode
plays
very
important
role
in
the
working/operation of this device to allow an electric current
to
pass
in
one
direction
(referred
to
the
forward
characteristics of a diode), while blocking current in the
opposite direction (the reverse direction). Diodes can be
used for rectification, (to convert alternating current to
direct
current)
and
to
extract
modulation
from
radio
signals in radio receivers. It is a type of two-terminal
37
electronic
component
with
nonlinear
currentvoltage
characteristic. A semiconductor diode is a crystalline piece
of semiconductor
material
connected
to
two
electrical
terminals.
FIG 3.10: TYPES/SHAPES OF DIODES
3.7.2 Capacitor:
Capacitors are two-terminal electrical component separated
by a dielectric (insulator) and used for storing electric charges.
It consists of metal foils separated by a layer of insulating
film. When there is a potential difference (voltage) across the
insulated films, a static electric field develops across the
dielectric, causing positive charge to attract on one plate and
38
negative charge on the other plate. Energy is stored in the
electrostatic field. An ideal capacitor is characterized by a single
constant value. Capacitance is measured in farads.
Fig 3.11 STRUCTURE OF THE ELECTROLYTIC
CAPACITOR
Capacitors are widely used for blocking direct current while
allowing alternating current to pass. In this project, it is used as
a filter network, for smoothening the output of the power supply
and preventing radio frequency interface.
3.7.3 Resistors:
A resistor is a linear, passive, two-terminal electrical
component that implements electrical resistance as a circuit
39
element. The current through a resistor is in direct proportion to
the voltage across the resistor's terminals. Thus, the ratio of
the
voltage
applied
across
resistor's
terminals
to
the
intensity of current through the resistor is called resistance. This
relation is represented by Ohm's law: I= V/R. Resistors are
common elements of electrical networks and electronic circuits
and are ubiquitous in most electronic equipments. Practical
resistors can be made of various compounds and films, as
well as resistance wire (wires made of a high-resistivity alloy,
such as nickel-chrome). Resistors are also implemented within
integrated circuits, particularly analog devices, and
integrated
into
hybrid
and
printed
circuits.
can be
The electrical
functionality of a resistor is specified by its resistance: common
commercial resistors are manufactured over a range of more
than nine orders of magnitude. When specifying that resistance
in an electronic design, the required precision of the resistance
may require attention to the manufacturing tolerance of the
chosen resistor, according to its specific application (Wikipedia,
2011). The temperature coefficient of the resistance may also
be of concern in some precision applications. Practical resistors
40
are also specified as having a maximum power rating which
must exceed the anticipated power dissipation of that resistor in
a
particular
circuit:
this
is
mainly
of
concern
in
power
electronic applications. Resistors with higher power ratings are
physically larger and may require heat sinks. In a high-voltage
circuit, attention must sometimes be paid to the rated maximum
working voltage of the resistor.
Fig 3.12: PICTURE OF A FIXED RESISTOR USED IN THE
PROJECT
3.7.4Toggle switch:
The power authentication of this device is a toggle switch.
A switch is an electrical component that can open/close an
41
electrical circuit, interrupting the current or diverting it from
one conductor to another (free dictionary, 2008). The most
familiar form of switch is a manually operated electromechanical
device with one or more sets of electrical contacts. Each set of
contacts can be in one of two states: either 'closed' meaning
the contacts are touching and electricity can flow between
them, or 'open', meaning the contacts are separated and the
switch
is
non-conducting.
The
mechanism
actuating
the
transition between these two states (open or closed) can be
either a "toggle" (flip switch for continuous "on" or "off") or
"momentary" (push-for "on" or push-for "off") type.
FIG 3.13. A TOGGLE SWITCH
42
3.7.5
Transistor:
A transistor is a semiconductor device commonly used to
amplify or switch electronic signals. A transistor is made of a
solid piece of a semiconductor material, with at least three
terminals for connection to an external circuit. A voltage or
current applied to one pair of the transistor's terminals changes
the current flowing through another pair of terminals. Because
the controlled (output) power can be much more than the
controlling (input) power, the transistor provides amplification of
a signal. The transistor is the fundamental building block of
modern electronic devices, and its presence is ubiquitous in
modern electronic systems. The bipolar junction transistor (BJT)
was the first type of transistor to be mass- produced. Bipolar
transistors are so named because they conduct by using both
majority and minority carriers. The three terminals of the BJT
are named- emitter, base, and collector. The BJT consists of two
p-n junctions: the baseemitter junction and the basecollector
junction, separated by a thin region of semiconductor known as
43
the base region (two junction diodes wired together without
sharing an intervening semiconducting region will not make a
transistor). "The [BJT] is useful in amplifiers because the currents
at the emitter and collector are controllable by the relatively
small base current." In an NPN transistor operating in the active
region, the emitter-base junction is forward biased (electrons
and holes recombine at
the junction), and electrons are
injected into the base region. Because the base is narrow, most
of these electrons will diffuse into the reverse-biased (electrons
and holes are formed at, and move away from the junction)
base- collector junction and be swept into the collector; perhaps
one-hundredth of the electrons will recombine in the base, which
is the dominant mechanism in the base current. By controlling
the number of electrons that can leave the base, the number
of electrons entering the collector can be controlled. Collector
current is approximately (common-emitter current gain) times
the base current. It is typically greater than 100 for small-signal
transistors but can be smaller in transistors designed for highpower applications. Unlike the FET, the BJT is a lowinputimpedance device. Also, as the baseemitter voltage (Vbe) is
44
increased, the baseemitter current and the collectoremitter
current (Ice) increase exponentially according to the Shockley
diode
model
and
the
Ebers-Moll
model.
Because
of this
exponential relationship, the BJT has a higher trans-conductance
than the FET.
CHAPTER FOUR
SYSTEM
45
IMPLEMENTATIO
N
4.1 HARDWARE IMPLEMENTATION
The final hardware design of this project was implemented
on a strip Vero-board. The Vero-board was inspected of wrong
linkages
in
its
line,
which may be a mistake from the
manufactures. The holes of the board were checked to be
through
for
passing the terminals of the components for
soldering. An abrasive paper was used on the soldering section
of the board for an easy binding of the terminals on the board.
Fig 4.1: The Vero-board used in the
project
46
Components are usually placed on the plain side of the
board, with their leads protruding through the holes. The leads
are then soldered to the copper tracks on the other side of the
board to make the desired connections, and any excess wire is
cut off, the continuous tracks is neatly cut as desired to avoid
continuity between conductors using a hand cutter made for the
purpose or a knife. The tracks may be linked up on either side
of the board using wire. With practice, very neat and reliable
assemblies can be created, though such a method is laborintensive and therefore unsuitable for production. Vero-board is
also called strip board. It is a widely used type of electronic
board used mostly for the production of prototypes. It is
characterized by features such as: 0.1 inch (2.54 mm) regular
(rectangular) grid of holes, with wide parallel strips of copper
cladding running in one direction all the way across one side of
the board. In using the board, breaks are made in the tracks,
usually around holes, to divide the strips into multiple electrical
nodes.
4.2 FIXING OF THE COMPONENTS
47
The sensor was first connected to the input pin of the ADC
before the microcontroller unit, then the wireless detection
module. During design simulation on the computer, the wireless
detection module was removed because the computer software
cannot
simulate
the
module.
Therefore,
a buzzer was
connected to the microcontroller to test run the system as
shown in figure 4.1 and latter replaced to the RF. wireless
module so that it can send an alert to another location where the
receiver is. A 9 volts battery was used to energize the system
and the microcontroller chip was programmed using assembly
language programming. The code are written in an editor called
MIDE and burned in the chip using a programming machine.
4.3 DESIGN PROCESS
A microcontroller based project design is characterized by
the following; Definition of task, Requirements, Factor that
influence the choice. In defining a task, every design comes
from an idea or a problem that requires a solution. Questions
can arise on what exactly is required to be achieved and the
48
feasibility
of
the
implementation.
If
these
questions
are
analyzed critically with tangible solutions to the problem, a
development
of
this
idea
into
reality
is the
next step.
Requirements for design process have to be considered once
an idea has been established. The need to determine whether or
not the idea requires a PC or not, depending on the complexity
of the circuit, or whether the circuit to be
designed needs to make a complex decision or deal with
complex data. The microcontroller is the best option for highly
sensitive
circuits.
Thus,
to
test/know
the
ability
of
the
microcontroller, a written program designed for the purpose is
used.
49
FIG 4.2: PROGRAM FLOWCHART
50
LDR1
C3
Q3
2N3702
10u
R3
1k
U1
TORCH_LDR
19
C2
18
Q2
10u
XTAL1
XTAL2
2N3392
9
X1
RST
CRYSTAL29
PSEN ALE EA
30
31
R2
39
P0.0/AD0
P0.1/AD1 38
P0.2/AD2 37
P0.3/AD3 36
P0.4/AD4 35
P0.5/AD5 34
P0.6/AD6 33
P0.7/AD7 32
P2.0/A8 21
P2.1/A9 22
P2.2/A10 23
P2.3/A11 24
P2.4/A12 25
P2.5/A13 26
P2.6/A14 27
P2.7/A15 28
R4
10k
C1
10u
1
P3.0/RXD 10
P1.0
2
P3.1/TXD 11
P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7
3
P3.2/INT0 12
AT89C51
4
P3.3/INT1 13
5
P3.4/T0 14
6
P3.5/T1 15
7
P3.6/WR 16
8
P3.7/RD 17
10k
Q1
2N3392
Q5
2N3702
BUZ1(1)
BUZ1
BUZZER
Fig 4.3: CIRCUIT DIAGRAM OF THE PROJECT
The program used in this project is assembling language
programming as shown in the source code above in the
software design.
51
4.4 PROGRAM HEX FILE
:10000000C290C29120900280FB209000120054D236
:1000100091120054C291120054D291120054C29114
:10002000120054D291120054C291120054D2911273
:100030000054C291120054D291120054C291120085
:1000400054D291120054C291120054D29112005411
:10005000C29180B079037A707BA4DBFEDAFCD9FA16
:01006000227D
:00000001FF
52
CHAPTER FIVE
SYSTEM TESTING AND PACKAGING
5.1 SYSTEM TEST
After the design and implementation phase, the system has
to be tested for durability, efficiency, and effectiveness and to
ascertain if there is need to modify the design. The system was
first assembled using a breadboard. The
system was first
powered (switched) ON and the patient sensor was placed on a
hot iron. As the temperature of the iron increased above 37 o
C, an alarm was sounded at the RF. communication module
unit, indicating that the system is in good working condition.
Therefore, if a patients body temperature increases, the sensor
can detect it and trigger an alarm at the sensor receiver end.
During
the
breadboard
practical
experimentation,
all
components were properly inserted into the breadboard from
53
where some tests were carried out at various stages. To ensure
proper functioning of components, a test was carried out using
a digital multi-meter (DMM). Resistors were tested to ensure that
they were within the tolerance value. Faulty resistors were
discarded .The LM7905 voltage regulator was also tested, the
resulting output was 5.02v, which is just a deviation of 0.20v from
the
expected
value
of
5.00v.The
RF.
modules
and
microcontrollers, were tested to ensure that they were all
working properly.
5.2 TEST PLAN AND OVERALL TEST DATA
This section
entails
an overall system testing of the
integrated design. The testing and integration is done to ensure
that the design is functioning properly as expected thereby
enabling users for which the project was designed to appreciate
its implementation and the approach used in the design and
integration of the various modules of the project. This involves
the checks/tests carried out to ensure that all units and
subsystems functions adequately. In addition, there has to be a
good
interface
existing
between
54
the
input/output
unit
subsystems.
5.3 OTHER TESTS
Though components like resistors were packed together,
reference was made to the resistor color code data sheet to
ascertain the expected values of resistors to be used. For each
resistor, the value was read and recorded after each test. For the
transistor test, the DMM was switched to the diode range. The
collector, base and emitter junctions were tested in the following
order. The collector, emitter and base pins were obtained from
the data analysis on power transistor.
Table 5.1 Test for Transistor
st
1 test on
pins
nd
2
test on
pins
Black probe
Red probe
Collector
Base
Emitter
Base
From the table above, the range between the expected value
55
and the actual value can be obtained. However, there may
be a drift in value from the expected data due to the
tolerance of the transistor. The drift in the expected value
would not have any adverse effect on the device as long as the
current range was not exceeded as well as the operational
voltage.
5.4 Bill of engineering measurement and evaluation
Component
Value
Occurrenc
Cost
Name
Resistor
capacitor
1k, 10k
10uf,
e
5,2
1,2
one
10
30,50
(#)
100
130
Microcontrol
100uf
AT89s52
1000
1000
56
per
Total cost
ler
Battery
Vero board
9Volts
Dotted
1
1
500
300
500
300
Voltage
2inches
LM7805
100
100
regulator
Crystal
12MHz
200
200
Oscillator
IC Pin socket
20by
200
200
LCD display
Adoptable
DIP
LM1602
6by 6inch
1
1
6000
5000
6000
5000
box
Infrared
TOP20
9000
9000
module
Light
4kHz 5v
3V 100mA
10
20
DC
50
50
400
400
6inch
by
20
emitting
diode
Battery Cap
9V
battery
Connecting
cap
4yards
Wires
0.5mm
57
Total
23,000
CHAPTER SIX
SUMMARY AND
CONCLUSION
6.1 SUMMARY
Heartbeat
rate
and
temperature
monitor
using
radio
frequency RF. as its mode of communication is a highly sensitive
device
designed
and
constructed
58
with
the
sole
aim
of
combating untimely death caused by cardio-vascular arrest
popularly known as heart attack and excessive body temperature
which can induce a lot of sickness on the body such as malaria,
headache, ulcer and other forms of illness which can be
turbulent on the human health. The microcontroller chip plays
a key role in the operation of this device. It is programmed to
detect
changes
in
the
heartbeat
condition
and
body
temperature. The alarm unit alerts the concerned persons on
the situation of the patient at any instant. The receiver decodes
the alert signal and translates it into a readable output for the
doctor/family members of the patient to be able to understand.
The mechanism of the design is simple and handy to allow for
mobility. This device will go a long way in reducing unforeseen
situation which claims the lives of millions of people almost on
weekly basis all over the world due to inadequate/delay in
healthcare delivery to patients with a fragile heat condition.
6.2 PROBLEMS ENCOUNTERED AND SOLUTION
During the design of this system, there were series of
59
problems encountered, most of which were overc ome via
share troubleshooting. In some cases, some parts required
redesigning, and the software debugging also posed a bit of a
problem. One major setback of this project was the unavailability of some vital components required for the build-up
the hardware of the system. In most cases, I had to look
through electrical catalogs to obtain replacement of some of
the components, which were not available in the market. After
developing the software for the microcontroller, it was very
difficult to find a firm/individual to help with the programming
of the chip (i.e. burning the embedded software on to the
chip). This posed a serious problem as it caused a delay in the
design, coupled with the fact that it was also costly. This
affected the overall cost of the system.
The final packaging of the design was another problem
as this actually caused problem on the circuit board. Such
problems
include
partial
contact
within the circuit board,
between components and with the wiring. This was actually one
of the most challenging aspects of the circuit implementation
phase. Due to this fact, there was a lot of soldering and de60
soldering to ensure that the circuit was well implemented and
seated.
6.3
CONCLUSION
The
planning,
design,
implementation/execution
of this
project has really been a tough one. The configuration of the
various units into one unit to obtain a desired output of
detecting the heartbeat rate through pulses from the blood
vessels on the wrist/thumb, and monitoring of the body
temperature took a lot of courage and the application of the
technical (and theoretical) initiative of the Engineering practice
to
execute.
Thus,
this
device
(integrated
technology) have been initiated to help in
with
modern
regularizing
the
health condition of most individuals by keeping track of their
heartbeat rate condition as well as a constant monitoring of
their body temperature. Thus, alerting the family members on
the patients real time health situation using RF. as the mode of
communication interfaced with LM35 technique.
61
6.4 RECOMMENDATION
This project, though a prototype design, is recommended
for use at the hospitals and at homes for certain individuals who
are prone to cardiac arrests or any form of cardio-vascular
infection/disease.
Patients
who
occasionally
develop
an
excessive body temperature can as well make use of this device
to help them to know their temperature status at a given
instant. Athletes, footballers, cyclists and all those who involve
themselves with tedious activities can also make use of this
device. For future development, the device can be reconfigured
and interfaced with the GSM modem and Bluetooth technology.
62
REFERENCES
Allen J. (2007): Photoplethysmography and its application in
clinical physiological measurement, India, Wajal press Int.
Brown .W.C. (2011): The History of Transmission by Radio
Waves, Artech House press.
Burke, E. (2010): Precision Heart Rate Training, A self Guide.
International Conference, University of Toronto Canada.
Prentice Hall.
Debra .M. (2008): Range of Heart Rates per Minute and Average
Heart Rate for Various Ages.
http://www.smm.org/heart/lessons/lesson1.htm).
Drinnan .M. J, Allen. J and Murray .A. (2001): "Relation between
heart rate and pulse transit time during paced respiration",
Physiol. Meas. Electronic press.
Gardiol .F. E. (2001): Introduction to Microwaves, Dedham Mass
Inc.
Jeong. C. (2006): A new method to estimate arterial blood
pressure using Photo- plethysmographic signal, Platinum
press.
Mohammad .F. and Jamaluddin .B. (2008): Wireless Heart Rate
Monitor, Teknology press.
63
Mohd .F. O. (2011): Developing a Heartbeat Monitoring System
Using PIC Microcontroller. Thesis B. KUiTTHO pub.
Pter .C and Balzs .S. (2009): Development and Applications
of A Home Health Monitoring Device, Kuala Lumpur,
Kuncicky works.
Sara .S. and Bill. Z. (2008): Photo-plethysmograph. IEEE
International conference extract. Vol. MTT-32, pp.12301242.
Shelley. K. H. and Stout .R. G., (2004): "The Use of Joint Time
Frequency Analysis of the Pulse Oximeter Waveform to
Measure The Respiratory Rate of Ventilated Patients."
Anesthesiology 91(3A): A583.
Skolnik .M. I., (2010): Introduction to RF. Systems
Transmission. McGraw- Hill Inc.
64
APPENDIX A
SYSTEM COMPONENTS LIST
1.Vero Board and LM35
2.Connection Wire and IC sockets
3.Toggle switch
4.Light Emitting Diode
5.Soldering Iron
7.9v battery
8.Rectifier Diodes
65
9.2200uf /25V Capacitor
10. 10uf 16V Capacitor
11. 30pf capacitor
12. Resistors
13. 7805 Voltage Regulator
15. 16 MHz crystal oscillator, AT89S51 Micro
controller 17 IC Base Socket (40 pins),
Transistors
66
APPENDIX B
FEATURES OF THE
MICROCONTROLLER
Programmable serial channel
Compatible with MCS-51TM
product
flas memor 1,00
h
y
Endurance: 0
write/Erase cycles
Fully static operation:0Hz to
24MHz
67
Three-level program memory lock
128 x 8-bit internal RAM
32 programmable I/O lines
Two 16-bit timer/counters
Six interrupt sources
Low-power idle and power-down
modes.
68