Component guide · Advanced · 3 min read
BNO085 IMU Module

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The BNO085 is a 9-axis motion sensor with built-in fusion firmware (SH-2) that outputs rotation vectors (quaternions), step counts, tap and activity reports. Connect it over I2C (address 0x4A), SPI or UART and ask for the reports you need. It is a strong choice for robots, head tracking and wearables that need accurate, drift-free orientation.
Key specs at a glance
- Sensors
- Accelerometer, gyroscope, magnetometer with an ARM Cortex-M0 running SH-2 fusion firmware
- Reports
- Rotation vector, game rotation vector, geomagnetic rotation, linear acceleration, gravity, step counter, tap, stability
- Interfaces
- I2C (0x4A, or 0x4B), SPI, UART and UART-RVC
- Supply
- 2.4 to 3.6 V; check whether your module has a regulator
- Report rate
- Up to about 400 Hz for rotation vectors
What the BNO085 is
The BNO085 uses the same Bosch sensor die family as the BNO055 but runs fusion firmware from CEVA (Hillcrest Labs). You enable only the reports you want and the chip sends them at the rate you ask for.
The game rotation vector uses only accelerometer and gyro, so it is smooth and unaffected by magnets but its heading is relative. The rotation vector adds the magnetometer for an absolute heading. UART-RVC mode streams heading, pitch and roll as simple serial packets without any library, handy for robot vacuums and simple controllers.
BNO085 pinout
The pins on the BNO085 and what each one does.
| Pin | Function |
|---|---|
| VIN / VCC | Supply (3.3 V; 5 V only if the module has a regulator) |
| GND | Ground |
| SDA / SCL | I2C data and clock |
| INT | Interrupt: goes low when a report is ready |
| RST | Reset, active low |
| PS0 / PS1 | Interface select: both low for I2C |
| DI / SDA, SCL / SCK, SDO | SPI pins when SPI mode is selected |
| CS | SPI chip select |
- VIN / VCC
- Supply (3.3 V; 5 V only if the module has a regulator)
- GND
- Ground
- SDA / SCL
- I2C data and clock
- INT
- Interrupt: goes low when a report is ready
- RST
- Reset, active low
- PS0 / PS1
- Interface select: both low for I2C
- DI / SDA, SCL / SCK, SDO
- SPI pins when SPI mode is selected
- CS
- SPI chip select
Wiring the BNO085
The BNO085 is a 3.3 V part. With an Uno, use a module with a regulator and level shifting, or put a level shifter on SDA and SCL. An ESP32 or a 3.3 V Arduino connects directly.
| BNO085 pin | Arduino Uno | ESP32 |
|---|---|---|
| VIN | 3.3V (or 5V with regulator) | 3V3 |
| GND | GND | GND |
| SDA | A4 (via level shifter if no regulator) | GPIO 21 |
| SCL | A5 | GPIO 22 |
| INT | D2 (optional) | GPIO 4 (optional) |
| RST | D5 (optional) | GPIO 5 (optional) |
- VIN
- Arduino Uno:
- 3.3V (or 5V with regulator)
- ESP32:
- 3V3
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- SDA
- Arduino Uno:
- A4 (via level shifter if no regulator)
- ESP32:
- GPIO 21
- SCL
- Arduino Uno:
- A5
- ESP32:
- GPIO 22
- INT
- Arduino Uno:
- D2 (optional)
- ESP32:
- GPIO 4 (optional)
- RST
- Arduino Uno:
- D5 (optional)
- ESP32:
- GPIO 5 (optional)
Example code
The four numbers are a quaternion (real, i, j, k). Convert to yaw, pitch and roll with the standard quaternion-to-Euler formulas if you need angles.
#include <Adafruit_BNO08x.h>
Adafruit_BNO08x bno08x(-1); // no reset pin
sh2_SensorValue_t v;
void setup() {
Serial.begin(115200);
if (!bno08x.begin_I2C()) { Serial.println("No BNO08x found"); while (1); }
bno08x.enableReport(SH2_GAME_ROTATION_VECTOR, 10000); // every 10 ms
}
void loop() {
if (bno08x.wasReset()) bno08x.enableReport(SH2_GAME_ROTATION_VECTOR, 10000);
if (!bno08x.getSensorEvent(&v)) return;
if (v.sensorId == SH2_GAME_ROTATION_VECTOR) {
Serial.print(v.un.gameRotationVector.real); Serial.print(" ");
Serial.print(v.un.gameRotationVector.i); Serial.print(" ");
Serial.print(v.un.gameRotationVector.j); Serial.print(" ");
Serial.println(v.un.gameRotationVector.k);
}
}Setup and tuning
the chip resets itself if it detects a fault; check wasReset() and enable your reports again.
use 400 kHz and keep wires short; the BNO085 sends large packets.
dynamic calibration runs automatically; save it with the calibration command when it is good.
use the game rotation vector near motors and magnets.
What you need
Shop this list4 of 5 found in our store · ₹526
- BNO085 IMU sensor module: the sensor this guide coversFind this part
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
4-channel logic level converter (BSS138): to connect 5 V and 3.3 V signals safely4-Channel Logic Level Converter (BSS138)₹20
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Solderless breadboard: to build without solderingSolderless Breadboard₹68
Alternatives and when to choose them
Try it: I2c pullup calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Powering a bare 3.3 V module from 5 V or driving it with 5 V logic.
- Not re-enabling reports after the sensor resets, so data stops.
- Using the rotation vector next to motors instead of the game rotation vector.
- Long, slow I2C wires that corrupt the large SH-2 packets.
Frequently asked questions
What is the BNO085's I2C address?
0x4A by default, 0x4B with the address pin pulled high.
Does it work with Arduino Uno?
Yes with level shifting, but its memory is tight; an ESP32 or a 32-bit Arduino is easier.
What is UART-RVC mode?
A mode where the chip streams heading, pitch, roll and acceleration over serial at 100 Hz without any configuration.
BNO085 or BNO080?
They are compatible; the BNO085 is the current version of the same design.
Why do I get quaternions, not angles?
Quaternions avoid gimbal lock. Convert them to Euler angles in code when you need degrees.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.
