SlideShare ist ein Scribd-Unternehmen logo
1 von 17
[1]
HEART BEAT RATE SENSOR USING
MICROCONTROLLER
PROJECT REPORT
By
RINKU MEENA
1201EE30
To the
Department of Electrical Engineering
INDIAN INSTITUTE OF TECHNOLOGY PATNA
MARCH, 2015
[2]
CERTIFICATE
Itis certified that the work contained in the projectreport entitled “Heart Beat
Sensor using Microcontroller”, by RinkuMeenahas been carried out under my
supervision.
Dr. Sudhan Majhi
March, 2015
[3]
ACKNOWLEDGEMENTS
I would like to express my gratitude towards all the people who have
contributed their precious time and effort to help me in the project. First
and foremost, I would thank Almighty God and my parents without
whom I would not be what I am today.
I would like to thank Asst. Prof. Sudhan Majhi, Department of Electrical
Engineering, IIT Patna, and my Project Supervisor for his guidance,
support, motivation and encouragement throughout the period this
work was carried out. His readiness for consultation at all times, his
educative comments, his concern and assistance have been invaluable.
Last but not least, I would also extend my sincere thank to Department
of electrical engineering IIT Patna for availing the facilities required for
my investigational analysis.
Rinku Meena
1201EE30
[4]
ABSTRACT
This is an attempt made which describes the design of a simple, low-cost
microcontroller based heart rate measuring device with seven segment
display output. Heart rate of the subject is measured from the finger by
placing the thumb in between the LDR and LED and the rate is then
averaged and displayed on a text based Seven segment display. The
heart rate can be known at a time other which is very advantageous to
anybody.
It then processes on real-time the information to determine some heart
diseases.
Our proposed Heart Rate Measuring (HRM) device is economical and
user friendly.
[5]
CONTENTS
Page no
1. Introduction 6
2. Objective 7
3. Working principle 8
4. Circuit diagram 9
5. Applications 11
6. Future aspects 11
7. References 12
8. Appendix 13
[6]
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 change in blood volume in a
finger artery while the heart is pumping the blood.
It consists of an infrared LED that transmits an IR signal through the
fingertip 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.
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
display. The microcontroller used in this project is PIC16F628A.
[7]
OBJECTIVE
The objective of this project is to design, build and test a device that
measure your heartbeat rate.
The device will be based on a non invasive sensor that the detects the
variation of the blood flow in your finger due to the heart action.
[8]
WORKING PRINCIPLE
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 heart beat. 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.
[9]
CIRCUIT DAIGRAM
The 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 operational amplifier IC used in this circuit is MCP602, a dual Op-
Amp chip from Microchip. It operates at a single power supply and
provides rail-to-rail output swing. The filtering is necessary to block any
higher frequency noises present in the signal. The gain of each filter
stage is set to 101, giving the total amplification of about 10000.
A 1 µF capacitor at the input of each stage is required to block the dc
component in the signal. The equations for calculating gain and cut-off
frequency of the active low pass filter are shown in the circuit diagram.
The two stage amplifier/filter provides sufficient gain to boost the weak
signal coming from the photo sensor unit and convert it into a pulse. An
LED connected at the output blinks every time a heart beat is detected.
The output from the signal conditioner goes to the T0CKI input of
PIC16F628A.
[10]
The control and display part of the circuit is shown below.
The display unit comprises of a 3-digit, common anode, seven segment
module that is driven using multiplexing technique. The segments a-g
are driven through PORTB pins RB0-RB6, respectively. The unit’s, ten’s
and hundred’s digits are multiplexed with RA2, RA1, and RA0 port pins.
A tact switch input is connected to RB7 pin. This is to start the heart rate
measurement. Once the start button is pressed, the microcontroller
activates the IR transmission in the sensor unit for 15 sec. During this
interval, the number of pulses arriving at the T0CKI input is counted. The
actual heart rate would be 4 times the count value, and the resolution of
measurement would be 4. You can see the IR transmission is controlled
through RA3 pin of PIC16F628A. The microcontroller runs at 4.0 MHz
using an external crystal. A regulated +5V & +12V power supply through
dc voltage source.
[11]
APPLICATIONS
• Heart rate monitoring in fitness center.
• For athletes
• In rural areas where medical facilities are limited.
FUTURE ASPECTS
 Storing the heart rate in a memory.
 Connecting with e-mail to send alert messages.
 Including other bio-medical signals like breathing rate along with
