Comments (14)
@webster1501 Are you using the example code that we provide without modification? This is the Pulse Sensor + C example, correct?
It'e been a while since I've had my rig set up, but I can attempt to replicate your results.
I do believe that I made the original work using the Pi 3b. I have that and 4 here in my lab.
We have been using the uAlarm, which at the time of making was not recommended for future designs.
It looks like the sampleIntervalMs is too long a time. 27 milliSeconds is not the target sample timing.
Also, please edit your initial post to reduce the amount of data you are listing in the table for readability of this issue. Thanks!
from pulsesensorstarterproject.
Hi,
thanks for the quick reply.
- I reduced the the table size of my initial post.
- I'm using the code which you provided her on GitHub:
https://github.com/WorldFamousElectronics/Raspberry_Pi/tree/master/PulseSensor_Processing_Pi/PulseSensor_Processing_Pi
I'm curious to hear if you can replicate my observation, and what redesign suggestions you may have. I have also a PI 4 in my fundus, if you think it makes sense to use this instead of my 3b?
Best
Thomas
from pulsesensorstarterproject.
Oh, you're using the Processing Sketch.
Well, that is likely not super accurate in the first place, but you may have some luck in improving by adding P2D
to your size() funcion size(<width>,<height>,P2D);
In a nutshell, the accurate BPM relies on accurate sample timing. Because the Processing Sketch is running on top of the RasPi OS, there is no telling when the sketch goes through each loop and hence, when the sample is taken from the Pulse Sensor. In this case, we're trying to fix that by using the frameRate variable that should be giving us some tighter timing of when the sample is taken. It may be better to use the millis()
function? Don't know, haven't tested it.
Is there anything else running on your Pi? I kind of remember that I had to close all other applications.
Also, try using the C example in the repo and see if you get better results.
from pulsesensorstarterproject.
Hi Joel,
I tried it with the C example, with the same results.
I just ordered an Arduino to see the differences between it and RasPi.
I'll post my findings here as soon as I have them.
from pulsesensorstarterproject.
Interesting.
Please do add to this issue with any new findings.
I will also post if I can replicate your results.
from pulsesensorstarterproject.
Hi Joel,
me again.
I did the Pulse Sensor + Arduino + Pi setup after I received my Arduino Uno, worked like a charm immediately.
Unfortunately - for me - with the same result.
This is the output I got:
16:16:46.134 -> 230,260,387
16:16:46.134 -> 230,260,377
16:16:46.168 -> 230,260,623
16:16:46.201 -> 230,260,623
16:16:46.201 -> 230,260,623
16:16:46.234 -> 230,260,626
16:16:46.267 -> 230,260,768
16:16:46.267 -> 230,260,774
16:16:46.300 -> 230,260,775
16:16:46.300 -> 230,260,833
16:16:46.333 -> 230,260,829
16:16:46.366 -> 230,260,822
16:16:46.366 -> 230,260,816
16:16:46.407 -> 230,260,936
Don't know exactly what columns represents what value, bit I assume the 1st column (230) is the BPM.
When I watch the LED though I realize that it is blinking with an estimated frequency of 1,2 HZ which would mean a realistic BPM of around 70-90 BPM ?
Strange, isn't it ?
Best
Thomas
from pulsesensorstarterproject.
Hi Thomas,
Yes it is quite strange indeed!
AT this point, for the sake of due diligence, can you share a screenshot of the pulse wave you are getting?
Also, a pic of your hardware setup, including your Pulse Sensor.
I'm in the weeds today, but I can get setup to try and replicate your problem within a week.
from pulsesensorstarterproject.
Hi Joel,
first of all - no hurry!
For me this is just something I want to demonstrate in my company and the schedule is end of May.
Below the requested images:
Enjoy the weekend!
Best
Thomas
from pulsesensorstarterproject.
Hi Thomas,
Thanks for the pictures!
The first thing that I have to say is that you have unfortunately purchased a clone of our Pulse Sensor.
Our Pulse Sensor has Red, Black, and Purple wires, and the three holes on the edge are not plated like yours are.
Sorry to say that I won't be able to help you troubleshoot if the problem lies in the sensor functionality as I have no idea what that board is made with.
Please support the original makers of Open Source Hardware by purchasing legit parts.
You can get the Pulse Sensor on our website www.pulsesensor.com
Also on Adafruit, SparkFun, Mouser, and Digikey.
from pulsesensorstarterproject.
This makes sense to me, and I wasn't aware of that I purchased a clone of the original one. Wasn't on purpose.
I will definitely support the original makers, and will order some immediately.
Thank you so much so far for your support, I'll keep you posted once the original ones have arrived!
Best
Thomas
from pulsesensorstarterproject.
Thanks Thomas!
Please let me know where you got the clone?
We also sell on Amazon.
from pulsesensorstarterproject.
Just ordered the one from your company, and I'm a bit scared that clones are underway.
This is the one I ordered:
https://www.amazon.de/MissBirdler-Kardiometer-Heartbeat-Herzschlag-Prototyping/dp/B01MSLQQK9/ref=sr_1_1?dchild=1&keywords=missbirdler+pulse+sensor&qid=1619796609&sr=8-1
from pulsesensorstarterproject.
Clones have been among us for a long time.
We are unfortunately not represented in Amazon EU.
from pulsesensorstarterproject.
That's why I apparently didn't find the original one...
from pulsesensorstarterproject.
Related Issues (17)
- I already have a version of this patented HOT 6
- Library not working for Arduino Uno WiFi Rev2. HOT 8
- Incompatibility with SSD1306 Libraries HOT 1
- RF24 Library with Arduino Uno WiFi R2 HOT 4
- Why it says 600 bpm is ir because the sensor is amped? HOT 1
- The body of the message says all, this code is not compatible with LOLIN(WEMOS)D1 mini pro HOT 2
- Arduino nano rp2040 connect troubleshooting HOT 2
- safety HOT 1
- Can I run on Arduino 101? HOT 5
- Data interpretation HOT 1
- I somehow can't get any good data HOT 9
- I have a WEMOS D1R1 that runs on 12 Mhz clock oscillator HOT 3
- MKRZERO not compiling HOT 3
- STOP PulseSensor HOT 1
- Can arduino nano be used? Sketch size too high. HOT 1
- Pulse Sensor giving unexpected readings based on examples HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulsesensorstarterproject.