-
Notifications
You must be signed in to change notification settings - Fork 26
Samples with python and ubuntu #64
Comments
Hi, add pull-up resistors to the SDA and SCL lines, 4.7KΩ should do nicely. |
@Propanu |
@ihabZhaika, they go in between the pin and VCC. You'll have to do it for both SDA and SCL, here's an example: |
hi, |
any other suggestion ? |
@ihabZhaika |
hi,
i have installed ubuntu on the joule , and i tried to connect i2c devices ,but it unable to detect any thing
More details :
i am running on ubuntu 16.04 , i installed the I2C libs with the following lines
sudo apt-get install python-smbus
sudo apt-get install i2c-tools
then i used the following line to check I2C0 [pin 11 , pin 13] devices ,but i was not able to find the device [ PCA9685 16 Channel adafruit servo controller] [ i tired it with up-board ] and it detected
sudo i2cdetect -y 0
i got , which not the device address
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- 37 -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
i tired to connect it to buses 1,2,3 and no addresses at all
sudo i2cdetect -y 1 sudo i2cdetect -y 2 sudo i2cdetect -y 3
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
So is there any kernel patch needed and what to do for getting them working ?
The text was updated successfully, but these errors were encountered: