Page 1 of 1

[SOLVED] Can't detect i2c device

Posted: Sun Oct 14, 2018 6:34 pm
by Oljahim39
Hi all.
I have compute module v3.
I have connected i2c device on gpio0 and 1, i followed instructions on enabling i2c, i have /dev/i2c-1, when i call i2cdetect , i get:

pi@raspberrypi:~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
I tried multiple devices, so its not device problem.
Does anybody had similar problem?

Re: Can't detect i2c device

Posted: Sun Oct 14, 2018 6:37 pm
by Brandon92
Maybe a stupid question, but are you using pull-up resistors?

Re: Can't detect i2c device

Posted: Sun Oct 14, 2018 6:40 pm
by PhilE
GPIOs 0&1 are I2C0 - you want 2&3 for I2C1.

Re: Can't detect i2c device

Posted: Sun Oct 14, 2018 7:23 pm
by Oljahim39
Thanks @ PhilE, i wasn't aware that i should use i2c0. Now it detects them.
@Brandon92 i have hardware in which projection i didn't contribute and i am not a hardware guy so i dont know if there are ones or if there should be xD.