Giter Site home page Giter Site logo

Comments (7)

joelSensor avatar joelSensor commented on May 22, 2024

There is a way to just get BPM number.
Please check out the PulseSensor Playground Tools
https://github.com/WorldFamousElectronics/PulseSensorPlayground/blob/master/resources/PulseSenaor%20Playground%20Tools.md

a call to getBeatsPerMinute() will return the latest BPM value (int). You can simply comment out the call to pulseSensor.outputBeat() and just do you own thing instead.

from pulsesensorplayground.

yury-g avatar yury-g commented on May 22, 2024

SparkMike77,
I drafted some code here for you. It's not pretty, but it does the behavior you requested.
Try this code in a new Sketch, or just run it as an ".ino" file in Arduino.
https://github.com/yury-g/ReadMePlayground/blob/master/PulseSensor_BPM_Serial_Print.ino

This is a screengrab of it working correctly:
Let me know if it helps!
pulsesensor_bpm_code_screengrab

from pulsesensorplayground.

yury-g avatar yury-g commented on May 22, 2024

Mike,
Try the sketch at this link. It is BPM and BPM-only via our new Library. ; )

https://github.com/WorldFamousElectronics/PulseSensorPlayground/blob/master/examples/Getting_BPM_to_Monitor/Getting_BPM_to_Monitor

from pulsesensorplayground.

SparkMike77 avatar SparkMike77 commented on May 22, 2024

Thanks Guys, I had completely forgotten to check back and was hammering on my own library (really poorly). This looks exactly like what I need!

from pulsesensorplayground.

haarers avatar haarers commented on May 22, 2024

Is there somewhere that I can see the code for the function

getBeatsPerMinute()

Thanks!

from pulsesensorplayground.

biomurph avatar biomurph commented on May 22, 2024

The actual function is pretty simple, and it's on line 87 here
https://github.com/WorldFamousElectronics/PulseSensorPlayground/blob/master/src/utility/PulseSensor.cpp

The function that determines BPM is called processLatestSample, on line 122 of the same file.

from pulsesensorplayground.

haarers avatar haarers commented on May 22, 2024

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.