Page 4
Disclaimer For physical injuries and possessions loss caused by those reasons which are not related to product quality, such as operating without following manual guide, natural disasters or force majeure, we take no responsibility for that. Under the supervision of Seeed Technology Inc., this manual has been compiled and published which covered the latest product description and specification.
1. Introduction The Heart Rate Ear clip kit contains a ear clip and a receiver module. The heart rate measure kit can be used to monitor heart rate of patient and athlete. The result can be displayed on a screen via the serial port and can be saved for analysis.
// Arduino IDE: Arduino-1.0 // Author: FrankieChu // Date: Jan 22, 2013 // Version: v1.0 // by www.seeedstudio.com #define LED 4//indicator, Grove - LED is connected with D4 of Arduino boolean led_state LOW;//state of LED, each time an external interrupt...
Page 10
//will change the state of LED unsigned char counter; unsigned long temp[21]; unsigned long sub; bool data_effect=true; unsigned int heart_rate;//the measurement result of heart rate const int max_heartpluse_duty 2000;//you can change it follow your system's request. //2000 meams 2 seconds. System return error //if the duty overtrip 2 second.
Page 11
switch(counter) case sub=temp[counter]-temp[20]; Serial.println(sub); break; default: sub=temp[counter]-temp[counter-1]; Serial.println(sub); break; if(sub>max_heartpluse_duty)//set 2 seconds as max heart pluse duty data_effect=0;//sign bit counter=0; Serial.println("Heart rate measure error,test will restart!" arrayInit(); (counter==20&&data_effect) counter=0; sum(); else if(counter!=20&&data_effect) counter++; else counter=0; data_effect=1; /*Function: Initialization for the array(temp)*/ void arrayInit() for(unsigned char...
Page 12
Make sure the sensor contacts your ear skin. This is the signal when we are measuring the heart rate: In the left of the figures which is a waveform diagram of the detected heartbeat, A high pulse comes when beating. Note: If the serial monitor return an error message, please change the position of the sensor.
Need help?
Do you have a question about the Grove 101020033 and is the answer not in the manual?
Questions and answers