vrano714 / max30102-tutorial-raspberrypi

This repository is unofficial porting of Arduino sample code of MAXRESDEF117#(max30102) HR/SpO2 sensor
56 stars 28 forks source link

MAX30100 ? #7

Open titithebad opened 3 years ago

titithebad commented 3 years ago

Hello !

Does the script work woth MAX30100 chip ?

I try it but nothing happen. No red light is on...

Regards

vrano714 commented 3 years ago

Hi.

I think it does not work with MAX30100.

Searching on github showed this: https://github.com/mfitzp/max30100 How about trying this one?

I hope you successfully make your sensor work.

titithebad commented 3 years ago

Hin

Thanks. Finally I bought a max30102.

The red light is now on but the value are false :+1:

pi@rpi-medical:~/max30102-tutorial-raspberrypi $ python test.py Channel: 1, address: 0x57 (-999, False, -999, False) (-999, False, -999, False) (-999, False, -999, False) (-999, False, -999, False) (-999, False, -999, False) (-999, False, -999, False) (150, True, 71.26890599999999, True) ==> only these values (-999, False, -999, False) (-999, False, -999, False) (20, True, -999, False) (-999, False, -999, False) (-999, False, -999, False) (-999, False, -999, False) (-999, False, -999, False)

Do you know why ?

Regards

vrano714 commented 3 years ago

You successfully made the sensor turn on. That's good. 👍

There can be many reasons for that. Finger placement is most likely. Your finger should be steady on the sensor. Because the sensor has to read blood flow, put your finger softly for blood to flow normally.

Saving the raw sensor values and plotting them may help. HR/SpO2 calculation uses peak detection. If the plotting is too flat, peak detection cannot work.

In my opinion, max30102 sensor is susceptible to environmental factors such as finger placement, thickness of the skin and so on. 🤔 Please try several times to find the optimal way of placing finger.

titithebad commented 3 years ago

Can you tell me the electrical connection you made with your Rpi please ?

vrano714 commented 3 years ago

Here's the connection:

pizero-sensor-connection

Pin order of the sensor may be different with yours. Please refer to pin names.

(I think there is no problem in connection because you can see red light from the sensor and retrieve some values)

titithebad commented 3 years ago

So, no problem with the connexion... How can I do to have more values for calculating the HR et Sp02 ?

titithebad commented 3 years ago

Another question, how do you put your finger on the sensor ?

vrano714 commented 3 years ago

more values

How about referring to "Running Continuously" (in README.md)?

put your finger

I put my index finger, like when touching a fingerprint reader.