Giter Site home page Giter Site logo

Comments (3)

biomurph avatar biomurph commented on June 4, 2024

@Abdelrahman-Kh-Fouad
Our library has two options to use hardware timer interrupts or to use software interrupts.
Which example code are you using?
I am going to try and replicate your problem in my lab and get back to you on this thread.

from pulsesensorplayground.

AbdelrahmanKhaledd avatar AbdelrahmanKhaledd commented on June 4, 2024

@biomurph i tried to use software interrupts, but the problem on including i think.

from pulsesensorplayground.

biomurph avatar biomurph commented on June 4, 2024

@Abdelrahman-Kh-Fouad
I don't have a Node MCU 0.9 board here in my lab, but I was able to test by compiling.
I have the latest ES8266 Boards v3.0.2 in my Boards Manager, and it lists the Node MCU 0.9 as an option.
When I select it and compile, I get the following results

Example PulseSensor_BPM.ino
#define USE_ARDUINO_INTERRUPTS true

With this sketch and #define setting, I get the 'return false' error.

Example PulseSensor_BPM_Alternative.ino
#define USE_ARDUINO_INTERRUPTS false

With this example, I get a clean compile. Please try using PulseSensor_BPM_Alternative.ino sketch and don't change anything in the example.

We use a hardware timer to get the most accurate sample rate. For some platforms, we don't support Timer Interrupts, so for those you need to use our "Alternative" Sketch examples to get started.

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.