Skip to content

Calculating SPO2 and Heartrate #21

Closed

Description

@IamMugiChan

Hi there

I have successfully run the sample file however is it possible to compute

Heart Rate and SpO2 using this library?

Activity

  1. n-elia commented on Apr 5, 2023

    @n-elia
    Owner

    Hi,

    this library has the only scope of providing you an access to the MAX30102 sensor when using MicroPython. Therefore, you can only get the RAW data.

    To compute HR and SpO2, you have to code your own application. I left some hints about that here. There are some C++ implementations that could be ported in Python.

    Feel free to start a new discussion if you want to ask the community or to share your findings (greatly appreciated). Also, you may take a look or start a new thread on MicroPyhton forum.

    Bye,
    Nicola

  2. IamMugiChan commented on Apr 5, 2023

    @IamMugiChan
    Author

    Device Used: mh-et live max30102
    Library Used: https://pypi.org/project/micropython-max30102/

    Reading Sample No Finger Input:
    `

    • 130 , 114

    • 129 , 117

    • 128 , 114
      `
      Reading Sample With Finger Input

    • 16338 , 12171

    • 15992 , 12597

    • 16093 , 12496

    • 15879 , 12468

    • 16195 , 12467

    Now we can say that the device is reading ...

    module configuration:
    sensor.set_sample_rate(400)
    sensor.set_fifo_average(8)
    sensor.set_active_leds_amplitude(MAX30105_PULSE_AMP_MEDIUM)

    given this data from function
    red_reading = sensor.pop_red_from_storage()
    ir_reading = sensor.pop_ir_from_storage()

    how can we compute the SpO2 and the Heart Rate? any ideas or sample?

  3. Repository owner locked and limited conversation to collaborators on May 22, 2023
  4. converted this issue into a discussion #22 on May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions