Professional Documents
Culture Documents
ABSTRACT
This work is on design and construction of a heart beat monitor. Heart rate is a
very vital health parameter that is directly related to the soundness of the human
cardiovascular system. This project describes a technique of measuring the heart
rate through a fingertip. While the heart is beating, it is actually pumping blood
throughout the body, and that makes the blood volume inside the finger artery to
change too. This fluctuation of blood can be detected through an optical sensing
mechanism placed around the fingertip. The signal can be amplified further for the
system to count the rate of fluctuation, which is actually the heart rate. The aim of
this work is to design a device that senses the heart rate from the finger tip using IR
reflection method and displays it on lcd in beats per minute. The circuit has an
accuracy of 4 beats per minute.
Chapter 1
INTRODUCTION
Heart rate, or heart pulse, is the speed of the heartbeat measured by the number of
contractions of the heart per unit of time — typically beats per minute (bpm). The
heart rate can vary according to the body’s physical needs, including the need to
absorb oxygen and excrete carbon dioxide. Activities that can provoke change
include physical exercise, sleep, anxiety, stress, illness, ingesting, and drugs. The
normal resting adult human heart rate ranges from 60–100 bpm. Tachycardia is a
fast heart rate, defined as above 100 bpm at rest. Bradycardia is a slow heart rate,
defined as below 60 bpm at rest. During sleep a slow heartbeat with rates around
40–50 BPM is common and is considered normal. When the heart is not beating in
a regular pattern, this is referred to as an arrhythmia. These abnormalities of heart
rate sometimes indicate disease. This paper describes the design of a very low-cost
device which measures the heart rate of the subject by clipping sensors on one of
the fingers and then displaying the result on lcd. Advantage of such a design is that
it can be expanded and can easily be connected to a recording device or a PC to
collect and analyse the data for over a period of time. Heart rate measurement is
one of the very important parameters of the human cardiovascular system. The
heart rate of a healthy adult at rest is around 72 beats per minute (bpm). Athletes
normally have lower heart rates than less active people. Babies have a much higher
heart rate at around 120 bpm, while older children have heart rates at around 90
bpm. The heart rate rises gradually during exercises and returns slowly to the rest
value after exercise. The rate when the pulse returns to normal is an indication of
the fitness of the person. Heart rate is simply and traditionally measured by placing
the thumb over the subject’s arterial pulsation, and feeling, timing and counting the
pulses usually in a 5 second period. Heart rate (bpm) of the subject is then found
by multiplying the obtained number by 12. This method although simple, is not
accurate and can give errors when the rate is high. More sophisticated methods to
measure the heart rate utilize electronic techniques.
Methodology
This Project material is about a simple heart rate monitor using 8051
microcontroller. Like the other 8051 projects, AT89S51 is the microcontroller used
here. The device senses the heart rate from the finger tip using IR reflection
method and displays it on a three digit seven segment display in beats per minute.
The circuit has an accuracy of 4 beats per minute and it is very easy to use. In
medical terms, the technique used here for sensing heart rate is called
photoplethysmography.
Photoplethysmography.
Heart beat sensor is designed to give digital output of heat beat when a finger is
placed on it. When the heart beat detector is working, the beat LED flashes in
unison with each heart beat. This digital output can be connected to
microcontroller directly to measure the Beats per Minute (BPM) rate. It works on
the principle of light modulation by blood flow through finger at each pulse. A
simple heart -beat transducer can be made from an infrared LED and an infrared
phototransistor. It works because skin acts as a reflective surface for infrared light.
The IR reflectivity of skin depends on the density of blood in it. Blood density
rises and falls with the pumping action of the heart. So the intensity of infrared
reflected by the skin (and thus transmitted to the phototransistor) rises and falls
with each heartbeat.
LCD Interfacing:
The most commonly used Character based LCDs are based on Hitachi's HD44780
controller or other which are compatible with HD44580. In this tutorial, we will
discuss about character based LCDs, their interfacing with various
microcontrollers, various interfaces (8-bit/4-bit), programming, special stuff and
tricks you can do with these simple looking LCDs which can give a new look to
your application.
Microcontrollers:
Microprocessors and microcontrollers are widely used in embedded systems
products. Microcontroller is a programmable device. A microcontroller has a CPU
in addition to a fixed amount of RAM, ROM, I/O ports and a timer embedded all
on a single chip. The fixed amount of on-chip ROM, RAM and number of I/O
ports in microcontrollers makes them ideal for many applications in which cost and
space are critical. The Intel 8051 is Harvard architecture, single chip
microcontroller (µC) which was developed by Intel in 1980 for use in embedded
systems. It was popular in the 1980s and early 1990s, but today it has largely been
superseded by a vast range of enhanced devices with 8051-compatible processor
cores that are manufactured by more than 20 independent manufacturers including
Atmel, Infineon Technologies and Maxim Integrated Products. 8051 is an 8-bit
processor, meaning that the CPU can work on only 8 bits of data at a time. Data
larger than 8 bits has to be broken into 8-bit pieces to be processed by the CPU.
8051 is available in different memory types such as UV-EPROM, Flash and NV-
RAM. The present project is implemented on Keil Uvision. In order to program the
device, Proload tool has been used to burn the program onto the microcontroller.
The AT89s52 is a low-voltage, high-performance CMOS 8-bit microcomputer
with 8K bytes of Flash programmable memory. The device is manufactured using
Atmel’s high density nonvolatile memory technology and is compatible with the
industry-standard MCS51 instruction set. The on chip flash allows the program
memory to be reprogrammed in system or by a conventional non volatile memory
programmer. By combining a versatile 8- bit CPU with Flash on a monolithic chip,
the Atmel AT89s52 is a powerful microcomputer, which provides a highly flexible
and cost-effective solution to many embedded control applications.
The above circuit shows the finger type heartbeat sensor, which works by detecting
the pulses. Every heartbeat will alter the amount of blood in the finger and the light
from the IR LED passing through the finger and thus detected by the Photo Diode
will also vary. The output of the photo diode is given to the non – inverting input
of the first op – amp through a capacitor, which blocks the DC Components of the
signal. The first op – amp cats as a non – inverting amplifier with an amplification
factor of 1001. The output of the first op – amp is given as one of the inputs to the
second op – amp, which acts as a comparator. The output of the second op – amp
triggers a transistor, from which, the signal is given to a Microcontroller like
Arduino. The Op – amp used in this circuit is LM324. It has two op – amps on the
same chip. Also, the transistor used is a BC547. An LED, which is connected to
transistor, will blink when the pulse is detected.
Power Supply:
The heartbeat monitoring system is powered up with 18v dc supply using 2 pair of
9v battery. These 18 voltages are regulated to 5v using LM7805. Because the
microcontroller, LCD displays and heartbeat module operated on 5V dc therefore
these voltages are regulated into 5V dc through the voltage regulator. The LM7805
voltage regulators have been used in this project.
Chapter 4
Component description
LCD, Doide, Resistors, Capacitor, Led, Switch, Heartbeat sensor, Lm7805
Transistor and Crystal oscillator
Resistors
The basic of all electronic components are the Resistors. It is a passive electronic
component that introduces electrical resistance in to the circuit. Using resistors, we
can reduce the current, divide voltages, setup biasing of transistors (or other active
elements), etc
Resistors are again divided in to Fixed Resistors and Variable Resistors. Fixed
Resistors, as the name suggests, have a fixed resistance and its resistance doesn’t
change due to external parameters.
Capacitors
The second important passive component is a capacitor, a device that stores energy
in the form of electric field. Most capacitors consist of two conducting plates that
are separated by a dielectric material.
If Q is the charge on any one of the conductor plates and V is the voltage between
them, then the Capacitance C of the Capacitor is C = Q/V. In electronics circuits, a
capacitor is mainly used to block DC Current and allow AC Current. The other
applications of capacitors are filters, timing circuits, power supplies and energy
storing elements. There are many types of Capacitors like Polarized, Non –
Polarized, Ceramic, Film, Electrolytic, Super Capacitors etc.
Diodes
Diode is a non-linear semiconductor device that allows flow of current in one
direction. A Diode is a two – terminal device and the two terminals are Anode and
Cathode respectively. The following is the symbol of a Diode. There are again a
variety of components that come under the category of Diodes. They are PN
Junction Diode, Light Emitting Diode (LED), Zener Diode, Schottky Diode,
Photodiode and DIAC. Normal PN Diodes are often used in AC to DC Converter
circuits. You might be familiar with LED or a Light Emitting Diode. It is a
semiconductor device (or a PN Junction diode, to be more specific) that emits light
when activated. A Zener Diode allows flow of current in both directions and is
often used as a voltage stabilizer. Schottky Diode is similar to a regular PN Diode
but with less forward current and hence is often used in fast switching circuits.
Crystal Oscillator
Circuit Symbol
A crystal oscillator is an electronic oscillator circuit that uses the mechanical
resonance of a vibrating crystal of piezoelectric material to create an electrical
signal with a precise frequency. This frequency is often used to keep track of time,
as in quartz wristwatches, to provide a stable clock signal for digital integrated
circuits, and to stabilize frequencies for radio transmitters and receivers. The most
common type of piezoelectric resonator used is the quartz crystal, so oscillator
circuits incorporating them became known as crystal oscillators, [1] but other
piezoelectric materials including polycrystalline ceramics are used in similar
circuits. A crystal oscillator, particularly one made of quartz crystal, works by
being distorted by an electric field when voltage is applied to an electrode near or
on the crystal. This property is known as electrostriction or inverse piezoelectricity.
When the field is removed, the quartz - which oscillates in a precise frequency -
generates an electric field as it returns to its previous shape, and this can generate a
voltage. The result is that a quartz crystal behaves like an RLC circuit. Quartz
crystals are manufactured for frequencies from a few tens of kilohertz to hundreds
of megahertz. More than two billion crystals are manufactured annually Most are
used for consumer devices such as wristwatches, clocks, radios, computers, and
cell phones. Quartz crystals are also found inside test and measurement equipment,
such as counters, signal generators, and oscilloscopes.
LED
Microcontroller
Microcontroller AT89S52
The AT89S52 (6 AND 12 clock per machine cycle) is a low-power, high-
performance CMOS 8-bit microcontroller with 4K bytes of in-system
programmable Flash memory. The device is manufactured using Philips’s high-
density nonvolatile memory technology. The on-chip Flash allows the program
memory to be reprogrammed in-system or by a conventional nonvolatile memory
pro- grammar. By combining a versatile 8-bit CPU with in-system programmable
Flash on a monolithic chip, the Philips AT89S52 is a powerful microcontroller
which provides a highly-flexible and cost-effective solution to many embedded
control applications.
The AT89S52 provides the following standard features: 4K bytes of Flash, 128
bytes of RAM, 32 I/O lines, Watchdog timer, two data pointers, two 16-bit
timer/counters, a six-vector two-level interrupt architecture, a full duplex serial
port, on-chip oscillator, and clock circuitry. In addition, the AT89S52 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 con- tents but freezes the oscillator, disabling
all other chip functions until the next interrupt or hardware reset.
FEATURES
• 4 KB Reprogrammable flash.
• 32 Programmable I/O lines.
• 16 bit Timer/Counter 2.
• 8 Interrupt sources.
• Power range: 4V – 5.5V
• Endurance : 1000 Writes / Erase cycles
• Fully static operation: 0 Hz to 33 MHz
• Three level program memory lock
• Full duplex UART serial channel
• Low power idle and power down modes
• Interrupt recovery from power down modes
• 128 B internal RAM.
Lm7805 Regulator
Power supply IC 7805
The KA78XX/KA78XXA series of three-terminal positive regulator are available
in the TO-220/D-PAK package and with several fixed output voltages, making
them useful in a wide range of applications. In the name of this IC the last two
numbers indicate the regulated voltage which will be the output of this IC i.e. 7805
indicate that the regulated voltage in the output if this is 5 volts. Each type employs
internal current limiting, thermal shut down and safe operating area protection,
making it essentially indestructible. If adequate heat sinking is provided, they can
deliver over 1A output current. Although designed primarily as fixed voltage
regulators, these devices can be used with external components to obtain adjustable
voltages and currents.
Features
• Output Current up to 1A
• Output Voltages of 5, 6, 8, 9, 10, 12, 15, 18, 24V
• Thermal Overload Protection
• Short Circuit Protection
• Output Transistor Safe Operating Area Protection
Transistor
Bipolar transistor circuit symbol
The circuit symbol for the transistor is seen in very many circuits.
The circuit symbol shows the three connections to the transistor, namely: base,
collector and emitter. The base is the connection that is connected to the centre of
the main element within the symbol. The emitter is the line entering at an angle
and has an arrow on it. An inward facing arrow denotes a PNP transistor, whereas
an outward facing one denotes a PNP transistor. The collector is the third electrode
and it is designated by the line at an angle with no arrow on it.
How a transistor works - the basics
The transistor can be considered as two p-n junctions that are placed back to back.
The structure has two PN junctions with a narrow base region between the two
outlying areas for the collector and emitter. In normal operation, the base emitter
junction is forward biased and the base collector junction is reverse biased. When a
current flows through the base emitter junction, a current also flows in the collector
circuit. This is larger and proportional to the one in the base circuit. In order to
explain the way in which this happens, the example of an n-p-n transistor is taken.
The same principles are used for the p-n-p transistor except that the current carrier
is holes rather than electrons and the voltages are reversed.
Heartbeat Sensor
A Heartbeat Sensor is a monitoring device that measures the heart rate i.e the
speed of the heartbeat. A person’s heartbeat is the sound of the valves in his heart
expanding or contracting as they force blood from one region to another There are
two ways to monitor the heart rate: one way is to manually check the pulse either
at wrists or neck and the other way is to use a Heartbeat Sensor.
Working Explanation
Two IR photodiodes will sense the heart pulses in this circuit. One acts as a
transmitter which shines a light into or through your finger while the receiver
measures how much light is reflected or absorbed. The measured intensity of the
reflected rays depends on the heart pumping rate and on the difference in the
oxygenated blood levels inside the blood content. The IC used in this circuit is
LM358 which has 2 op-amps on the same chip. The output of the photodiode is
given to the non – inverting input of the first op-amp through a capacitor, which
blocks the DC Components of the signal. The output of the first op-amp is then
applied to one of the inputs of the second op-amp, which acts as a comparator. The
LED is connected to the output of the second op-amp which can be obtained at pin
7. The rate at which LED flashes shows our heart rate.
Application
1. This circuit can work as a Patient Health Monitoring System.
REFERENCES
1. A microcontroller based automatic heart rate counting system from fingertip
Mamun AL, Ahmed N, ALQahtani (JATIT)Journal OF Theory and Applied
technology ISSN 1992-8645.
2. Heartbeat and Temperature Monitoring System for remote patients using
Arduino Vikram Singh, R. Parihar, Akash Y TangipahoaD Ganorkar
(IJAERS), International Journal of Advanced Engineering and Science
eissn2349-6495.
3. A GSM Enabled Real time simulated Heart Rate Monitoring and control
system Sudhindra F, Anna Rao S.J, (IJRET) International Journal of
Research In Engineering And Technology, e ISSN 2319-3163.
4. Heart beat Sensing and Heart Attack Detection Using internet of things: IOT
Aboobacker sidheeque, Arith Kumar, K. Sathish,(IJESCE) International
Journal Of Engineering Science and Computing, April 2007.
5. A Heartbeat and Temperature Measuring System for Remote Health
Monitoring using Wireless Body Area Network Mohammad Wajih Alam ,
Tanin Sultana and Mohammad Sami Alam International Journal of
BioScience and Bio-Technology Vol.8, No.1 (2016).
6. Heartbeat Monitoring Alert via SMS 2009 IEEE Symposium on Industrial
Electronics and Applications October 4-6, 2009, Kuala Lumpur, Malaysia.
Warsuzarina Mat Jubadi, Siti Faridatul Aisyah Mohd Sahak Dept. of
Electronics Engineering University Tun Hussein Onn Malaysia Batu Pahat,
Johor, Malaysia
Chapter 3