hanyazou / BMI160-Arduino

76 stars 35 forks source link

Wire.endTransmission() Failed. Using I2c #20

Open YouthfulPat501 opened 6 months ago

YouthfulPat501 commented 6 months ago

Whenever I connect the sensor as in the schematics it just spams out Wire.endTransmission() Failed.

Mboudali commented 6 months ago

Hi there, Looks like an I2C address issue. Run an I2C scanner (google search) and check your sensor's address. Use the following line to declare your sensor: BMI160.begin(BMI160GenClass::I2C_MODE, Wire, 0x69);

Replace 0x69 with the address you found using the I2C scanner.