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);
}
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.