ozzmaker / BerryIMU

Code related to BerryIMU
http://ozzmaker.com
184 stars 110 forks source link

tried running the python LSM9DS0-gyro-accel-compass #2

Closed xmen4u closed 8 years ago

xmen4u commented 8 years ago

sudo python berryIMU.py Result: "Traceback (most recent call last): File "berryIMU.py", line 126, in writeACC(CTRL_REG1_XM, 0b01100111) #z,y,x axis enabled, continuos update, 100Hz data rate File "berryIMU.py", line 38, in writeACC bus.write_byte_data(ACC_ADDRESS , register, value) IOError: [Errno 5] Input/output error"

my run of "sudo /usr/sbin/i2cdetect -y 1" resulted: 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --

and of "sudo /usr/sbin/i2cdetect -y 0" resulted in: Error: Could not open file /dev/i2c-0' or/dev/i2c/0': No such file or directory

Have i done something wrong? thank you!

xmen4u commented 8 years ago

I've connected it to the other output (The 3 pin 2 row female header) and it worked. What does it mean? thank you

xmen4u commented 8 years ago

reconnected, works! probably loss cable issue!