WorldFamousElectronics / PulseSensorPlayground

A PulseSensor library (for Arduino) that collects our most popular projects in one place.
https://PulseSensor.com
MIT License
200 stars 97 forks source link

Understanding output values #89

Closed shadrak98 closed 5 years ago

shadrak98 commented 5 years ago

on line 153 in examples/PulseSensor_BPM_alternative my serial monitar is printing 3 values separated by comma which among them is original heartbeat value

biomurph commented 5 years ago

@shadrak98 The output to serial monitor is in order BPM, IBI, Signal With a carriage return at the end. This is digestible by the Arduino Serial Plotter, and you can see in that window when it's running the color of the data plots is in order at the top right.

If you just want one or more of the values, check out the PulseSensor Playground Toolbox

You call these functions and get the values returned from them

getLatestSample()

Returns the most recently read analog value from the Pulse Sensor. Type = int.


getBeatsPerMinute()

Returns the latest beats-per-minute. Type = int.


getInterBeatIntervalMs()

Returns the latest inter-beat interval (IBI) in milliseconds. Type = int.