The Adafruit BNO085 9-DOF Orientation IMU Fusion is a sophisticated sensor module that integrates three key sensors: an accelerometer, a gyroscope, and a magnetometer. This combination allows for precise tracking of orientation and motion. The BNO085 uses advanced sensor fusion algorithms to deliver highly accurate measurements, making it ideal for applications in robotics, navigation, human-machine interface, and augmented reality.
Pin Number | Name | Description |
---|---|---|
1 | VIN | Supply voltage (1.65V to 3.6V) |
2 | GND | Ground |
3 | SCL | I2C clock line / SPI clock line |
4 | SDA | I2C data line / SPI data line (MOSI) |
5 | SDO | SPI data line (MISO) |
6 | CS | SPI chip select (active low) |
7 | INT | Interrupt output (active low) |
8 | RST | Reset input (active low) |
#include <Wire.h>
#include <Adafruit_BNO08x.h>
Adafruit_BNO08x bno08x = Adafruit_BNO08x();
void setup() {
Serial.begin(115200);
if (!bno08x.begin_I2C()) { // Start the sensor using I2C
Serial.println("Failed to find BNO08x chip");
while (1) { delay(10); }
}
Serial.println("BNO08x Found!");
}
void loop() {
// Read the sensor
if (bno08x.getEvent()) {
Serial.print("Orientation: ");
Serial.print(bno08x.roll);
Serial.print(" Pitch: ");
Serial.print(bno08x.pitch);
Serial.print(" Yaw: ");
Serial.println(bno08x.yaw);
}
delay(100);
}
Wire
library's setClock()
function to adjust the I2C clock speed if necessary.Q: Can the BNO085 run on 5V systems like the Arduino UNO? A: The BNO085 requires a voltage between 1.65V and 3.6V. Use a level shifter or voltage regulator when interfacing with 5V systems.
Q: How do I calibrate the BNO085? A: Follow the calibration procedure outlined in the datasheet, which typically involves moving the sensor through various orientations.
Q: What is the difference between BNO085 and its predecessors like BNO055? A: The BNO085 offers improved sensor fusion algorithms and a higher output data rate, among other enhancements.
Remember to refer to the official Adafruit BNO085 datasheet and the Adafruit Sensor Calibration guide for more detailed information.