Component guide · Intermediate · 4 min read
BNO055 Absolute Orientation Sensor

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The BNO055 from Bosch is a 9-axis sensor with its own processor that does the sensor fusion for you. Instead of raw numbers you read heading, roll and pitch, or a quaternion, over I2C at address 0x28. It suits robots, pointing devices and balancing projects where you want stable angles without writing a filter.
Key specs at a glance
- Sensors
- Accelerometer, gyroscope and magnetometer with an on-chip fusion processor
- Outputs
- Euler angles, quaternion, linear acceleration, gravity vector, raw data
- Fusion rate
- 100 Hz
- Interface
- I2C (0x28, or 0x29 with ADR high) or UART
- Supply
- Chip 2.4 to 3.6 V; most breakouts accept 3.3 to 5 V
- Calibration
- Status 0 to 3 for system, gyro, accelerometer and magnetometer
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1Adafruit BNO055 9-DOF Absolute Orientation IMU Fusion Breakout – STEMMA QT / Qwiic₹4,595
Option 2Bosch BNO055 9-Axis Absolute Orientation Sensor – I2C/UART Interface₹1,439
Option 3DFRobot Fermion BNO055 Intelligent 9-Axis Sensor Breakout – I2C IMU₹1,989
Option 4GY-BNO055 9DOF 9-Axis Sensor Module – I2C/Serial Interface₹1,709
What the BNO055 is
Most motion sensors give raw readings, and turning them into angles needs a fusion filter that is easy to get wrong. The BNO055 has a small ARM Cortex-M0 inside running Bosch's fusion software, so it reports absolute orientation directly.
It calibrates itself in the background while it moves and reports how well calibrated each sensor is. You can save the calibration offsets and load them at start-up, so it is ready without the calibration dance every time.
BNO055 pinout
The pins on the BNO055 and what each one does.
| Pin | Function |
|---|---|
| VIN | Supply, 3.3 to 5 V on breakouts with a regulator |
| 3Vo | 3.3 V output from the breakout's regulator |
| GND | Ground |
| SDA / SCL | I2C data and clock (UART TX and RX in UART mode) |
| RST | Reset, active low |
| INT | Interrupt output |
| ADR | Address select: low 0x28, high 0x29 |
| PS0 / PS1 | Protocol select; both low for I2C |
- VIN
- Supply, 3.3 to 5 V on breakouts with a regulator
- 3Vo
- 3.3 V output from the breakout's regulator
- GND
- Ground
- SDA / SCL
- I2C data and clock (UART TX and RX in UART mode)
- RST
- Reset, active low
- INT
- Interrupt output
- ADR
- Address select: low 0x28, high 0x29
- PS0 / PS1
- Protocol select; both low for I2C
Wiring the BNO055
The BNO055 uses I2C clock stretching. Arduino AVR boards and the ESP32 handle it; the ESP8266 and the Raspberry Pi's hardware I2C can have trouble, so slow the bus down or use UART mode there.
| BNO055 pin | Arduino Uno | ESP32 |
|---|---|---|
| VIN | 5V | 3V3 |
| GND | GND | GND |
| SDA | A4 | GPIO 21 |
| SCL | A5 | GPIO 22 |
| ADR | Open or GND (0x28) | Open or GND (0x28) |
- VIN
- Arduino Uno:
- 5V
- ESP32:
- 3V3
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- SDA
- Arduino Uno:
- A4
- ESP32:
- GPIO 21
- SCL
- Arduino Uno:
- A5
- ESP32:
- GPIO 22
- ADR
- Arduino Uno:
- Open or GND (0x28)
- ESP32:
- Open or GND (0x28)
Example code
Install Adafruit BNO055 and Adafruit Unified Sensor from the Library Manager. Calibration values climb to 3 as you move the sensor.
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BNO055.h>
Adafruit_BNO055 bno = Adafruit_BNO055(55, 0x28);
void setup() {
Serial.begin(115200);
if (!bno.begin()) { Serial.println("No BNO055 found"); while (1); }
bno.setExtCrystalUse(true);
}
void loop() {
sensors_event_t e;
bno.getEvent(&e);
uint8_t sys, gyro, accel, mag;
bno.getCalibration(&sys, &gyro, &accel, &mag);
Serial.print("Heading "); Serial.print(e.orientation.x);
Serial.print(" Roll "); Serial.print(e.orientation.y);
Serial.print(" Pitch "); Serial.print(e.orientation.z);
Serial.print(" Cal S/G/A/M "); Serial.print(sys); Serial.print(gyro); Serial.print(accel); Serial.println(mag);
delay(100);
}Setup and tuning
leave it still for the gyro, tilt it to six different positions for the accelerometer and move it in a figure of eight for the magnetometer.
once all values read 3, read the offsets with getSensorOffsets() and store them in EEPROM; load them at start-up.
NDOF mode uses the compass for absolute heading; IMU mode ignores the compass and gives relative heading, useful near motors.
keep it away from magnets and current-carrying wires.
What you need
Shop this list6 of 7 found in our store · ₹10,170
Adafruit BNO055 9-DOF orientation breakout: the sensor this guide coversAdafruit BNO055 9-DOF Absolute Orientation IMU Fusion Breakout – STEMMA QT / Qwiic₹4,595Closest match, check the specs
Bosch BNO055 9-Axis Absolute Orientation Sensor – I2C/UART Interface: another version this guide coversBosch BNO055 9-Axis Absolute Orientation Sensor – I2C/UART Interface₹1,439
DFRobot Fermion BNO055 Intelligent 9-Axis Sensor Breakout – I2C IMU: another version this guide coversDFRobot Fermion BNO055 Intelligent 9-Axis Sensor Breakout – I2C IMU₹1,989
GY-BNO055 9-axis module: a lower-cost board with the same chipGY-BNO055 9DOF 9-Axis Sensor Module – I2C/Serial Interface₹1,709Closest match, check the specs- Uno R3 development board: the controller used in the wiring tableFind this part
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Alternatives and when to choose them
- BNO085: newer fusion firmware with more report types and better accuracy.
- MPU9250: raw 9-axis data, you write the fusion.
- MPU6050: 6-axis, no compass, for tilt and balance.
- Magnetometers and 9-axis IMUs: compass basics.
Try it: I2c pullup calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Trusting the heading before the magnetometer calibration reaches 3.
- Using it on an ESP8266 or Raspberry Pi I2C bus without fixing clock stretching.
- Mounting it next to a motor in NDOF mode, so the heading jumps.
- Forgetting to save calibration offsets, so it needs calibrating at every power-up.
Frequently asked questions
What does the BNO055 output?
Heading, roll and pitch in degrees, a quaternion, linear acceleration, the gravity vector and the raw sensor values.
What is its I2C address?
0x28 with ADR low (default on most boards) or 0x29 with ADR high.
Does it work with a Raspberry Pi?
Yes, but the Pi's I2C does not handle clock stretching well; use a slower bus or UART mode.
Why does the heading drift or jump?
The magnetometer is not calibrated or there is a magnetic disturbance nearby. Check the calibration status.
Can I use it at 5 V?
Breakouts with a regulator, such as the Adafruit and GY-BNO055 boards, accept 5 V. The chip itself is 3.3 V.
BNO055 or BNO085?
The BNO085 is newer and more accurate; the BNO055 has more tutorials and simpler code.
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
- BNO055 intelligent 9-axis absolute orientation sensor datasheet (Bosch Sensortec)
- Adafruit BNO055 library
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

