-
Notifications
You must be signed in to change notification settings - Fork 63
Issue connecting ESP8266 Thing to BNO080 #16
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
Comments
Ok, so I've got it to work, sort off. See attached code, which is modified Example1-RotationVector.ino.
|
ESPs are notorious for their odd I2C issues. I can't work on this at the moment but we've found various solutions
|
I will try those suggestions. |
Having the following in the setup got it working for me, don't ask me why. Setup:
|
@DaStewie Wow, it does work. My setup is 2,14 but it works for it too: delay(100); //would not work without this delay Wire.begin(5,4); |
Managed to figure out what Wire.begin(5, 4) did. Using flush resets the index and allows for a proper startup.
|
This works too. And much more rational. |
Thanks you two! I've added this code (commented out) and a link to this issue in Example 1. Hopefully it will help future ESP users. |
I am trying to connect ESP8266 Thing, or any ESP8266 board for that matter, to BNO080 via I2C interface and it is not working.
I have tried different things, including setting different parameters on Wire library, but nothing works. Even when ESP8266 recognizes that there is a sensor attached, which seems to be about 70% of the time, the loop() function does not generate any data. If I turn on debugging, I get a steady stream of 'I2C Timeout' messages.
The text was updated successfully, but these errors were encountered: