sparkfun / AD8232_Heart_Rate_Monitor

AD8232 Heart Rate Monitor
Other
178 stars 190 forks source link

Calculating BPM #10

Closed beingmachine closed 6 years ago

beingmachine commented 7 years ago

Hello, I have https://www.sparkfun.com/products/12650 AD8232 board, from which i can use to plot heart rate PQRST data, however i can't see code for calculating BPM from the peak like the pulse sensor code do.

How can i calculate BPM with this board

I am getting this output at my Serial Plotter in Arduino..

screen shot 2017-08-20 at 8 39 11 pm

Please help

Thank you

jawhra commented 6 years ago

Hello, please I am a student and I am working on the same project could you help me to get the same output , I really need the correct code . Thanks ,I appreciate your help .

beingmachine commented 6 years ago

Hello Jawhra, Can you post your code.? and what you want to achieve ,Of course i will help you with this.

Grahldg commented 6 years ago

BPM calculation example has been added to the Processing sketch here.

guilhermec-costa commented 3 years ago

@Grahldg Do you if this code of the Programming that you sent is compatible with this code:

`void setup() { // initialize the serial communication: Serial.begin(9600); pinMode(10, INPUT); // Setup for leads off detection LO + pinMode(11, INPUT); // Setup for leads off detection LO -

}

void loop() {

if((digitalRead(10) == 1)||(digitalRead(11) == 1)){ Serial.println('!'); } else{ // send the value of analog input 0: Serial.println(analogRead(A1)); } //Wait for a bit to keep serial data from saturating delay(10); }`

guilhermec-costa commented 3 years ago

I'm doing a project with the sensor AD8232 and I want to see the BMP, but this kind of sensor doesn't do it. Do you know if there is a way to do it?