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.
Photoplethysmography is the process of optically estimating the volumetric measurement of an
organ. Pulse oximetry, cardiovascular monitoring, respiration detection, heart rate monitoring etc
are few common applications of photoplethysmography. Let us have a look at the application of
photoplethysmography in heart rate monitoring from the figer tip. When the heart expands (diastole)
the volume of blood inside the finger tip increases and when the heart contrcats (systole) the volume
of blood inside the finger tip decreases. The resultant pulsing of blood volume inside the finger tip
is directly proportional to the heart rate and if you could some how count the number of pulses in
one minute, thats the heart rate in beats per minute (bpm). For this an IR transmitter/receiver
pair placed in close contact with the finger tip. When the heart beats, the volume of blood cells
under the sensor increases and this reflects more IR waves to sensor and when there is no beat the
intensity of the reflected beam decreases. The pulsating reflection is converted to a suitable current
or voltage pulse by the sensor. The sensor output is processed by suitable electronic circuits to
obtain a visible indication (digital display or graph).
Heart rate monitor using 8051.
Circuit diagram.
When more light falls on the photo transistor it conducts more, its collector current increases and so
its collector voltage decreases. When less light falls on the photo transistor it conducts less, its
collector current decreases and so its collector voltage decreases. This variation in the collector
voltage will be proportional to the heart rate. Any way this voltage variation is so feeble and additional
signal conditioning stages are necessary to convert it into a microcontroller recognizable form.
The next part of the circuit consists of a two active low pass filters using opamp LM324. The LM324
is a quad opamp that can be operated from a single rail supply. Resistor R23, R17 and capacitor
C5 sets the gain and cut off frequency of the first filter. With the given component values, gain will
be 11 and cut off frequency will be 2.5Hz. The gain and cut off frequency are determined using the
following equations. Capacitor C15 is used to by-pass noise if any may cause false triggering of the
comparator.
The second low pass filter also have same gain and cut off frequency. The two low pass filters form
a very critical part of the circuit as any noise or false signals passing to the microcontroller stage will
produce disastrous results. The output of the filter stage will be a voltage level fluctuating between
0 and 0.35 volts and this fluctuation is converted into a 0 to 5V swing using the comparator based
on the third opamp (IC1c). The reference voltage of the comparator is set to 0.3V. When ever the
output voltage of the filter stage goes above 0.3V, the output of the comparator goes to zero and
whenever the output voltage of the filter stage goes below 0.3V, the output of the comparator goes
to positive saturation. The result will be a neat pulse fluctuating between 0 and 5V at a rate equal to
the heart rate. This pulse is fed to the microcontroller for counting
is article is about a simple heart rate monitor using 8051 microcontroller. Like the previous 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 sensi).
When more light falls on the photo transistor it conducts more, its collector current increases and so
its collector voltage decreases. When less light falls on the photo transistor it conducts less, its
collector current decreases and so its collector voltage decreases. This variation in the collector
voltage will be proportional to the heart rate. Any way this voltage variation is so feeble and additional
signal conditioning stages are necessary to convert it into a microcontroller recognizable form.
The next part of the circuit consists of a two active low pass filters using opamp LM324. The LM324
is a quad opamp that can be operated from a single rail supply. Resistor R23, R17 and capacitor
C5 sets the gain and cut off frequency of the first filter. With the given component values, gain will
be 11 and cut off frequency will be 2.5Hz. The gain and cut off frequency are determined using the
following equations. Capacitor C15 is used to by-pass noise if any may cause false triggering of the
comparator.
The second low pass filter also have same gain and cut off frequency. The two low pass filters form
a very critical part of the circuit as any noise or false signals passing to the microcontroller stage will
produce disastrous results. The output of the filter stage will be a voltage level fluctuating between
0 and 0.35 volts and this fluctuation is converted into a 0 to 5V swing using the comparator based
on the third opamp (IC1c). The reference voltage of the comparator is set to 0.3V. When ever the
output voltage of the filter stage goes above 0.3V, the output of the comparator goes to zero and
whenever the output voltage of the filter stage goes below 0.3V, the output of the comparator goes
to positive saturation. The result will be a neat pulse fluctuating between 0 and 5V at a rate equal to
the heart rate. This pulse is fed to the microcontroller for counting.
Program.
MOV TMOD,#01100001B // Sets Timer1 as Mode2 counter & Timer0 as Mode1 timer
DJNZ R6,BACK
ACALL DELAY
ACALL DELAY
MOV A,B
MOV B,#10D
MOV P0,A
ACALL DELAY
ACALL DELAY
ACALL DELAY
CLR P1.2
MOV P0,#11111111B
RET
RET
DISPLAY: MOVC A,@A+DPTR // gets 7seg digit drive pattern for current value in A
CPL A
RET
DB 06H
DB 5BH
DB 4FH
DB 66H
DB 6DH
DB 7DH
DB 07H
DB 7FH
DB 6FH
END
When power is switched ON, the indicator LED D4 will glow an continues in that state. Now place
your finger tip over the sensor and adjust preset R14 so that the LED D4 starts blinking. After you
got the LED blinking, reset the power and wait for 15 seconds. The display will show your heart
rate in beats per minute.
Program.
RS EQU P2.7
RW EQU P2.6
EN EQU P2.5
ORG 000H
ACALL INIT
ACALL TEXT1
ACALL LINE2
ACALL TEXT3
MOV DPTR,#LUT
MOV P1,#00000000B
MOV P0,#00000000B
SETB P3.5
MOV TMOD,#01100001B
MOV TL1,#00000000B
MOV TH1,#00000000B
SETB TR1
MOV TL0,#00000000B
SETB TR0
CLR TR0
CLR TF0
DJNZ R6,BACK
CLR TR1
CLR TF0
CLR TF1
MOV A,TL1
MOV B,#4D
MUL AB
ACALL SPLIT
ACALL INIT
ACALL TEXT1
ACALL LINE2
ACALL TEXT2
ACALL BPM
SJMP MAIN
INIT:
ACALL CMD
MOV A,#0FH
ACALL CMD
MOV A,#01H
ACALL CMD
MOV A,#06H
ACALL CMD
MOV A,#83H
ACALL CMD
MOV A,#3CH
ACALL CMD
RET
TEXT1:
MOV A,#48H
ACALL DISPLAY
MOV A,#65H
ACALL DISPLAY
MOV A,#61H
ACALL DISPLAY
MOV A,#72H
ACALL DISPLAY
MOV A,#74H
ACALL DISPLAY
MOV A,#20H
ACALL DISPLAY
MOV A,#52H
ACALL DISPLAY
MOV A,#61H
ACALL DISPLAY
MOV A,#74H
ACALL DISPLAY
MOV A,#65H
ACALL DISPLAY
RET
LINE2:
MOV A,#0C0H
ACALL CMD
RET
TEXT2:
MOV A,#62H
ACALL DISPLAY
MOV A,#70H
ACALL DISPLAY
MOV A,#6DH
ACALL DISPLAY
MOV A,#20H
ACALL DISPLAY
RET
TEXT3:
MOV A,#63H
ACALL DISPLAY
MOV A,#6FH
ACALL DISPLAY
MOV A,#75H
ACALL DISPLAY
MOV A,#6EH
ACALL DISPLAY
MOV A,#74H
ACALL DISPLAY
MOV A,#69H
ACALL DISPLAY
MOV A,#6EH
ACALL DISPLAY
MOV A,#67H
ACALL DISPLAY
MOV A,#2EH
ACALL DISPLAY
MOV A,#2EH
ACALL DISPLAY
MOV A,#2EH
ACALL DISPLAY
RET
BPM:
MOV A,R1
ACALL ASCII
ACALL DISPLAY
MOV A,R2
ACALL ASCII
ACALL DISPLAY
MOV A,R3
ACALL ASCII
ACALL DISPLAY
RET
CLR RS
CLR RW
SETB EN
CLR EN
ACALL DELAY
RET
DISPLAY:MOV P0,A
SETB RS
CLR RW
SETB EN
CLR EN
ACALL DELAY
RET
DELAY: CLR EN
CLR RS
SETB RW
MOV P0,#0FFh
SETB EN
MOV A,P0
JB ACC.7,DELAY
CLR EN
CLR RW
RET
DELAY1:MOV R5,#255D
HERE2:DJNZ R5,HERE2
RET
DIV AB
MOV R3,B
MOV B,#10D
DIV AB
MOV R2,B
MOV R1,A
RET
RET
LUT: DB 48D
DB 49D
DB 50D
DB 51D
DB 52D
DB 53D
DB 54D
DB 55D
DB 56D
DB 57D
END
CONCLUSION
Heart beat rate is measured using IR reflection method through the
fingertip