pimoroni / max30105-python

Python library for the Pimoroni MAX30105 breakout
https://shop.pimoroni.com/products/max30105-breakout-heart-rate-oximeter-smoke-sensor
MIT License
19 stars 14 forks source link

Code example for SPO2 #4

Open eugene-bce opened 5 years ago

eugene-bce commented 5 years ago

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

iioaia commented 5 years ago

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, notifications@github.com 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 .

eugene-bce commented 5 years ago

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

hackebike commented 3 years ago

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

MichielBbal commented 3 years ago

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

ilan-schemoul commented 2 years ago

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 ?