Skip to content
This repository has been archived by the owner on May 13, 2019. It is now read-only.

Samples with python and ubuntu #64

Open
ihabZhaika opened this issue Nov 3, 2016 · 6 comments
Open

Samples with python and ubuntu #64

ihabZhaika opened this issue Nov 3, 2016 · 6 comments

Comments

@ihabZhaika
Copy link

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

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

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 ?

@Propanu
Copy link

Propanu commented Nov 3, 2016

Hi, add pull-up resistors to the SDA and SCL lines, 4.7KΩ should do nicely.

@ihabZhaika
Copy link
Author

@Propanu
THe pull-up resistor will connected to the ground and to the pin correct ?
if you can provide little scheame will be great help
i will try it and update the post

@Propanu
Copy link

Propanu commented Nov 8, 2016

@ihabZhaika, they go in between the pin and VCC. You'll have to do it for both SDA and SCL, here's an example:
Pull-up Resistors

@ihabZhaika
Copy link
Author

hi,
i tried , but still no thing appear
i am using IMU MPU6050
i connected the gnd and the vcc
then added the pull-up resistors as you said to the SDA,SCL but still did not detect it

@ihabZhaika
Copy link
Author

any other suggestion ?

@bqcrabtree
Copy link
Collaborator

@ihabZhaika
Have you checked the MRAA version, and updated it to the newest one? Also, make sure the ground and +V pins you're using are on the same side of the Joule module. As close together as possible. Try changing ground pins, if they already are. We've had issues with grounds not all being equal.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants