adafruit / adafruit/Adafruit_CircuitPython_BNO08x
Issue with running BNO080 with software I2C ports
- Dominant language
- Python
- Stars
- 41
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
```
import busio
from adafruit_bno08x import (
BNO_REPORT_ACCELEROMETER,
BNO_REPORT_GYROSCOPE,
BNO_REPORT_MAGNETOMETER,
BNO_REPORT_ROTATION_VECTOR,
)
from adafruit_bno08x.i2c import BNO08X_I2C
from adafruit_extended_bus import ExtendedI2C as I2C
try:
i2c = I2C(4)
bno = BNO08X_I2C(i2c, address=0x4b)
except Exception as e:
print(f"Exc: {e}")
```
I have created a software i2c bus on the Raspberry5 using the /boot/firmware/config.txt
`dtparam=i2c_arm=on
dtoverlay=i2c-gpio,i2c_gpio_delay_us=1,bus=4,i2c_gpio_sda=8,i2c_gpio_scl=9
`
However, I am facing the following error while trying to run this:
/home/pi/dir_name/lib/python3.11/site-packages/adafruit_blinka/microcontroller/generic_linux/i2c.py:30: RuntimeWarning: I2C frequency is not settable in python, ignoring!
warnings.warn(
Exc: [Errno 5] Input/output error
Can someone please help?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the supplied Python snippet with the Raspberry Pi software-I2C configuration in /boot/firmware/config.txt. Review adafruit_blinka/microcontroller/generic_linux/i2c.py and the BNO08X_I2C entry point while reproducing the RuntimeWarning and Errno 5. Done means identifying whether this bus configuration is supported and documenting or fixing the demonstrated failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, raspberry-pi
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100