I2C Not Being Detected

I am currently having an issue where I am unable to detect I2C devices.

Board:
I have tried both an Arduino Mega, and an Arduino Uno.

Devices:
I tested with an Adafruit Rotary Encoder as well as an Adafruit ADC.

Wiring:
I have tested with a STEMMAQT->Male Dupont connector as well as pin routing through breadboard. Both devices have an LED to show that they're getting power.

Code:
Default i2c_scanner example and adafruit BusIO detect example scanning for known default addresses.

I'm confident that my wiring is correct. I am using the correct pins for the boards. I would assume the code is correct because it's provided examples. It's weird that this issue has persisted across multiple boards and devices. I really have no idea what's going on.

Do you have a multimeter to check the wires and the voltages ?

There are a few things that are the same with every test that you do. Can you change those ?
For example: the computer, the USB cable, the breadboard, a cable.

Some breadboards are divided into two parts. The power strips on the left are not connected to the power strips on the right.

There are many more possibilities. Can you show a photo with all the parts and all the wires ?

Both board and device are showing correct 5V voltage between Vin and GND. I assume checking the SCL and SDA lines won't provide any insight.

This was all done with direct wiring. Arduino was being powered directly through USB to computer.

I can try with a different computer. I tested different USB cable and no change. Breadboard is not applicable, and I tried different wirings.

I am not home right now but I'll provide a picture later tonight when I get home.

Assuming all the hardware is perfect, (perfect wiring, non-defective devices, etc.) and the code is correct, are there any known issues that would cause I2C devices not to be found?

(Also the Adafruit devices I'm using both have internal pullup resistors so that's not the issue either)

Measure the SCL and SDA and if they are below 4.8 when idle install pull up resistors. From what you are saying they are not in the cirucit.

I'll double check the voltage but both of the Adafruit devices I tested with have pullup resistors built into the board.

Do you have any leads longer then 25cm/10"?

Negative. Longest wire is 10cm.

I always turn to Mr Gammon when things cant be explained. May give you some ideas.

What were the voltages on SDA and SCL?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.