WorldFamousElectronics / PulseSensorPlayground

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

GETTING STARTED WORKING BUT NOT GETTING BPM TO MONITOR #154

Closed finntuberlin closed 1 year ago

finntuberlin commented 2 years ago

Hello All,

When I run the getting started example sketch I can see a pulse signal in my serial plotter, which tells me my sensor is working, however, when I open the getting_bpm_to_monitor sketch, all I see is random inconsistent values that only show up if I lift my finger up and down quickly, otherwise if a keep my finger on the sensor no values are shown. I am using the goldilocks amount of pressure. I have also played around with the threshold value to no avail. The code hasn't been changed at all from the example, other than playing with the threshold value, but I have kept the threshold value within the recommended window.

Using Arduino DUO, all ports are connected as shown in tutorial, as I said plotter is working in getting started, but not in get bpm.

Thank you

biomurph commented 2 years ago

@finntuberlin The problem you are having is straightforward. The Serial Plotter in Arduino is expecting to receive some number, or a series of numbers, separated by a comma or a space or a tab, and terminating in a carriage return. The Getting_BPM_to_Monitor.ino sketch is not doing that. If you look into the loop function, that sketch is sending human readable text that is not formatted to the Serial Plotter. The Serial Plotter is doing it's best to try and interpret the data, and that's why you're seeing all the crazy nonsense.

Instead, open up the Serial Monitor, and you will see what the sketch is sending.

finntuberlin commented 2 years ago

Hi Joel Thanks for the quick response,

I didn't express my question clearly enough. I am in fact looking at my serial monitor but all I am getting is the following

The one reading you are seeing there is the random values I get that only show up if I move my finger up and down. otherwise nothing happens

Screen Shot 2022-07-12 at 4 06 57 PM
biomurph commented 2 years ago

@finntuberlin Ah, OK. I think we need more information to chase down this issue.

finntuberlin commented 2 years ago

Yes I mean Arduino UNO sorry about the mixup.

Not sure with Arduino_BPM if you meant a screen shot of the Getting_BPM_to_Monitor sketch (1st photo) or the Pulsesensor_BPM sketch (2nd photo) but here are screenshots from the Serial Plotter from both. Also attached is a photo of my setup.

Screen Shot 2022-07-12 at 4 25 51 PM Screen Shot 2022-07-12 at 4 21 40 PM

IMG_1178

biomurph commented 2 years ago

@finntuberlin I see the problem. The sensor you are using is not our Pulse Sensor. It's clear from the picture of the hardware. Also note in this guide at the bottom there is a screen shot of the Serial Plotter. You should be seeing a very big pulse signal. The one you show is very small. I cannot troubleshoot hardware that I have not a clue what is on there.

Please support the original makers of Pulse Sensor by purchasing the legit product. Our Pulse Sensor is available on our website, pulsesensor.com, as well as Adafruit Sparkfun Digikey Mouser

Also, in some regions of the world, you can find Pulse Sensor available in brick and mortar stores, as Adafruit and Sparkfun bundle products for distribution to resellers.