I'm trying the Adafruit_BNO055 with the new Teensy 4.0 using the example sketch:
After checking the connection:
vin -> 3.3v
gnd -> gnd
sda -> pin18
scl -> pin19
I've tried the i2c_scanner sketch with no response:
I'm missing something? Both the bno055 lib and the scanner are using Wire.h, is that correct?
I've also tried i2c_t3 but from the compilation errors I think that teensy 4.0 isnt supported.
Code:
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BNO055.h>
#include <utility/imumaths.h>
Adafruit_BNO055 bno = Adafruit_BNO055(55);
void setup(void)
{
Serial.begin(9600);
Serial.println("Orientation Sensor Test"); Serial.println("");
/* 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);
bno.setExtCrystalUse(true);
}
void loop(void)
{
/* Get a new sensor event */
sensors_event_t event;
bno.getEvent(&event);
/* Display the floating point data */
Serial.print("X: ");
Serial.print(event.orientation.x, 4);
Serial.print("\tY: ");
Serial.print(event.orientation.y, 4);
Serial.print("\tZ: ");
Serial.print(event.orientation.z, 4);
Serial.println("");
delay(100);
}
After checking the connection:
vin -> 3.3v
gnd -> gnd
sda -> pin18
scl -> pin19
I've tried the i2c_scanner sketch with no response:
Scanning...
No I2C devices found
I'm missing something? Both the bno055 lib and the scanner are using Wire.h, is that correct?
I've also tried i2c_t3 but from the compilation errors I think that teensy 4.0 isnt supported.