I've just installed the new official Raspbian release but I can't get i2c-tools to work - can any one help ?
When I try and use i2cdetect, I get an error message: Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directory
pi@raspberrypi ~ $ sudo modprobe i2c-dev
pi@raspberrypi ~ $ lsmod
Module Size Used by
i2c_dev 6115 0
snd_bcm2835 21485 0
snd_pcm 82208 1 snd_bcm2835
snd_seq 59808 0
snd_timer 21905 2 snd_seq,snd_pcm
snd_seq_device 6920 1 snd_seq
snd 57668 5 snd_seq_device,snd_timer,snd_seq,snd_pcm,snd_bcm2835
snd_page_alloc 5383 1 snd_pcm
evdev 8922 3
pi@raspberrypi ~ $ sudo apt-get install i2c-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libi2c-dev python-smbus
The following NEW packages will be installed:
i2c-tools
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/58.9 kB of archives.
After this operation, 223 kB of additional disk space will be used.
Selecting previously unselected package i2c-tools.
(Reading database ... 54451 files and directories currently installed.)
Unpacking i2c-tools (from .../i2c-tools_3.1.0-1_armhf.deb) ...
Processing triggers for man-db ...
Setting up i2c-tools (3.1.0-1) ...
pi@raspberrypi ~ $ sudo i2cdetect -y 0
Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directory
-
- Posts: 6
- Joined: Wed Jul 18, 2012 3:33 pm
Re: New Raspbian release and i2c-tools
I alse needed to do:
sudo modprobe i2c-bcm2708
sudo modprobe i2c-bcm2708
Re: New Raspbian release and i2c-tools
Thanks - that has fixed it.
Now added the following to /etc/modules:
i2c-bcm2708
i2c-dev
Now added the following to /etc/modules:
i2c-bcm2708
i2c-dev
Re: New Raspbian release and i2c-tools
Thank you for the fix!
I was wondering why it wouldn't work (I at least expected it to show that nothing was connected).
Of course, nothing comes up on "0" since I have Rev2 board, it was nice to see that my device was there on "1".
I was wondering why it wouldn't work (I at least expected it to show that nothing was connected).
Of course, nothing comes up on "0" since I have Rev2 board, it was nice to see that my device was there on "1".
______________
http://www.themagpi.com/
A Magazine for Raspberry Pi Users
Read Online or Download for Free.
My new book: goo.gl/dmVtsc
Meltwater's Pi Hardware - pihardware.com
Like the MagPi? @TheMagP1 @TheMagPiTeam
http://www.themagpi.com/
A Magazine for Raspberry Pi Users
Read Online or Download for Free.
My new book: goo.gl/dmVtsc
Meltwater's Pi Hardware - pihardware.com
Like the MagPi? @TheMagP1 @TheMagPiTeam