Heart rate, temperature and blood pressure human are very important parameters of the human body. Doctors use various medical devices like thermometer to check body temperature, blood pressure monitor BP and EKG to check for heartbeat monitoring.
In this project, I built a heart rate monitoring system, using Arduino, that counts heartbeats in a minute. The system starts measure the heartbeat once the finger is placed on the sensor.
Working of this project is quite easy but a little calculation for calculating heart rate is required. There are several methods for calculating heart rate, but here we have read only ten pulses. Then we have calculated total heart beat in a minute by applying the below formula:
IBI = sampleCounter - lastBeatTime; runningTotal /= 10; BPM = 60000/runningTotal (runningTotal the last pulse)
When first pulse comes, I start counter by using timer counter function in Arduino that is
;. And take first pulse counter value form
);. Then we wait for ten pulses. After getting ten pulses we again take counter value in time2 and then we substract time1 from time2 to take original time taken by five pulses. And then divide this time by 10 times for getting single pulse time. Now we have time for single pulse and we can easily find the pulse in one minute, deviding 600000 ms(60s) by single pulse time.
I used a serial port to transmit the signal pulse in computers to draw electrocardiogram using the Processing language which is built on the Java programming language. With it you can create a user interface easily.