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

Help!Raspberry PI3 conected to BNO080 are having problems. #31

Open
WSC0815 opened this issue Oct 25, 2021 · 4 comments
Open

Help!Raspberry PI3 conected to BNO080 are having problems. #31

WSC0815 opened this issue Oct 25, 2021 · 4 comments

Comments

@WSC0815
Copy link

WSC0815 commented Oct 25, 2021

An unknown error occurred when using the raspberry PI to connect to the BNO080 sensor via i2C.

I completely follow the tutorial configuration and run the example, but there are the following problems, I don't know how to do, I hope someone can help me, thank you very much!

This is the code I used.(It is the same as the test code in the library.)
code:

import board
import busio

from adafruit_bno08x.i2c import BNO08X_I2C
from adafruit_bno08x import BNO_REPORT_ACCELEROMETER

i2c = busio.I2C(board.SCL, board.SDA)
bno = BNO08X_I2C(i2c)
bno.enable_feature(BNO_REPORT_ACCELEROMETER)

while True:
accel_x, accel_y, accel_z = bno.acceleration # pylint:disable=no-member
print("X: %0.6f Y: %0.6f Z: %0.6f m/s^2" % (accel_x, accel_y, accel_z))

9BEA9C16-72B7-47E5-8826-7C8CD0F4856D

@WSC0815
Copy link
Author

WSC0815 commented Oct 25, 2021

thanks a lot!

@caternuson
Copy link
Contributor

Can you repost the screen cap of the issue, or the text of the error message. The first post attachment didn't come through for some reason.

@WSC0815
Copy link
Author

WSC0815 commented Oct 25, 2021

Can you repost the screen cap of the issue, or the text of the error message. The first post attachment didn't come through for some reason.

Sorry, I failed to upload the picture before, now I have added the picture .

@WSC0815 WSC0815 changed the title help.Raspberry PI3conected to BNO080 are having problems Help!Raspberry PI3 conected to BNO080 are having problems. Oct 25, 2021
@adafruit adafruit deleted a comment from WSC0815 Oct 25, 2021
@caternuson
Copy link
Contributor

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

2 participants