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

Wasn't able to get working #3

Closed Andrene closed 4 years ago

Andrene commented 4 years ago

I wasn't able to get this working on my PI 3 and was wondering if there is anything else that I need, also I could figure out which gpio to plug IRD and RD into.

Andrene commented 4 years ago

I got it to work, sort of. Running HRCalc to get HR and SPO2 outputs (-999, False, -999, False)

vrano714 commented 4 years ago

I hope you make everything work fine.

If you cannot make the sensor work, please check the followings:

  1. enable I2C interface on Pi
  2. check the connection between Pi and the sensor
  3. ensure the sensor is detected (sudo i2cdetect -y 1 will do)
  4. ensure the libraries are installed

If the values you get seem wrong, please check the followings:

  1. touch the sensor LED window with your finger
  2. keep your finger steady while sensing
  3. check the values you get, before throw them to HR/SpO2 calculation (for me, the values are around 125000 or 145000)