Huzzah + BNO055

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.
Locked
User avatar
rishikanths
 
Posts: 1
Joined: Thu Dec 02, 2021 5:09 pm

Huzzah + BNO055

Post by rishikanths »

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

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

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.

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Huzzah + BNO055

Post by mikeysklar »

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.

User avatar
adafruit2
 
Posts: 22111
Joined: Fri Mar 11, 2005 7:36 pm

Re: Huzzah + BNO055

Post by adafruit2 »

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

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

Return to “Feather - Adafruit's lightweight platform”