Quantcast
Viewing all articles
Browse latest Browse all 5077

Troubleshooting • Re: "i2cdetect" detects unconnected addresses.

> The on-board resistors should be pulling the i2c data line high, which would prevent anything showing up with nothing connected.
This OS did not have the "pinctrl" command, but "raspi-gpio" works in a similar way.
Here is the result when I run it without connecting anything to the pin.

raspi-gpio get 2,3

Code:

GPIO 2: level=1 fsel=4 alt=0 func=SDA1GPIO 3: level=1 fsel=4 alt=0 func=SCL1
raspi-gpio set 2,3 ip pd
raspi-gpio get 2,3

Code:

GPIO 2: level=1 fsel=0 func=INPUTGPIO 3: level=1 fsel=0 func=INPUT
pinctrl set 2,3 a0
raspi-gpio get 2,3

Code:

GPIO 2: level=1 fsel=4 alt=0 func=SDA1GPIO 3: level=1 fsel=4 alt=0 func=SCL1
There doesn't seem to be any problem, but...
Yes, that all looks good. Obviously it's just a snapshot of one instant, but seems fine.

Possible RFI could influence the lines, but it would need a lot to overcome the pull-ups when nothing is connected.

One other possibility is something else using the pins. That would be tricky to track down.

Statistics: Posted by rpdom — Wed Feb 07, 2024 9:22 am



Viewing all articles
Browse latest Browse all 5077

Trending Articles