The pulse sensor module has a method .begin(), which starts the pulse sensor. If the flag #define USE_ARDUINO_INTERRUPTS true is left at default or false, the sensor returns the following error when compiling:
%Appdata%\Arduino\libraries\PulseSensor_Playground\src/PulseSensorPlayground.cpp:56: undefined reference to `PulseSensorPlayground::UsingInterrupts'
%Appdata%\Arduino\libraries\PulseSensor_Playground\src/PulseSensorPlayground.cpp:57: undefined reference to `PulseSensorPlaygroundSetupInterrupt()'
collect2.exe: error: ld returned 1 exit status
exit status 1
As such, the use of interrupts is required.
However, in doing so, the temperature reading is always 0.00. While I am unfamiliar with C++, I suspect the heartrate monitor takes over the cpu, or something similar. Im not used to such low level control.
Replicate:
Delete line 3 to replicate the error
Delete lines 3 and 28 to allow temperature sensor data
Potential Fix
I believe that pausing the heartrate monitor with the .pause() method may allow a fix. Implementation is on the pause fix branch. However, I am unable to test the implementation at this time.
Describe your Issues:
The project includes the following modules/sensors:
The pulse sensor module has a method
.begin()
, which starts the pulse sensor. If the flag#define USE_ARDUINO_INTERRUPTS true
is left at default or false, the sensor returns the following error when compiling:As such, the use of interrupts is required.
However, in doing so, the temperature reading is always
0.00
. While I am unfamiliar with C++, I suspect the heartrate monitor takes over the cpu, or something similar. Im not used to such low level control.Replicate:
Potential Fix
I believe that pausing the heartrate monitor with the
.pause()
method may allow a fix. Implementation is on the pause fix branch. However, I am unable to test the implementation at this time.