Skip to content

BNO055 instance fail unless with frequency arg. BNO055 polling unstable, fails invariably #12

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

Closed
iani opened this issue Jun 11, 2018 · 2 comments

Comments

@iani
Copy link

iani commented Jun 11, 2018

Hello,
I am posting this after seeing a similar issue on the CCS811 here:
adafruit/Adafruit_CircuitPython_CCS811#9

I am experiencing exactly the same problems, with write fail like this:
File "adafruit_bus_device/i2c_device.py", line 102, in write
Example:

Traceback (most recent call last):
File "", line 1, in
File "ccs811_example.py", line 10, in
File "adafruit_ccs811.py", line 113, in init
File "adafruit_register/i2c_bit.py", line 40, in get
File "adafruit_register/i2c_bit.py", line 39, in get
File "adafruit_bus_device/i2c_device.py", line 102, in write
OSError: [Errno 5] EIO

I tried creating both busio and bitbangio instances with frequency set to 10000. This works:

i2c_bus = bitbangio.I2C(board.SCL, board.SDA, frequency=10000) # was 10000

But always after some time interval, there is a write error, like this:

Accelerometer (m/s^2): (162.55, -123.85, -30.97)
Magnetometer (microteslas): (2036.0, -0.0625, -0.0625)
Traceback (most recent call last):
File "main.py", line 73, in
File "adafruit_bno055.py", line 76, in get
File "adafruit_register/i2c_struct.py", line 58, in get
File "adafruit_register/i2c_struct.py", line 57, in get
File "adafruit_bus_device/i2c_device.py", line 102, in write
OSError: [Errno 19] ENODEV

I tried different frequencies and different delay times between polling intervals, to no avail.

Is there a way to stabilize the behavior of the sensor and the library?

Thank you!

Iannis Zannos

@caternuson
Copy link
Contributor

This is probably related to #9

@kattni
Copy link
Contributor

kattni commented May 4, 2020

@iani Are you still experiencing this issue?

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

4 participants