Error when installing Adafruit BNO055

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ebachs10
 
Posts: 4
Joined: Sat Feb 03, 2018 2:43 pm

Error when installing Adafruit BNO055

Post by ebachs10 »

Hi there

I'm new to ubunto, but I'm trying to work me through on the BBB. I am following the tutorial given for the BNO055:

https://learn.adafruit.com/bno055-absol ... k/software

When Im trying to run the command: sudo python setup.py install i get an error:

can someone give me a hint, what to do?

Thanks in advance!

- Esben
Attachments
2018-02-03 19_46_39-root's X desktop (MyFirstBeagle_1) - TightVNC Viewer.png
2018-02-03 19_46_39-root's X desktop (MyFirstBeagle_1) - TightVNC Viewer.png (139.5 KiB) Viewed 969 times
Last edited by ebachs10 on Sat Feb 03, 2018 3:44 pm, edited 1 time in total.

User avatar
Franklin97355
 
Posts: 23912
Joined: Mon Apr 21, 2008 2:33 pm

Re: Error when installing Adafruit BNO055

Post by Franklin97355 »

When Im trying to run the command: sudo python setup.py install i get an error
Can you post the error so we can help?

User avatar
drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: Error when installing Adafruit BNO055

Post by drewfustini »

Hi, sorry to hear you encountered an error. I do not see the text of an error message in your post.

Please either paste the full text of the error or attach a screenshot of the error message.

In addition, I would like to know more about the software installed on your BeagleBone. Please paste the output of these commands:

sudo /opt/scripts/tools/version.sh

cat /boot/uEnv.txt

Finally, I would recommend trying the current official BeagleBoard.org Debian image for the BeagleBone:

Stretch IoT (without graphical desktop) for BeagleBone and PocketBeagle via microSD card

User avatar
ebachs10
 
Posts: 4
Joined: Sat Feb 03, 2018 2:43 pm

Re: Error when installing Adafruit BNO055

Post by ebachs10 »

Hi all

Thanks for the quick answer. I thought, that I had attached a sceenshot, but it should be attached now :)


Maybe, I'll have to clean up with a new image!
Attachments
ErrorCmd.png
ErrorCmd.png (42.29 KiB) Viewed 956 times
2018-02-03 19_46_39-root's X desktop (MyFirstBeagle_1) - TightVNC Viewer.png
2018-02-03 19_46_39-root's X desktop (MyFirstBeagle_1) - TightVNC Viewer.png (139.5 KiB) Viewed 969 times

User avatar
drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: Error when installing Adafruit BNO055

Post by drewfustini »

Thanks for posting. It looks like the Debian installation is from 2014 which is quite old at this point and likely the issue.

Please try the current official BeagleBoard.org Debian image for the BeagleBone:

Stretch IoT (without graphical desktop) for BeagleBone and PocketBeagle via microSD card

User avatar
ebachs10
 
Posts: 4
Joined: Sat Feb 03, 2018 2:43 pm

Re: Error when installing Adafruit BNO055

Post by ebachs10 »

Hi drewfustini

Thank you for the reply - it was an old version! Finally, ive got a new version and everything installs correctly now (y). I've got a new problem now, and it is a IO error. Any suggestions?
Attachments
2018-02-10 17_16_45-Adafruit customer service forums • Post a reply – Google Chrome.png
2018-02-10 17_16_45-Adafruit customer service forums • Post a reply – Google Chrome.png (70.47 KiB) Viewed 873 times

User avatar
drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: Error when installing Adafruit BNO055

Post by drewfustini »

Did you change the example to use the correct settings for your BeagleBone?

Code: Select all

debian@beaglebone:~/tmp/Adafruit_Python_BNO055/examples$ git diff
diff --git a/examples/simpletest.py b/examples/simpletest.py
index 229267c..c17839d 100644
--- a/examples/simpletest.py
+++ b/examples/simpletest.py
@@ -31,10 +31,10 @@ from Adafruit_BNO055 import BNO055
 # Create and configure the BNO sensor connection.  Make sure only ONE of the
 # below 'bno = ...' lines is uncommented:
 # Raspberry Pi configuration with serial UART and RST connected to GPIO 18:
-bno = BNO055.BNO055(serial_port='/dev/ttyAMA0', rst=18)
+#bno = BNO055.BNO055(serial_port='/dev/ttyAMA0', rst=18)
 # BeagleBone Black configuration with default I2C connection (SCL=P9_19, SDA=P9_20),
 # and RST connected to pin P9_12:
-#bno = BNO055.BNO055(rst='P9_12')
+bno = BNO055.BNO055(rst='P9_12')
It would be helpful if you could run strace so that I can better understand what is happening.

Install strace (if it doesn't already exist):

sudo apt-get install strace

Then run strace, replace test.py with the name of your test program:

sudo strace -f -o strace.log python ./simpletest.py

Paste the contents of strace.log into a GitHub Gist or attach the file to your reply.

User avatar
ebachs10
 
Posts: 4
Joined: Sat Feb 03, 2018 2:43 pm

Re: Error when installing Adafruit BNO055

Post by ebachs10 »

Hi again

Finally weekend again!

1) I've changed simpletest.py so it look like, the attached screen dump:

2) I've executed the progrom with strace. See attached file.

Thanks in advance - it is appriciated! :)
Attachments
straceLog.png
straceLog.png (146.27 KiB) Viewed 832 times
simpletestPyModified.png
simpletestPyModified.png (11.16 KiB) Viewed 832 times

User avatar
drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: Error when installing Adafruit BNO055

Post by drewfustini »

I think that error may be caused by the pin mode not being set to i2c for those pins.

Please try running these commands to set i2c mode on all these pins:

Code: Select all

config-pin p9.17 i2c
config-pin p9.18 i2c
config-pin p9.19 i2c
config-pin p9.20 i2c
config-pin p9.21 i2c
config-pin p9.22 i2c
Also, for the strace log, please attach the file to your reply.

Alternatively, this grep command should produce the output I'm interested:

Code: Select all

sudo strace -o /tmp/strace.log python ./examples/simpletest.py 
grep -A5 /dev/i2c /tmp/strace.log 

Locked
Please be positive and constructive with your questions and comments.

Return to “Beagle Bone & Adafruit Beagle Bone products”