Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5217

Troubleshooting • Re: "i2cdetect" detects unconnected addresses.

$
0
0
The on-board resistors should be pulling the i2c data line high, which would prevent anything showing up with nothing connected.

Can you try this test with nothing connected to the pins

Code:

pinctrl get 2,3pinctrl set 2,3 ip pdpinctrl get 2,3
The first should show both pins set for i2c mode:

Code:

 2: a0    -- | hi // SDA1/GPIO2 = SDA1 3: a0    -- | hi // SCL1/GPIO3 = SCL1
The next command will set the pins to input mode with pull down - the resistors on the board should override that.
The third command should show the pins in Input mode and both reading high. If either read low it could be a damaged resistor.

Code:

 2: ip    -- | hi // SDA1/GPIO2 = input 3: ip    -- | hi // SCL1/GPIO3 = input
You can set them back to i2c mode with

Code:

pinctrl set 2,3 a0

Statistics: Posted by rpdom — Tue Feb 06, 2024 10:33 am



Viewing all articles
Browse latest Browse all 5217

Trending Articles