Giter Site home page Giter Site logo

Comments (8)

awatterson22 avatar awatterson22 commented on June 4, 2024

This is what I get when I try to run PulseSensor_BPM_Alternative

In file included from /Users/abbywatterson/Documents/Arduino/libraries/PulseSensor_Playground/src/PulseSensorPlayground.h:439,
from /Users/abbywatterson/Documents/Arduino/libraries/PulseSensor_Playground/examples/PulseSensor_BPM_Alternative/PulseSensor_BPM_Alternative.ino:41:
/Users/abbywatterson/Documents/Arduino/libraries/PulseSensor_Playground/src/utility/Interrupts.h: In function 'boolean PulseSensorPlaygroundDisableInterrupt()':
/Users/abbywatterson/Documents/Arduino/libraries/PulseSensor_Playground/src/utility/Interrupts.h:276:1: error: no return statement in function returning non-void [-Werror=return-type]
276 | }
| ^
In file included from /Users/abbywatterson/Documents/Arduino/libraries/PulseSensor_Playground/src/PulseSensorPlayground.h:439,
from /Users/abbywatterson/Documents/Arduino/libraries/PulseSensor_Playground/examples/PulseSensor_BPM_Alternative/PulseSensor_BPM_Alternative.ino:41:
/Users/abbywatterson/Documents/Arduino/libraries/PulseSensor_Playground/src/utility/Interrupts.h: In function 'boolean PulseSensorPlaygroundEnableInterrupt()':
/Users/abbywatterson/Documents/Arduino/libraries/PulseSensor_Playground/src/utility/Interrupts.h:321:1: error: no return statement in function returning non-void [-Werror=return-type]
321 | }
| ^
cc1plus: some warnings being treated as errors
exit status 1
Error compiling for board Adafruit Feather M0 (SAMD21).

from pulsesensorplayground.

biomurph avatar biomurph commented on June 4, 2024

@awatterson22
It looks from your the error that you post that the library has a bug in it.
I will dig into this and fix it. Should be short fix.

from pulsesensorplayground.

biomurph avatar biomurph commented on June 4, 2024

@awatterson22
Please update your PulseSensor Playground library in Arduino.
The latest version is v1.5.2
It might not show up in the Arduino IDE drop down libraries tool. If you don't see it, please download the ZIP of this repo and install it into your Arduino/libraries folder.

Let us know if you have any further issues, or if this fixes your problem.
I was unable to replicate your issue on my end.

from pulsesensorplayground.

awatterson22 avatar awatterson22 commented on June 4, 2024

Hi! So I tried to download the zip and re-upload the library but I am still getting the same error. I looked through the utility functions and it doesn't look like there is a SAMD board, just AVR.

from pulsesensorplayground.

biomurph avatar biomurph commented on June 4, 2024

Oh, it may have to do with the example you're using.
The Feather M0 with the WiFi does not currently support hardware interrupts.
Please use the example PulseSensor_BPM_Alternative.ino instead.

from pulsesensorplayground.

awatterson22 avatar awatterson22 commented on June 4, 2024

Ah okay, will do - I just have one other question. For the PulseSensor_BPM_Alternative.ino, is the first number BPM and the second IBI? What is the third number?

from pulsesensorplayground.

biomurph avatar biomurph commented on June 4, 2024

The library prints out the values of the BPM, the IBI, and also the raw sensor value. That's the third number.
You can visualize them all with the Arduino Serial Plotter.

from pulsesensorplayground.

biomurph avatar biomurph commented on June 4, 2024

PulseSenor Playground Library supports SAMD based boards

from pulsesensorplayground.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.