BPM caliculation from ecg data

Discussion in 'The Projects Forum' started by narayanam moukthik, Apr 24, 2016.

  1. narayanam moukthik

    Thread Starter New Member

    Apr 24, 2016
    2
    0
    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
     
  2. Alec_t

    AAC Fanatic!

    Sep 17, 2013
    5,779
    1,103
    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)
     
  3. narayanam moukthik

    Thread Starter New Member

    Apr 24, 2016
    2
    0
    its not float
    its int bpm only
     
Loading...