Docsity

HEART RATE SENSOR PROJECT, Exercises of Microcontrollers

Toggle sidebar
bg1
HEART RATE MEASUREMENT FROM FINGERTIP
Introduction
Heart rate measurement indicates the soundness of the human cardiovascular system. This
project demonstrates a technique to measure the heart rate by sensing the variation of the
blood volume inside a finger artery, which is caused by the pumping action of the heart. It
consists of an infrared LED that transmits an IR signal through the fingertip of the
subject. A part of this infrared light 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. Therefore, a two-stage, high gain, active low pass
filter is designed using two Operational Amplifiers (Op-Amps) to filter and amplify the signal
to appropriate voltage level so that the pulses can be counted by a microcontroller. The
heart rate is displayed on a 3 digit seven segment LED display. The microcontroller used in
this project is PIC16F628A.
Heart rate measuring device using PIC16F628A
pf3
pf4
pf5

Partial preview of the text

Download HEART RATE SENSOR PROJECT and more Exercises Microcontrollers in PDF only on Docsity!

HEART RATE MEASUREMENT FROM FINGERTIP

Introduction

Heart rate measurement indicates the soundness of the human cardiovascular system. This project demonstrates a technique to measure the heart rate by sensing the variation of the blood volume inside a finger artery, which is caused by the pumping action of the heart. It consists of an infrared LED that transmits an IR signal through the fingertip of the subject. A part of this infrared light 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. Therefore, a two-stage, high gain, active low pass filter is designed using two Operational Amplifiers (Op-Amps) to filter and amplify the signal to appropriate voltage level so that the pulses can be counted by a microcontroller. The heart rate is displayed on a 3 digit seven segment LED display. The microcontroller used in this project is PIC16F628A. Heart rate measuring device using PIC16F628A

Theory

Heart rate is the number of heartbeats per unit of time and is usually expressed in beats per minute (bpm). In adults, a normal heart beats about 60 to 100 times a minute during resting condition. The resting heart rate is directly related to the health and fitness of a person, and hence is important to know. You can measure heart rate at any spot on the body where you can feel a pulse with your fingers. The most common places are wrist and neck. You can count the number of pulses within a certain interval (say 15 sec), and easily determine the heart rate in bpm. This project describes a microcontroller based heart rate measurement system that uses optical sensors to measure the alteration in blood volume at fingertip with each heartbeat. The sensor unit consists of an infrared light-emitting-diode (IR LED) and a photodiode, placed side by side as shown below. 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. So, each heart beat 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 be later counted by the microcontroller to determine the heart rate. Fingertip placement over the sensor unit

The microcontroller runs at 4.0 MHz using an external crystal. A regulated +5V power supply is derived from an external 9 V battery using an LM7805 regulator IC.

Output

The use of this device is very simple. Turn the power on, and you will see all zeros on display for few seconds. Wait till the display goes off. Now place your forefinger tip on the sensor assembly, and press the start button. Just relaxed and don’t move your finger. You will see the LED blinking with heart beats, and after 15 sec, the result will be displayed.

References The following papers were used as reference in making this project. Design and development of a heart rate measuring device using fingertip by Hashem, M.M.A. Shams, R. Kader, M.A. Sayed, M.A., International conference on computer and communication engineering, 2010.

Important note:

I am adding these paragraphs to provide further detail on the sensor and signal conditioning part of this project. The harder part in this project is the signal conditioning circuit that uses active low pass filters using Op-Amps to boost the weak reflected light signal detected by the photo diode. The IR transmitting diode and the photo diode are placed closely but any direct crosstalk between the two are avoided. Look at the following pictures to see how I have blocked the direct infrared light from falling into the adjacent photo diode. Besides, surrounding the sensor with an opaque material makes the sensor system more robust to changing ambient light condition. I have used separate IR diode and photo diode, but you can buy reflective optical sensor systems that have both the diodes assembled together. Here’s an example from Tayda Electronics.

First I used a 68Ω resistor with a 470 Ω potentiometer in series with the IR diode. Placing a fingertip over the sensor assembly, I slowly varied the potentiometer till I found the output LED blinking with heartbeat. Then I measured the equivalent resistance R and replaced the 68 Ω and the potentiometer with a single resistor closest to R. But you can also keep the potentiometer in your circuit so that you can always adjust it when needed. You should keep your fingertip very still over the sensor while testing. Once you see the pulses at the output of the signal conditioning circuit, you can feed them to a microcontroller to count and display.