GY-BN008X with Arduino Mega 2560 Wiring Issues - Unable to detect device with I2C
I have tried to wire this as per help with some forums and ChatGPT and it doesn’t seem to be working… I am trying to use the I2C scanner to find the device and am unable to. Looking for feedback and direction here, this is my first project.




14 Replies
This is a rough circuit diagram that I created since the pictures are not super clear

is that sensor designed for 3.3v?
what are PS0 and PS1?
@AnonEngineering how do I check if it’s meant for 3.3V?
PS0 and PS1 seems that it controls what communication protocol it would use

looks to be wired for UART
and the Mega is a 5v logic board
the chip itself wants 3.3v logic
near as I can tell that module uses this chip
https://www.ceva-ip.com/wp-content/uploads/BNO080_085-Datasheet.pdf
@AnonEngineering so does that mean that the Arduino Mega would not be the correct board to use for this sensor? or is there a way to change the Arduino Uno to use 3.3V logic to be compatible with this boarD?
the "logic level" is what voltage a device considers "HIGH".
on a 3.3v device 3.3v = HIGH, on a 5v device 5v = HIGH
if you feed 5v into a 3.3v pin it can damage it
the safe way is to use "level shifters" between the different logic levels
if you set PS0 and PS1 to ground does the board show up on the I2C scanner?
@AnonEngineering let me try setting them to ground and get back to you
@AnonEngineering After setting them both to ground and then running the above code(from ChatGPT) and setting BaudRate to 9600, I am getting the feedback that "No I2C devices found"

then either feeding 5v to the sensor already damaged it or the wiring is wrong
@AnonEngineering understood, would you be able to help me come up with the correct wiring diagram for this project assuming that i would be needing a level shifter? This is generally outside of my scope of knowledge 😛
do you have a 3.3v board, like an esp?
I do not, I only have an Uno and this Mega, let me look what an ESP is, maybe I can purchase one 😄
try to find the datasheet for your sensor, always the first thing to check