Forum

Raspberry PI : dede...
 
Notifications
Clear all

Raspberry PI : dedect I2C array then get value

1 Posty
1 Users
0 Likes
1,983 Widok
0
Topic starter

Raspberry PI : dedect I2C array then get value

1 Answer
0
Topic starter

sudo apt-get install i2c-tools
sudo apt-get install python-smbus
sudo adduser pi i2c
i2cdetect –y 1 (or i2cdetect 0 or i2cdetect 1)


How to force load drivers?

modprobe i2c_bcm2708
modprobe i2c_dev


root@rpi:~# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- 77

select avaible ID then type /usr/sbin/i2cget -y 1 0x48

0x48 – visible ID in array.

 

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: