ZTiK.nl
Well-known member
I connected a Sparkfun Pulse Sensor (amplified) to my Teensy 3.0.
For those who want to use it, but want to know if it works first:
It does now, with some minor modifications to the ISR calls.

To make it work I included loglow's IntervalTimer library, many thanks once again!
The only files changed are the 2 files in the PulseSensorAmped_Arduino_1dot1.zip files.
I did not remove anything, just commented out things and added replacements, so you can see what has been changed easily
The example code now makes use of "IntervalTimer timer0;" and "uint32_t timerCounter0"
Change these in case you are already using these values
View attachment PulseSensorAmped_Arduino_1dot1.zip
View attachment PulseSensorAmpd_Processing_1dot1.zip
(The processing sketch is an unmodified duplicate of the Sparkfun sketch)
One last thing to mention, I noticed that the 2ms interval wasn't getting accurate readings so I lowered this to get a reading every 1ms.
Change the line:
to restore/modify this interval period.
For those who want to use it, but want to know if it works first:
It does now, with some minor modifications to the ISR calls.

To make it work I included loglow's IntervalTimer library, many thanks once again!
The only files changed are the 2 files in the PulseSensorAmped_Arduino_1dot1.zip files.
I did not remove anything, just commented out things and added replacements, so you can see what has been changed easily
The example code now makes use of "IntervalTimer timer0;" and "uint32_t timerCounter0"
Change these in case you are already using these values
View attachment PulseSensorAmped_Arduino_1dot1.zip
View attachment PulseSensorAmpd_Processing_1dot1.zip
(The processing sketch is an unmodified duplicate of the Sparkfun sketch)
One last thing to mention, I noticed that the 2ms interval wasn't getting accurate readings so I lowered this to get a reading every 1ms.
Change the line:
Code:
timer0.begin(timerCallback0, 1000); // 2 ms