max30105-python icon indicating copy to clipboard operation
max30105-python copied to clipboard

Code example for SPO2

Open eugene-bce opened this issue 5 years ago • 5 comments

It would be fantastic to have a code example for SPO2 readings in Python.

An arduino example is here: https://github.com/sparkfun/SparkFun_MAX3010x_Sensor_Library/blob/master/examples/Example8_SPO2/Example8_SPO2.ino

eugene-bce avatar Sep 10 '19 23:09 eugene-bce

Hi I would like to learn to program hardware in this way, grab a piece of hardware with little or no python library and create one.

To get the most out of the sensors I buy.

What is that type of programming called? I'd like to expand the max30105 library or examples with that knowledge.

Thanks!

On Tue., Sep. 10, 2019, 7:44 p.m. r3dh0t, [email protected] wrote:

It would be fantastic to have a code example for SPO2 readings in Python.

An arduino example is here: https://github.com/sparkfun/SparkFun_MAX3010x_Sensor_Library/blob/master/examples/Example8_SPO2/Example8_SPO2.ino

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pimoroni/max30105-python/issues/4?email_source=notifications&email_token=AMQ4WFV5PDZ4Y4ZGOJZTQBDQJAWN7A5CNFSM4IVNU7LKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HKSRCSA, or mute the thread https://github.com/notifications/unsubscribe-auth/AMQ4WFRVF2DKGJFLIHNH7RLQJAWN7ANCNFSM4IVNU7LA .

iioaia avatar Sep 11 '19 00:09 iioaia

I'm not sure if I understand sorry @iioaia. Are you wanting to create the example?

Ideally, I'd just like to be able to return the SPO2 values from the sensor with Python. The current example can print HR data, but not SPO2 data. https://github.com/pimoroni/max30105-python/tree/master/examples

eugene-bce avatar Sep 11 '19 01:09 eugene-bce

Looking for the SPO2 reading too, not sure is implemented in the Class, any info?

hackebike avatar Dec 30 '20 18:12 hackebike

This is very sad :-( I bought this device especially for the SpO2 sensor and then there is no script!

MichielBbal avatar Apr 21 '21 19:04 MichielBbal

Yeah I'm also looking forward for this. I feel like marketplaces should not say it's raspberry compatible as the software is not there yet. Anyway thanks a lot for this amazing library. From my understanding it's not just the example that lacks but also the code ? And as the code to compute oxygen is complex one should probably do a binding to that https://github.com/sparkfun/SparkFun_MAX3010x_Sensor_Library/blob/master/src/spo2_algorithm.cpp ? right ?

ilan-schemoul avatar Nov 19 '21 21:11 ilan-schemoul