Due to high demand and inclement weather, expect some shipping delays at this time, orders may not ship for 4-5 business days.
0

Huzzah + BNO055
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Huzzah + BNO055

by rishikanths on Thu Dec 02, 2021 6:20 pm

Hi,

I am using HUZZAH32 - ESP32 Feather with BN0 055 sensor. Based on the documentation, the following is my connection (ESP32 to BNO055)

Connect SCL to SCL
Connect SDA to SDA
Connect USB to VIN
Connect GND to GND

I have the sample examples from (https://github.com/adafruit/Adafruit_BN ... s/position) to test the circuit. However, when I run the program, the program is unable to recognize BNO055 sensor. I see ""Ooops, no BNO055 detected ... Check your wiring or I2C ADDR!""

I have tried the following, but didnt work:

Adafruit_BNO055 bno = Adafruit_BNO055(55, 0x23) and Adafruit_BNO055 bno = Adafruit_BNO055(55)
I have pull-up resistors between SDA connection and SCL connections

Code: Select all | TOGGLE FULL SIZE
uint16_t BNO055_SAMPLERATE_DELAY_MS = 10;
Adafruit_BNO055 bno = Adafruit_BNO055(55,0x23);
BluetoothSerial SerialBT;
void setup() {
  Serial.begin(115200); 
  if (!bno.begin())
  {   
    Serial.print("Ooops, no BNO055 detected ... Check your wiring or I2C ADDR!");
    while (1);
  }
  Serial.println("The sensor is connected and working");
  delay(1000);
}


The interesting thing is the same configuration works with Micropython. When I flush the controller with Micropython and run python code, I will be able to see the data. The following is the python code
Code: Select all | TOGGLE FULL SIZE
import machine
import time
from bno055 import *
i2c = machine.SoftI2C(scl=machine.Pin(22), sda=machine.Pin(23),timeout=2000)
imu = BNO055(i2c)



Any help is appreciated.

rishikanths
 
Posts: 1
Joined: Thu Dec 02, 2021 5:09 pm

Re: Huzzah + BNO055

by mikeysklar on Mon Dec 06, 2021 7:56 pm

Your wiring looks like it needs a change. You are connecting a 5v USB to Vin on the BNO, but you need to keep it all 3v3 or the i2c will not work. Use the 3v pin on the Huzzah which is a 3v out you can run into the BNO.

mikeysklar
 
Posts: 6583
Joined: Mon Aug 01, 2016 8:10 pm

Re: Huzzah + BNO055

by adafruit2 on Tue Dec 07, 2021 1:40 am

espressif recently broke clocks stretching support, theres a fix but its not released yet
https://github.com/espressif/arduino-es ... -985403951

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

Please be positive and constructive with your questions and comments.