ESP32 Feather V2 + BNO055 Stemma QT not working

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
somethingz
 
Posts: 9
Joined: Fri Nov 04, 2022 9:38 am

Re: ESP32 Feather V2 + BNO055 Stemma QT not working

Post by somethingz »

I can confirm that the delay before bno.begin() worked.

Code: Select all

void setup(void)
{
  Serial.begin(115200);
  Serial.println("Orientation Sensor Test"); Serial.println("");
  delay(800);
  /* Initialise the sensor */
  if (!bno.begin())
  {
    /* There was a problem detecting the BNO055 ... check your connections */
    Serial.print("Ooops, no BNO055 detected ... Check your wiring or I2C ADDR!");
    while (1);
  }

  delay(1000);
}

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: ESP32 Feather V2 + BNO055 Stemma QT not working

Post by adafruit_support_carter »

Library has been updated to better handle the initial power timing. This seems to fix this issue. Please update to the 1.6.1 release when it becomes available via the Arduino Library Manager:
https://github.com/adafruit/Adafruit_BN ... /tag/1.6.1

User avatar
gammaburst
 
Posts: 1013
Joined: Thu Dec 31, 2015 12:06 pm

Re: ESP32 Feather V2 + BNO055 Stemma QT not working

Post by gammaburst »

Nope. Using the 1.6.1 zip file from github, somethingz's sketch no longer complains "Ooops, no BNO055 detected ...", but instead the sketch's output is usually all-zeros. Each time I press the Feather's "reset" button, there's about a 90% chance the output is all-zeros, and a 10% chance the output is good. This smells like failure to clear the I2C bus after restart, although I'm not certain. I'm too busy right now with other priorities.

I reinserted the "delay(800);" into "setup()", and now the "reset" button works reliably with the 1.6.1 zip file.

It's been about six years, but I vaguely recall that attempting to poll the BNO055 to detect when it's done booting was unreliable. Maybe there's a way but I didn't find it.

My BNO055 startup procedure (described in words rather than code):
viewtopic.php?f=25&t=108290&p=541754#p541754

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: ESP32 Feather V2 + BNO055 Stemma QT not working

Post by adafruit_support_carter »

Make sure all libraries and board support packages are up to date. Make sure there aren't dupe libraries masking which one is being used. Suggest using Arduino's Library Manager instead of zip file.

Running @somethingz's test sketch from post above on a Feather ESP32 V2 using the 1.6.1 library, get this in Serial Monitor:

Code: Select all

15:09:08.772 -> Orientation Sensor Test
15:09:08.772 -> 
15:09:10.571 -> Orient:	x= 359.94 |	y= -2.44 |	z= -4.62
15:09:10.571 -> Gyro:	x= 0.00 |	y= 0.00 |	z= -0.00
15:09:10.571 -> Linear:	x= 0.01 |	y= -0.03 |	z= -0.26
15:09:10.571 -> Mag:	x= 3.69 |	y= 26.75 |	z= -47.69
15:09:10.571 -> Accl:	x= -0.40 |	y= 0.75 |	z= 9.50
15:09:10.571 -> Gravity:	x= -0.41 |	y= 0.79 |	z= 9.76
15:09:10.603 -> 
15:09:10.603 -> temperature: 27
15:09:10.603 -> 
15:09:10.603 -> Calibration: Sys=2 Gyro=3 Accel=0 Mag=0
15:09:10.603 -> --
15:09:10.699 -> Orient:	x= 359.94 |	y= -2.44 |	z= -4.62
15:09:10.699 -> Gyro:	x= 0.00 |	y= -0.00 |	z= -0.00
15:09:10.699 -> Linear:	x= 0.01 |	y= -0.06 |	z= -0.24
15:09:10.699 -> Mag:	x= 3.25 |	y= 26.75 |	z= -47.25
15:09:10.731 -> Accl:	x= -0.40 |	y= 0.72 |	z= 9.51
15:09:10.731 -> Gravity:	x= -0.41 |	y= 0.79 |	z= 9.76
15:09:10.731 -> 
15:09:10.731 -> temperature: 27
with generally OK values being shown with every read forever.

User avatar
gammaburst
 
Posts: 1013
Joined: Thu Dec 31, 2015 12:06 pm

Re: ESP32 Feather V2 + BNO055 Stemma QT not working

Post by gammaburst »

Nope, sorry. With 1.6.1 I have to press "reset" several times to get one run with good data instead of zeros.
When mine runs correctly, its output resembles your sample output (without the timestamps).
All my libraries and boards were already updated via Library Manager and Board Manager.
I used the ZIP file because 1.6.1 was not offered by Library Manager, and I didn't know how long to wait.
Library Manager now shows 1.6.1, so I reverted to an old one, then to 1.6.1, but same behavior as ZIP 1.6.1.
I'm using somethingz's original sketch, except I changed I2C address to 0x28.
In Arduino IDE I'm selecting board "Adafruit Feather ESP32 V2".

Do I need to try updating anything on my ESP32 V2 board? I see "ets Jul 29 2019 12:21:46" when it starts.

We'll see if somethingz has better luck with 1.6.1.

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: ESP32 Feather V2 + BNO055 Stemma QT not working

Post by adafruit_support_carter »

@wirelesswarrior Please let us know if this library update resolves your issue. You were the original poster for this issue thread.

User avatar
somethingz
 
Posts: 9
Joined: Fri Nov 04, 2022 9:38 am

Re: ESP32 Feather V2 + BNO055 Stemma QT not working

Post by somethingz »

The update seems to work in my end!

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

Return to “Feather - Adafruit's lightweight platform”