heart rate.
[12]
REFERENCES
 “Design and development of a heart rate measuring device using
fingertip”, Hashem, M.M.A. Shams, R. Kader, M.A. Sayed, M.A.,
International conference on computer and communication
engineering, 2010.
 “Heart rate measurement from the finger using a low cost
microcontroller”, Dogan Ibrahim and Kadri Buruncuk.
 Microcontroller Based Heart Rate Monitor using Fingertip Sensors
by Sharief F. Babiker, Liena Elrayah Abdel-Khair,
SamahM.Elbasheer.
 Liang-Hung Wang1, T sung-Y en Chen1, Shuenn-Y uh Lee1,
T ai-Hsuan Y ang2 “A wireless electrocardiogram detection
for personal health monitoring” 978-1-4673-5936-
8/13$31.00 ©2013 IEEE.
[13]
APPENDIX
Code Used:
/*
Project: Heartbeat rate through fingertip
PIC16F628A at 4.0 MHz external clock, MCLR enabled
*/
sbit IR_Tx at RA3_bit;//access a bit at RA3
sbit DD0_Set at RA2_bit;
sbit DD1_Set at RA1_bit;
sbit DD2_Set at RA0_bit;
sbit start at RB7_bit;
unsigned short j, DD0, DD1, DD2, DD3;
unsigned short pulserate, pulsecount;
unsigned int i;
//-- ------------ Function to Return mask for common anode 7-seg. display
unsigned short mask(unsigned short num) {
switch (num) {
case 0 : return 0xC0; //for display 0
case 1 : return 0xF9; //for display 1
case 2 : return 0xA4; //for display 2
[14]
case 3 : return 0xB0; //for display 3
case 4 : return 0x99; //for display 4
case 5 : return 0x92; //for display 5
case 6 : return 0x82; //for display 6
case 7 : return 0xF8; //for display 7
case 8 : return 0x80; //for display 8
case 9 : return 0x90; //for display 9
} //case end
}
void delay_debounce(){
Delay_ms(300);
} //define a function delay_bounce
void delay_refresh(){
Delay_ms(5);
} //define a function dealy_refersh
void countpulse(){
IR_Tx = 1;
delay_debounce();
delay_debounce();
TMR0=0; //timer on
[15]
Delay_ms(15000); // Delay 1 Sec
IR_Tx = 0;
pulsecount = TMR0; // timer off
pulserate = pulsecount*4;
} //a function for count pluserate
void display(){
DD0 = pulserate%10;
DD0 = mask(DD0); // first digit
DD1 = (pulserate/10)%10;
DD1 = mask(DD1); //second digit
DD2 = pulserate/100;
DD2 = mask(DD2); // third digit
for (i = 0; i<=180*j; i++) {
DD0_Set = 0;
DD1_Set = 1;
DD2_Set = 1;
PORTB = DD0; //PORTB output at DD0
delay_refresh();
DD0_Set = 1;
DD1_Set = 0;
DD2_Set = 1;
[16]
PORTB = DD1; //PORTB output at DD1
delay_refresh();
DD0_Set = 1;
DD1_Set = 1;
DD2_Set = 0;
PORTB = DD2; //PORTB output at DD2
delay_refresh();
}
DD2_Set = 1; //DD2 off
}
void main() {
CMCON = 0x07; // Disable Comparators
TRISA = 0b00110000; // RA4/T0CKI input, RA5 is I/P only
TRISB = 0b10000000; // RB7 input, rest output
OPTION_REG = 0b00101000; // Prescaler (1:1), TOCS =1 for counter
mode
pulserate = 0;
j = 1;
display();
do {
if(!start){
[17]
delay_debounce();
countpulse();
j= 3;
display();
}
} while(1); // Infinite loop
}

Weitere ähnliche Inhalte

Was ist angesagt?

Arduino based heartbeat monitoring system.
Arduino based heartbeat monitoring system.Arduino based heartbeat monitoring system.
Arduino based heartbeat monitoring system.
Arkadeep Dey
 
