Member #535671

Member Since: March 25, 2014

Country: United States

  • IBI and BPM flip flopped in "PulseSensorAmped_Arduino_1dot2.ino" (from "Pulse Sensor Amped 1.2" project) and "SerialEvent" (in "P_PulseSensor_06" Processing project), downloaded from PulseSensor.com.

    The following is in "SerialEvent" Process project : ...

    if (inData.charAt(0) == 'B'){ // following strint is time between beats in miliseconds ... if (inData.charAt(0) == 'Q'){ // following string contains current heart rate ...

    and the following is from "PulseSensorAmped_Arduino_1dot2.ino" : ...

    sendDataToProcessing('B', BPM); // send heart rate with a 'B' prefix sendDataToProcessing('Q', IBI); // send time between beats with a 'Q' prefix ...

    You'll notice the ".ino" file sends a prefix of 'B' with BPM and 'Q' with IBI and the "SerialEvent" is expecting a prefix of 'Q' with BPM and 'B' with IBI.

    Not sure if Sparkfun's libraries have the same error, but it's worth a look just in case. Change your code accordingly. (Sorry about the formatting.)

No public wish lists :(