Description:
Finger heartbeat measurement module
arduino test code:
INT led Pin=13;
INT sensor Pin=0;
Double alpha=0.75;
INT period=20;
Double change=0.0;
Void setup {Pin Mode (led Pin, OUTPUT)}
void loop
Static double old Change=0;
INT raw Value=analog Read (sensor Pin);
Double value=alpha*old Value+(1-alpha)*raw Value;
Change=value-old Value;
Digital Write (led Pin,(change0.0));
Old Value=value;
Old Change=change;
Delay (period);
Package Included:
5 * Finger Measuring Heartbeat Sensor Module