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

error running m=max30102.MAX30102() #11

Open BarbaReyes opened 9 months ago

BarbaReyes commented 9 months ago

I have the max30102.py script in my folder and i have made sure that my rpi is detecting the sensor via i2c it even shows on address 57, however when i try to run

Import max30102 m =max30102.MAX30102() red, ir = m.read_sequential()

I get the following error: line 83, in reset self.bus.write_i2c_block_data(self.address, REG_MODE_CONFIG, [0x40]) OSError: [Errno5] Input/Output error.

What can i do to solve this issue? Im using python 2.7.18 and have the necessary libraries installed.