Temperature Controlled Fan Report
Temperature Controlled Fan ReportTemperature Controlled Fan Report
Temperature Controlled Fan Report
Peeyush Pashine
 
ARDUINO BASED HEART BEAT MONITORING SYSTEM
ARDUINO BASED HEART BEAT MONITORING SYSTEMARDUINO BASED HEART BEAT MONITORING SYSTEM
ARDUINO BASED HEART BEAT MONITORING SYSTEM
MOHAMMAD HANNAN
 

Was ist angesagt? (20)

Arduino based heartbeat monitoring system.
Arduino based heartbeat monitoring system.Arduino based heartbeat monitoring system.
Arduino based heartbeat monitoring system.
 
REAL TIME HEART BEAT MONITORING SYSTEM USING PIC16F876 MICROCONTROLLER
REAL TIME HEART BEAT MONITORING SYSTEM USING PIC16F876 MICROCONTROLLERREAL TIME HEART BEAT MONITORING SYSTEM USING PIC16F876 MICROCONTROLLER
REAL TIME HEART BEAT MONITORING SYSTEM USING PIC16F876 MICROCONTROLLER
 
Heart beat monitor using AT89S52 microcontroller
Heart beat monitor using AT89S52 microcontrollerHeart beat monitor using AT89S52 microcontroller
Heart beat monitor using AT89S52 microcontroller
 
IRJET- Heart Attack Detection by Heartbeat Sensing using Internet of thin...
IRJET-  	  Heart Attack Detection by Heartbeat Sensing using Internet of thin...IRJET-  	  Heart Attack Detection by Heartbeat Sensing using Internet of thin...
IRJET- Heart Attack Detection by Heartbeat Sensing using Internet of thin...
 
Sensor Based Blind Stick
Sensor Based Blind StickSensor Based Blind Stick
Sensor Based Blind Stick
 
Wireless human health Monitor
Wireless human health MonitorWireless human health Monitor
Wireless human health Monitor
 
smart blind stick
smart blind sticksmart blind stick
smart blind stick
 
Ir sensor
Ir sensorIr sensor
Ir sensor
 
IR proximity sensor report file.
IR proximity sensor report file.IR proximity sensor report file.
IR proximity sensor report file.
 
Temperature Controlled Fan Report
Temperature Controlled Fan ReportTemperature Controlled Fan Report
Temperature Controlled Fan Report
 
Instrumentation amplifier in ECG
Instrumentation amplifier  in ECG Instrumentation amplifier  in ECG
Instrumentation amplifier in ECG
 
Mini project-report
Mini project-reportMini project-report
Mini project-report
 
Smart Blind stick by using arduino uno and sensor
 Smart Blind stick  by using arduino  uno  and sensor Smart Blind stick  by using arduino  uno  and sensor
Smart Blind stick by using arduino uno and sensor
 
Report on Automatic Heart Rate monitoring using Arduino Uno
Report on Automatic Heart Rate monitoring using Arduino UnoReport on Automatic Heart Rate monitoring using Arduino Uno
Report on Automatic Heart Rate monitoring using Arduino Uno
 
soldier tracking and health monitoring system
soldier tracking and health monitoring systemsoldier tracking and health monitoring system
soldier tracking and health monitoring system
 
Arduino based health monitoring system
Arduino based health monitoring systemArduino based health monitoring system
Arduino based health monitoring system
 
ARDUINO BASED HEART BEAT MONITORING SYSTEM
ARDUINO BASED HEART BEAT MONITORING SYSTEMARDUINO BASED HEART BEAT MONITORING SYSTEM
ARDUINO BASED HEART BEAT MONITORING SYSTEM
 
Automatic control of street light using LDR
Automatic control of street light using LDRAutomatic control of street light using LDR
Automatic control of street light using LDR
 
function generator
function generatorfunction generator
function generator
 
traffic light control using 4017 ic counter & timer 555
traffic light control using 4017 ic counter & timer 555traffic light control using 4017 ic counter & timer 555
traffic light control using 4017 ic counter & timer 555
 

Ähnlich wie heartbeatsensor

