You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Posting here mainly for visibility as the solution is provided below.
When running bno_test.py, I sometimes get
Traceback (most recent call last):
File "<stdin>", line 44, in <module>
File "bno055_base.py", line 86, in <lambda>
File "bno055_base.py", line 118, in scaled_tuple
File "bno055_base.py", line 200, in _readn
OSError: [Errno 5] EIO
Which I was able to resolve by reducing the frequency, i.e.
I'm baffled. I used the same breakout in my testing and in many hours of work developing a Quaternion class and never saw this error.
In general I2C interfaces which work at low clock rates but not at higher ones are often the result of capacitive loading, which can be countered by lower value pulups. The Adafruit pullups are 10KΩ which is rather high, you might try adding pullups to 3.3V in the region of 1KΩ to 2KΩ. But this is clutching at straws, I never found a need.
Posting here mainly for visibility as the solution is provided below.
When running
bno_test.py
, I sometimes getWhich I was able to resolve by reducing the frequency, i.e.
before:
i2c = machine.I2C(1, sda=machine.Pin(14), scl=machine.Pin(15))
after:
i2c = machine.I2C(1, sda=machine.Pin(14), scl=machine.Pin(15), freq=5000)
The text was updated successfully, but these errors were encountered: