BPM caliculation from ecg data

Thread Starter

narayanam moukthik

Joined Apr 24, 2016
I am working on my final year project . Project is about a wearable medical alert system , this system measures acquires the ecg data from ads1292r shield and we need to calculate the bpm and if there is any abnormalities in the heart beat we need to call for help using an gsm module . As first stage we are trying to calculate bpm and print it on serial monitor , when we tried it we are getting garbage values on the serial monitor . so need help to resolve this issue . following is the code



Joined Sep 17, 2013
Is bpm being defined as a float and as an int?
These two lines seem inconsistent to me (but I'm no programmer):
float bpm = 0;
int average_BPM( int bpm)