Iaetsd emergency recovery control unit using microcontroller
Iaetsd emergency recovery control unit using microcontrollerIaetsd emergency recovery control unit using microcontroller
Iaetsd emergency recovery control unit using microcontroller
Iaetsd Iaetsd
 
-1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
 -1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid -1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
-1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
sairamreddy siddu
 

Ähnlich wie heartbeatsensor (20)

Microcontroller Based Heart Beat and Temperature Monitoring System using Fing...
Microcontroller Based Heart Beat and Temperature Monitoring System using Fing...Microcontroller Based Heart Beat and Temperature Monitoring System using Fing...
Microcontroller Based Heart Beat and Temperature Monitoring System using Fing...
 
Heartbeat monitor USING IC PIC16F72
Heartbeat monitor USING IC PIC16F72Heartbeat monitor USING IC PIC16F72
Heartbeat monitor USING IC PIC16F72
 
micro controller based heart rate monitoring system
micro controller based heart rate monitoring systemmicro controller based heart rate monitoring system
micro controller based heart rate monitoring system
 
Tachometer
TachometerTachometer
Tachometer
 
Iaetsd emergency recovery control unit using microcontroller
Iaetsd emergency recovery control unit using microcontrollerIaetsd emergency recovery control unit using microcontroller
Iaetsd emergency recovery control unit using microcontroller
 
Design and Implementation of Real Time Remote Supervisory System
Design and Implementation of Real Time Remote Supervisory SystemDesign and Implementation of Real Time Remote Supervisory System
Design and Implementation of Real Time Remote Supervisory System
 
CRF final ppt
CRF   final pptCRF   final ppt
CRF final ppt
 
Patient Monitoring System
Patient Monitoring SystemPatient Monitoring System
Patient Monitoring System
 
-1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
 -1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid -1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
-1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
 
Design and fabrication of cost-effective heart-rate pulse monitoring sensor s...
Design and fabrication of cost-effective heart-rate pulse monitoring sensor s...Design and fabrication of cost-effective heart-rate pulse monitoring sensor s...
Design and fabrication of cost-effective heart-rate pulse monitoring sensor s...
 
Heart rate monitoring system using 8051
 Heart rate monitoring system using 8051 Heart rate monitoring system using 8051
Heart rate monitoring system using 8051
 
IRJET - Heart Rate Monitoring & Detection System
IRJET - Heart Rate Monitoring & Detection SystemIRJET - Heart Rate Monitoring & Detection System
IRJET - Heart Rate Monitoring & Detection System
 
IRJET- Review Paper on Patient Health Monitoring System using Can Protocol
IRJET- Review Paper on Patient Health Monitoring System using Can ProtocolIRJET- Review Paper on Patient Health Monitoring System using Can Protocol
IRJET- Review Paper on Patient Health Monitoring System using Can Protocol
 
Irjet v4 i12308IOT-BEAT: An Intelligent Nurse for the Cardiac Patient with Mu...
Irjet v4 i12308IOT-BEAT: An Intelligent Nurse for the Cardiac Patient with Mu...Irjet v4 i12308IOT-BEAT: An Intelligent Nurse for the Cardiac Patient with Mu...
Irjet v4 i12308IOT-BEAT: An Intelligent Nurse for the Cardiac Patient with Mu...
 
Iaetsd mobile icu using android
Iaetsd mobile icu using androidIaetsd mobile icu using android
Iaetsd mobile icu using android
 
IRJET- GSM based Patient Health Monitoring System
IRJET-  	  GSM based Patient Health Monitoring SystemIRJET-  	  GSM based Patient Health Monitoring System
IRJET- GSM based Patient Health Monitoring System
 
CARDIO VASCULAR ALERTING SYSTEM FOR POST – OP CABG PATIENTS
CARDIO VASCULAR ALERTING SYSTEM FOR POST – OP CABG PATIENTSCARDIO VASCULAR ALERTING SYSTEM FOR POST – OP CABG PATIENTS
CARDIO VASCULAR ALERTING SYSTEM FOR POST – OP CABG PATIENTS
 
Heart attact detect and monitoring system via arduino.
Heart attact detect and monitoring system via arduino.Heart attact detect and monitoring system via arduino.
Heart attact detect and monitoring system via arduino.
 
