Skip to content

Code on RPi Pico #4

Closed
Closed

Description

@ebolisa

Hi,
Testing the library code (no changes made) on a Pico board and getting pretty much a linear output.
What is possible wrong?
TIA

Cap

Activity

  1. n-elia commented on May 20, 2021

    @n-elia
    Owner

    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!

  2. ebolisa commented on May 20, 2021

    @ebolisa
    Author

    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
    Cap
    EDIT:
    Updated sensor's link.

  3. ebolisa commented on May 20, 2021

    @ebolisa
    Author

    Ok, Made progress. Had a crash course on Calc.
    But how do I output in a range from 0 to 100% for Oxy. And < 200 for HR?
    TIA
    Cap

  4. n-elia commented on May 20, 2021

    @n-elia
    Owner

    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:

    1. 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.
    2. 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()
    
    1. How are you logging data? Is it fast enough to get all the samples?

    Let me know!

  5. n-elia commented on May 20, 2021

    @n-elia
    Owner

    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!

  6. ebolisa commented on May 20, 2021

    @ebolisa
    Author

    Sorry, I posted the wrong sensor's link so, I updated my post.

  7. ebolisa commented on May 20, 2021

    @ebolisa
    Author

    Will do. Thanks again.

  8. n-elia commented on May 20, 2021

    @n-elia
    Owner

    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

  9. self-assigned this
    on May 20, 2021
  10. Repository owner locked and limited conversation to collaborators on Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions