Unable to connect adafruit bno055 to esp32-c6

Hi, I am trying to connect Adafruit BNO055 with an esp32c6 board that I have. In the rawdata.ino example of Adafruit_BNO055 Library, it is mentioned that the sda and scl pins should be connected to analog 4,5 pins. But its not working. I am getting the following output:

Is there any way to change the scl and sda connection pins in the code? such that I can be able to connect to 0,1 pins like in wire.begin(0,1);

Pin 4 &5 related to using a UNO or similar , these pins are unlikely to be correct for your processors I2C bus connections .
Are you using the default Ox28 address ?
Is that library compatible with your processor?

I would be useful to
See that code and a wiring diagram .

Thank you for your reply hammy!

Yes, I think yes. because it's a normal esp32-c6. I already worked with esp32s before. But confused with esp32-c6.

I am using two addresses 0x28 and 0x29, for two sensors both connected via stemma qt connectors.

By the way, I just solved my problem by changing the code in the library file Adafruit_I2CDevice.cpp

In that file, at 31st line, I have changed:
_wire->begin();
to
_wire->begin(0,1);

So that, 0 and 1 pins will be my new sda and scl lines.

And finally it worked :grin:

Well done !

Can you put a tick on the reply to show sorted .
Thx

1 Like