Teensy 3.1 Pulse sensor port

Status
Not open for further replies.

fhynd

New member
I am currently trying to get the SparkFun Pulse sensor module to work with a teensy 3.1.

I am currently just trying to get the demo code working to use as a basis for further development,

The problem I am having is although the code compiles and load onto the board when run the sketch does not appear to be reading from the analogue input, with an value of 0 being output for raw sensor output over the serial port.

When i run the analogue example sketch for the same pin the raw sensor data is reported correctly.

Source code attached,

(edit) - used analogue read to probe input pin directly - sensor value is displayed correctly, but var signal is still staying 0 .

any help greatly appreciated.

Fraser
 

Attachments

  • Interrupt.ino
    5.7 KB · Views: 75
  • IntervalTimer.h
    1.9 KB · Views: 102
  • PulseSensorAmped_Ard.ino
    4.4 KB · Views: 85
Last edited:
Status
Not open for further replies.
Back
Top