You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
n-elia commentedon Apr 5, 2023
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
IamMugiChan commentedon Apr 5, 2023
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?