Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

bno055 changing from old to new library
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

bno055 changing from old to new library

by Robin_Koek on Fri Apr 30, 2021 1:36 pm

Hi,

I've the following situation, I used to read a bno055 sensor based on this tutorial and this library on a Raspberry 4 Model B reading over UART. This used to work rather flawless but for reasons unknown to me the Python script declares errors currently and refuses to run (it's an adaptation of the simpletest.py script).

As I learned this week on github this is all deprecated now so I figured giving it a try based on the new 'Adafruit_CircuitPython_BNO055' code in conjunction with this tutorial

This brings me to my question as I still have the previous module installed, what would be the best way to remove this so that it does not create any conflicts within Python when installing this new library? Could somebody help me with the correct lines for the terminal to locate the previous bno055 library and clean it up before commencing with this new approach? Thanks a lot!

Also just a side-question, I noticed in both the wiring and the code the RST pin is not included anymore in the new CircuitPython_BNO055 set-up and I was wondering if does not create any errors in the (self-)calibration of the sensor or other pitfalls?

Thanks!
Robin

Robin_Koek
 
Posts: 2
Joined: Fri Apr 30, 2021 1:21 pm

Re: bno055 changing from old to new library

by Robin_Koek on Wed May 05, 2021 1:20 pm

It would be great to get a reply.

Kindly appreciated,
Robin

Robin_Koek
 
Posts: 2
Joined: Fri Apr 30, 2021 1:21 pm

Re: bno055 changing from old to new library

by tannewt on Wed May 05, 2021 6:43 pm

What exact code are you running and what is the full error message you are getting?

tannewt
 
Posts: 2393
Joined: Thu Oct 06, 2016 8:48 pm

Re: bno055 changing from old to new library

by danhalbert on Wed May 05, 2021 7:43 pm

To uninstall the old library, do `pip3 uninstall Adafruit-BNO055` or `sudo pip3 uninstall Adafruit-BNO055` if you installed it with `sudo pip3`.

danhalbert
 
Posts: 2379
Joined: Tue Aug 08, 2017 12:37 pm

Please be positive and constructive with your questions and comments.