Code on RPi Pico
ebolisa opened this issue · 8 comments
Hi ebolisa!
First of all, let me know which is your particular board, and which is your sensor (the original Maxim, or a clone?).
Then, please try to scale the y-axis, e.g., plot the Columna B only with an y-axis ranging from 18000 to 22000.
Thank you!
Thanks for getting back to me.
I'm using the Raspberry Pi Pico and the sensor board may be a clone: https://www.pantechsolutions.net/max30102-pulse-oximeter-heart-rate-sensor-module-i2c-interface.
As for the graph, I'm using OpenOffice and I don't control it that well so I'm attaching some raw data.
data.csv
EDIT:
Updated sensor's link.
You're very welcome.
So, as I could see in your link, this is a MAX30100, so I am not sure that this library will work. However, we can further investigate. Let's check something:
- The csv that you posted contains 26 points only. if I remember well, with the default settings, the sensor will provide 50 samples per second, therefore you should plot at least 200 samples (4 seconds) to see an heart signal that makes sense.
- You can easily check the acquisition frequency with the code proposed in the readme; please make sure to have at least 50Hz
# Get the estimated acquisition rate
acquisition_rate = sensor.getAcquisitionFrequency()
- How are you logging data? Is it fast enough to get all the samples?
Let me know!
Nice to see that it works well!
You have to do some math to obtain SpO2 and HR. I put some hints in the last lines of the readme, here.
Please share your code if you manage to perform those computations locally, I am interested, too!
Sorry, I posted the wrong sensor's link so, I updated my post.
Will do. Thanks again.
Fine! Then, I'm going to close this issue.
Please feel free to open a topic in the "Discussion" section if you want to look for help for implementing HR/SPO2 evaluation, or if you want to share some progresses.
Bye,
Nicola