Skip to content

OSError: [Errno 5] EIO #8

@Mathemmagician

Description

@Mathemmagician

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.

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions