Has anyone setup I2C on Ubuntu yet?
I'm not a Linux expert, so I'm sure I'm missing something simple.
I've installed i2c tools.
When I do i2cdetect -l, it doesn't find anything.
However, looking in /sys/class, I can see i2c-0 and i2c-1.
Do I need to comment i2c out from the blacklist?
Is there something else needed?
Thanks!
Merged, will be in the next Kernel release. Thanks Martin!
I assume this is all kernel stuff.
As I'm way too newb to compile the kernel, I also assume I'll need to wait for longsleep's next kernel?
Also, while we're at it, any chance to get SPI and UART support (if not already there) in this next kernel...I'll need all 3.
You guys are awesome, and thanks!
For the UART2/UART3/UART4, it has been done and merged 16 days ago, so, current kernel from longsleep should have it already.
For SPI, it not working yet, although DTS entries are there, the /dev/spidev-* are not showing up.
I didn't get change to debug further yet.
Hi - I recompiled the kernel (thanks longsleep) and i2cdetect does find 2 devices that it can scan but when I attach an i2c device (1602LCD) and try to scan for it, no-go.
sudo i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
and
ubuntu@linux:~/logs$ sudo 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 have tested the device with an arduino and it functioned there. I have the device attached to the PI 2 bus.
Any advice?
Hmmm...maybe check your wiring?
I didn't compile the kernel, just updated to longsleep's latest.
I just hooked up several I2C devices on a custom board to the PI2 bus, and i2cdetect -y 1 worked just fine for me.