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

Differences in measures #8

Open kz3ko opened 3 years ago

kz3ko commented 3 years ago

Hi! Im using your code and the problem i have is that my results in IR and RED data are somehow swapped i guess? I mean, in logs you've uploaded IR result is around 20k higher than RED one, but when i take a measure I get higher values in RED data. I observed it when i tried to get spo value manually by dividing ac and dc currents. When i inverted R factor i got a proper value almost everytime. I also check the MAX30102 modes. In hr mode only red light should be turned on, in spo mode both should be turned on. But when i turn the hr mode i see no light. The light apperas only in spo mode. This fact would confirm that signals are inverted or something i guess? Because red light is visible and ir is not for us. What do you think?

kz3ko commented 3 years ago

Commit 3f7b69a will fix this bug.

My results are same as u had before this change, the difference is my settings are same as yours after. Im confused now.

vrano714 commented 3 years ago

Hi kz3ko,

I will check the datasheet of MAX30102 for RED/IR data order.