Oljahim39
Posts: 7
Joined: Thu Jun 14, 2018 9:03 pm

[SOLVED] Can't detect i2c device

Sun Oct 14, 2018 6:34 pm

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?

Brandon92
Posts: 871
Joined: Wed Jul 25, 2018 9:29 pm
Location: The Netherlands

Re: Can't detect i2c device

Sun Oct 14, 2018 6:37 pm

Maybe a stupid question, but are you using pull-up resistors?

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 3000
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Can't detect i2c device

Sun Oct 14, 2018 6:40 pm

GPIOs 0&1 are I2C0 - you want 2&3 for I2C1.

Oljahim39
Posts: 7
Joined: Thu Jun 14, 2018 9:03 pm

Re: Can't detect i2c device

Sun Oct 14, 2018 7:23 pm

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.

Return to “Compute Module”