Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wire.endTransmission() Failed when trying to use I2C #19

Open
Calferino opened this issue Nov 10, 2023 · 2 comments
Open

Wire.endTransmission() Failed when trying to use I2C #19

Calferino opened this issue Nov 10, 2023 · 2 comments

Comments

@Calferino
Copy link

I am using the default code but getting Wire.endTransmission() failed. I tried the other suggestions in the issues such as including Wire.begin but new problems arise with BMI160.begin(BMI160GenClass::I2C_MODE, Wire, i2c_addr);

@YouthfulPat501
Copy link

having the same issue here. can't figure it out.

@Mboudali
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants