0

BNO055 does not run on Raspberry Pi4
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: BNO055 does not run on Raspberry Pi4

by adafruit2 on Fri Nov 27, 2020 12:20 pm

do you have any other header wires? also check that nothing is connected to the PS lines

adafruit2
Site Admin
 
Posts: 20200
Joined: Fri Mar 11, 2005 7:36 pm

Re: BNO055 does not run on Raspberry Pi4

by klaushaas on Fri Nov 27, 2020 12:30 pm

No - these are my last wires now unfortunately (however, a few days ago I tried different ones but I can't use them anymore). I only have male ones left...

The PS's are disconnected (there is only one wire fixed on the sensor, without connections on the other end).

I think maybe I kind of damaged the sensor when I soldered it again recently...? I have soldered it a few times because I used it on different applications, and the pin holes already have brown-ish arey around the ring, and the plastics around is also slightly burned...

However, the thing that confuses me is that it still works on the RPi 3 B+!

EDIT: Found some old female jumper wires. Tried them. Did not work.
Last edited by klaushaas on Fri Nov 27, 2020 12:42 pm, edited 1 time in total.

klaushaas
 
Posts: 17
Joined: Wed Nov 25, 2020 1:06 pm

Re: BNO055 does not run on Raspberry Pi4

by klaushaas on Fri Nov 27, 2020 12:41 pm

Now I also tried to connect the sensor via ttyUSB0 (USB to serial adapter). I also get this error:
Attachments
Capture.JPG
Capture.JPG (77.56 KiB) Viewed 72 times

klaushaas
 
Posts: 17
Joined: Wed Nov 25, 2020 1:06 pm

Re: BNO055 does not run on Raspberry Pi4

by adafruit2 on Fri Nov 27, 2020 12:42 pm

im a bit mystified, it shoudl work just the same on the pi 4 - but uart mode is really untested. tbh we recommend getting another BNO sensor in case this one is borked :/ some more wires too!

adafruit2
Site Admin
 
Posts: 20200
Joined: Fri Mar 11, 2005 7:36 pm

Re: BNO055 does not run on Raspberry Pi4

by klaushaas on Fri Nov 27, 2020 12:52 pm

Found some old female2female wires. Did not work either.

I now tried to run the sensor in an infinite TRY loop with error handler. This manages to read the sensor values for me in a loop and every few seconds it interrupts with UART Read Error 7 and then starts again.

I can also clearly see, that the loop time varies strongly (some loops need much more time).

What does this error code actually mean? Did not find any information about it.
Code: Select all | TOGGLE FULL SIZE
import time
import serial
import board
import busio
import adafruit_bno055


#i2c = busio.I2C(board.SCL, board.SDA)
#bno = adafruit_bno055.BNO055_I2C(i2c)


uart = serial.Serial("/dev/ttyUSB0", 115200, timeout=5,writeTimeout=5) #I just added the additional arguments 2-4 -> no changes
bno = adafruit_bno055.BNO055_UART(uart)
time.sleep(5)
heading,roll,pitch=bno.euler
print(bno)
print(uart)


while 1:
   
    try:
        for i in range(0,10000):
   
            heading,roll,pitch=bno.euler
            print(roll,pitch)
            time.sleep(0.001)
   
             
      
        break
    except Exception as e:
       print("Got error: {}".format(e))
      
       time.sleep(0.01)

klaushaas
 
Posts: 17
Joined: Wed Nov 25, 2020 1:06 pm

Re: BNO055 does not run on Raspberry Pi4

by adafruit2 on Fri Nov 27, 2020 12:55 pm

it means data didnt come across right or wasnt parsed right - we havent tested BNO055 uart very much, im surprised it works at all

adafruit2
Site Admin
 
Posts: 20200
Joined: Fri Mar 11, 2005 7:36 pm

Re: BNO055 does not run on Raspberry Pi4

by klaushaas on Fri Nov 27, 2020 1:06 pm

UART has always worked fine on the RPi 3 (only used this interface).

However, seems like I need to buy a new one....

klaushaas
 
Posts: 17
Joined: Wed Nov 25, 2020 1:06 pm

Re: BNO055 does not run on Raspberry Pi4

by klaushaas on Sat Nov 28, 2020 8:53 am

I figured out, there is some kind of glue-like stuff coming out of this module on the sensor (probably has been like that for a while already). Is it supposed to be like that? Did it maybe overheat some time?

https://www.dropbox.com/s/fhhy2txrgby27ya/IMG_20201128_134715__01.jpg?dl=0

https://www.dropbox.com/s/4orz8xxh4yoepfb/IMG_20201128_134954.jpg?dl=0

klaushaas
 
Posts: 17
Joined: Wed Nov 25, 2020 1:06 pm

Re: BNO055 does not run on Raspberry Pi4

by jps2000 on Sat Nov 28, 2020 9:19 am

looks like your cat has pied on your board

jps2000
 
Posts: 659
Joined: Fri Jun 02, 2017 4:12 pm

Re: BNO055 does not run on Raspberry Pi4

by klaushaas on Sat Nov 28, 2020 9:47 am

The sensor has been used outdoors once in a while for 6 months, thus it might have become dusty. The sauce which is coming out of the black chip is definitely coming from inside though.

klaushaas
 
Posts: 17
Joined: Wed Nov 25, 2020 1:06 pm

Re: BNO055 does not run on Raspberry Pi4

by jps2000 on Sat Nov 28, 2020 9:57 am

definitely not. this is the xtal. It can not heat up.
You can try to soak the board in isopropanol and then dry it thoroughly but this may or may not help permanently
The problem is the BNO package. The pins are below the housing and are very narrow. In case there is moisture or salty = conductive fluid underneath , it is almost impossible to get this clean.
It caused me some weeks of trouble with home made boards of BNO080 when I used flux to solder the chip. This could not be washed away and caused oscillation problem of the external xtal.
So I suggest to replace the board to safe your time and nerves

jps2000
 
Posts: 659
Joined: Fri Jun 02, 2017 4:12 pm

Re: BNO055 does not run on Raspberry Pi4

by gammaburst on Sat Nov 28, 2020 8:44 pm

Yes, buy a cheap bottle of isopropyl alcohol from your local drug/convenience store. Use a small bowl/dish, submerge the breakout and scrub with toothbrush. The board should look clean, like new. Wait until thoroughly dry before testing it. However, if there's contamination under the BNO055 chip as jps2000 described, or if the breakout has been powered-up while wet, a simple alcohol bath may not help.

If you have an Arduino Uno or similar microcontroller, try testing the BNO055 with Adafruit's tutorial and simple sketch. Less chance of complications than with a RasPi.

If you have a multimeter and know how to use it, try measuring the current going into the BNO055 breakout's Vin pin. With only Vin and GND connected to the breakout, I measure about 9.2 mA. When fully connected to an Arduino and running NDOF mode, I measure about 12.5 mA. If you measure significantly different current, I would suspect malfunction.

gammaburst
 
Posts: 590
Joined: Thu Dec 31, 2015 12:06 pm

Re: BNO055 does not run on Raspberry Pi4

by klaushaas on Fri Dec 04, 2020 4:36 am

Hi guys

I fixed the problem.

How?

I bought a new sensor - it works now via i2c. The old one was broken.

I clockstretched the i2c baudrate in config.txt to 20.000. I want the sensor to read as fast as possible - but still accurate though.
Does anyone know how far I can go with the baudrate until it becomes inaccurate? Basically I could just try it out - but Iam not sure If I immediately realize if measurements become unprecise...

klaushaas
 
Posts: 17
Joined: Wed Nov 25, 2020 1:06 pm

Re: BNO055 does not run on Raspberry Pi4

by klaushaas on Fri Dec 04, 2020 12:32 pm

klaushaas wrote:Hi guys

I fixed the problem.

How?

I bought a new sensor - it works now via i2c. The old one was broken.

I clockstretched the i2c baudrate in config.txt to 20.000. I want the sensor to read as fast as possible - but still accurate though.
Does anyone know how far I can go with the baudrate until it becomes inaccurate? Basically I could just try it out - but Iam not sure If I immediately realize if measurements become unprecise...


I found the hint "the crystal can be connected to an internal or external clock with 32kHz..." in the datasheet of the Adafruit BNO055.
Thus - I tuned the baudrate of the I2C in boot.txt to 30kHz (to stay slightly slower). Seems fine.

klaushaas
 
Posts: 17
Joined: Wed Nov 25, 2020 1:06 pm

Please be positive and constructive with your questions and comments.