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.
No description
No description
No description
No description
14 Replies
alistair1234
alistair1234OP4mo ago
This is a rough circuit diagram that I created since the pictures are not super clear
No description
AnonEngineering
AnonEngineering4mo ago
is that sensor designed for 3.3v? what are PS0 and PS1?
alistair1234
alistair1234OP4mo ago
@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
AnonEngineering
AnonEngineering4mo ago
No description
AnonEngineering
AnonEngineering4mo ago
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
alistair1234
alistair1234OP4mo ago
@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?
AnonEngineering
AnonEngineering4mo ago
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?
alistair1234
alistair1234OP4mo ago
@AnonEngineering let me try setting them to ground and get back to you
alistair1234
alistair1234OP4mo ago
@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"
No description
AnonEngineering
AnonEngineering4mo ago
then either feeding 5v to the sensor already damaged it or the wiring is wrong
alistair1234
alistair1234OP4mo ago
@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 😛
AnonEngineering
AnonEngineering4mo ago
do you have a 3.3v board, like an esp?
alistair1234
alistair1234OP4mo ago
I do not, I only have an Uno and this Mega, let me look what an ESP is, maybe I can purchase one 😄
AnonEngineering
AnonEngineering4mo ago
try to find the datasheet for your sensor, always the first thing to check

Did you find this page helpful?