Closed Tvde1 closed 6 years ago
Try running the BPM_Alternative example sketch from the Playground. I'm pretty sure you need to run the sawNewSample() function in order to get the sawStartOfBeat() to work right.
I just put it in there in the loop?
First, use the example BPM_Alternative code, and then work from that if you need to make any adjustments.
Here is my (short) sketch:
This will never output anything while previously using
pulseSensor.outputSample();
would output valid bpm and a nice heartbeat to the graph.I tested this with the serial monitor on an ESP8266.