IRJET- Heart Rate Monitoring by using Pulse Sensor
IRJET- Heart Rate Monitoring by using Pulse SensorIRJET- Heart Rate Monitoring by using Pulse Sensor
IRJET- Heart Rate Monitoring by using Pulse Sensor
 
IRJET- Patient’s Health Parameters Monitoring through IoT
IRJET-  	  Patient’s Health Parameters Monitoring through IoTIRJET-  	  Patient’s Health Parameters Monitoring through IoT
IRJET- Patient’s Health Parameters Monitoring through IoT
 

heartbeatsensor

  • 1. [1] HEART BEAT RATE SENSOR USING MICROCONTROLLER PROJECT REPORT By RINKU MEENA 1201EE30 To the Department of Electrical Engineering INDIAN INSTITUTE OF TECHNOLOGY PATNA MARCH, 2015
  • 2. [2] CERTIFICATE Itis certified that the work contained in the projectreport entitled “Heart Beat Sensor using Microcontroller”, by RinkuMeenahas been carried out under my supervision. Dr. Sudhan Majhi March, 2015
  • 3. [3] ACKNOWLEDGEMENTS I would like to express my gratitude towards all the people who have contributed their precious time and effort to help me in the project. First and foremost, I would thank Almighty God and my parents without whom I would not be what I am today. I would like to thank Asst. Prof. Sudhan Majhi, Department of Electrical Engineering, IIT Patna, and my Project Supervisor for his guidance, support, motivation and encouragement throughout the period this work was carried out. His readiness for consultation at all times, his educative comments, his concern and assistance have been invaluable. Last but not least, I would also extend my sincere thank to Department of electrical engineering IIT Patna for availing the facilities required for my investigational analysis. Rinku Meena 1201EE30
  • 4. [4] ABSTRACT This is an attempt made which describes the design of a simple, low-cost microcontroller based heart rate measuring device with seven segment display output. Heart rate of the subject is measured from the finger by placing the thumb in between the LDR and LED and the rate is then averaged and displayed on a text based Seven segment display. The heart rate can be known at a time other which is very advantageous to anybody. It then processes on real-time the information to determine some heart diseases. Our proposed Heart Rate Measuring (HRM) device is economical and user friendly.
  • 5. [5] CONTENTS Page no 1. Introduction 6 2. Objective 7 3. Working principle 8 4. Circuit diagram 9 5. Applications 11 6. Future aspects 11 7. References 12 8. Appendix 13
  • 6. [6] 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 change in blood volume in a finger artery while the heart is pumping the blood. It consists of an infrared LED that transmits an IR signal through the fingertip 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. 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 display. The microcontroller used in this project is PIC16F628A.
  • 7. [7] OBJECTIVE The objective of this project is to design, build and test a device that measure your heartbeat rate. The device will be based on a non invasive sensor that the detects the variation of the blood flow in your finger due to the heart action.
  • 8. [8] WORKING PRINCIPLE 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 heart beat. 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.
  • 9. [9] CIRCUIT DAIGRAM The 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 operational amplifier IC used in this circuit is MCP602, a dual Op- Amp chip from Microchip. It operates at a single power supply and provides rail-to-rail output swing. The filtering is necessary to block any higher frequency noises present in the signal. The gain of each filter stage is set to 101, giving the total amplification of about 10000. A 1 µF capacitor at the input of each stage is required to block the dc component in the signal. The equations for calculating gain and cut-off frequency of the active low pass filter are shown in the circuit diagram. The two stage amplifier/filter provides sufficient gain to boost the weak signal coming from the photo sensor unit and convert it into a pulse. An LED connected at the output blinks every time a heart beat is detected. The output from the signal conditioner goes to the T0CKI input of PIC16F628A.
  • 10. [10] The control and display part of the circuit is shown below. The display unit comprises of a 3-digit, common anode, seven segment module that is driven using multiplexing technique. The segments a-g are driven through PORTB pins RB0-RB6, respectively. The unit’s, ten’s and hundred’s digits are multiplexed with RA2, RA1, and RA0 port pins. A tact switch input is connected to RB7 pin. This is to start the heart rate measurement. Once the start button is pressed, the microcontroller activates the IR transmission in the sensor unit for 15 sec. During this interval, the number of pulses arriving at the T0CKI input is counted. The actual heart rate would be 4 times the count value, and the resolution of measurement would be 4. You can see the IR transmission is controlled through RA3 pin of PIC16F628A. The microcontroller runs at 4.0 MHz using an external crystal. A regulated +5V & +12V power supply through dc voltage source.
  • 11. [11] APPLICATIONS • Heart rate monitoring in fitness center. • For athletes • In rural areas where medical facilities are limited. FUTURE ASPECTS  Storing the heart rate in a memory.  Connecting with e-mail to send alert messages.  Including other bio-medical signals like breathing rate along with heart rate.
  • 12. [12] REFERENCES  “Design and development of a heart rate measuring device using fingertip”, Hashem, M.M.A. Shams, R. Kader, M.A. Sayed, M.A., International conference on computer and communication engineering, 2010.  “Heart rate measurement from the finger using a low cost microcontroller”, Dogan Ibrahim and Kadri Buruncuk.  Microcontroller Based Heart Rate Monitor using Fingertip Sensors by Sharief F. Babiker, Liena Elrayah Abdel-Khair, SamahM.Elbasheer.  Liang-Hung Wang1, T sung-Y en Chen1, Shuenn-Y uh Lee1, T ai-Hsuan Y ang2 “A wireless electrocardiogram detection for personal health monitoring” 978-1-4673-5936- 8/13$31.00 ©2013 IEEE.
  • 13. [13] APPENDIX Code Used: /* Project: Heartbeat rate through fingertip PIC16F628A at 4.0 MHz external clock, MCLR enabled */ sbit IR_Tx at RA3_bit;//access a bit at RA3 sbit DD0_Set at RA2_bit; sbit DD1_Set at RA1_bit; sbit DD2_Set at RA0_bit; sbit start at RB7_bit; unsigned short j, DD0, DD1, DD2, DD3; unsigned short pulserate, pulsecount; unsigned int i; //-- ------------ Function to Return mask for common anode 7-seg. display unsigned short mask(unsigned short num) { switch (num) { case 0 : return 0xC0; //for display 0 case 1 : return 0xF9; //for display 1 case 2 : return 0xA4; //for display 2
  • 14. [14] case 3 : return 0xB0; //for display 3 case 4 : return 0x99; //for display 4 case 5 : return 0x92; //for display 5 case 6 : return 0x82; //for display 6 case 7 : return 0xF8; //for display 7 case 8 : return 0x80; //for display 8 case 9 : return 0x90; //for display 9 } //case end } void delay_debounce(){ Delay_ms(300); } //define a function delay_bounce void delay_refresh(){ Delay_ms(5); } //define a function dealy_refersh void countpulse(){ IR_Tx = 1; delay_debounce(); delay_debounce(); TMR0=0; //timer on
  • 15. [15] Delay_ms(15000); // Delay 1 Sec IR_Tx = 0; pulsecount = TMR0; // timer off pulserate = pulsecount*4; } //a function for count pluserate void display(){ DD0 = pulserate%10; DD0 = mask(DD0); // first digit DD1 = (pulserate/10)%10; DD1 = mask(DD1); //second digit DD2 = pulserate/100; DD2 = mask(DD2); // third digit for (i = 0; i<=180*j; i++) { DD0_Set = 0; DD1_Set = 1; DD2_Set = 1; PORTB = DD0; //PORTB output at DD0 delay_refresh(); DD0_Set = 1; DD1_Set = 0; DD2_Set = 1;
  • 16. [16] PORTB = DD1; //PORTB output at DD1 delay_refresh(); DD0_Set = 1; DD1_Set = 1; DD2_Set = 0; PORTB = DD2; //PORTB output at DD2 delay_refresh(); } DD2_Set = 1; //DD2 off } void main() { CMCON = 0x07; // Disable Comparators TRISA = 0b00110000; // RA4/T0CKI input, RA5 is I/P only TRISB = 0b10000000; // RB7 input, rest output OPTION_REG = 0b00101000; // Prescaler (1:1), TOCS =1 for counter mode pulserate = 0; j = 1; display(); do { if(!start){