This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AFE4404: how to calculate HRM from afe4404

Part Number: AFE4404

hi all,

i am new in afe4404.

so i dont have any idea how to calculate heart rate from afe4404. 

i have sample example of afe4404 with arduino.

void loop() {

  Serial.print("LED 1 Val = ");

  Serial.print(A.get_led1_val());

  Serial.print("\t LED 2 Val = ");

  //Serial.print(A.get_led2_val());

  data = A.get_led2_val();

    data &= 0x003FFFFF;   // convert it to a 22 bit value

    Serial.print(data);

  Serial.print("\t LED 3 Val = ");

  Serial.print(A.get_led3_val());

  Serial.println();

  delay(10);

}

this is my code.

so plz help me how can i calculate hrm from afe4404

regards,

Nitin Kanani