Component guide · Intermediate · 4 min read
BMI323 6-Axis IMU

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The Bosch BMI323 is a low-power 6-axis IMU with a 16-bit accelerometer (up to ±16 g) and gyroscope (up to ±2000 °/s) on I2C or SPI. It has built-in step counting, tap, tilt and any-motion detection that can wake a sleeping microcontroller. DFRobot boards also combine it with the BMM350 magnetometer (9DOF) and BMP581 barometer (10DOF).
Key specs at a glance
- Sensors
- 3-axis accelerometer and 3-axis gyroscope, 16-bit
- Ranges
- ±2 to ±16 g; ±125 to ±2000 °/s
- Data rate
- Up to 6.4 kHz
- Interface
- I2C (0x68 or 0x69) or SPI; I3C
- Supply
- 1.71 to 3.6 V (modules 3.3 to 5 V)
- Features
- Step counter, tap, tilt, any/no-motion, orientation
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1DFRobot Fermion BMI323 6DOF IMU Sensor (I2C, Breakout)₹1,043
Option 2DFRobot Gravity BMI323 6DOF IMU Sensor Module – I2C/UART, Plug & Play₹1,819
Option 3Bosch BMI323 6-Axis IMU Sensor, ±16g Accelerometer + ±2000 dps Gyroscope, 16-bit, 6.4kHz ODR, I²C/SPI/I3C, LGA-14₹729
Option 4601N1-BMI323 6-Axis Gyroscope Sensor Module – I2C/SPI/UART Interface₹569
Option 5DFRobot Fermion BMI323+BMM350 9DOF IMU Sensor (I2C, Breakout) – Bosch IMU & Magnetometer Module₹2,469
Option 6DFRobot Gravity BMI323+BMM350 9DOF IMU Sensor Module (I2C/UART, Plug & Play)₹2,297
What the BMI323 IMU is
The BMI323 is a modern replacement for the MPU6050 class of sensors: lower noise, lower power, and features computed in the sensor itself. Using the any-motion interrupt, a battery device can sleep until it is moved.
It outputs raw motion data; for a stable heading or orientation you combine the gyro and accelerometer in a filter such as Madgwick, or add a magnetometer on the 9DOF board.
BMI323 IMU pinout
The pins on the BMI323 IMU and what each one does.
| Pin | Function |
|---|---|
| VCC | Supply (3.3 or 5 V on modules) |
| GND | Ground |
| SDA / SCL | I2C data and clock |
| SDO | I2C address select (0x68 or 0x69) or SPI data out |
| CS | SPI chip select (high for I2C) |
| INT1 / INT2 | Interrupt outputs for motion, tap and data-ready |
- VCC
- Supply (3.3 or 5 V on modules)
- GND
- Ground
- SDA / SCL
- I2C data and clock
- SDO
- I2C address select (0x68 or 0x69) or SPI data out
- CS
- SPI chip select (high for I2C)
- INT1 / INT2
- Interrupt outputs for motion, tap and data-ready
Wiring the BMI323 IMU
Most breakouts have pull-up resistors and a regulator, so they run from 3.3 V or 5 V. Bare sensor ICs are 3.3 V (or 1.8 V) only: solder them to a breakout first and use a level shifter with 5 V boards. Gravity boards also offer a UART mode; set the switch on the board to I2C for this code.
| BMI323 IMU pin | Arduino Uno | ESP32 |
|---|---|---|
| VCC | 5V (or 3.3V) | 3V3 |
| GND | GND | GND |
| SDA | A4 | GPIO 21 |
| SCL | A5 | GPIO 22 |
- VCC
- Arduino Uno:
- 5V (or 3.3V)
- ESP32:
- 3V3
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- SDA
- Arduino Uno:
- A4
- ESP32:
- GPIO 21
- SCL
- Arduino Uno:
- A5
- ESP32:
- GPIO 22
Example code
Check your board's address with an I2C scanner (0x68 or 0x69). Function names follow the DFRobot library; the Bosch BMI323 SensorAPI works on any board.
#include <DFRobot_BMI323.h>
DFRobot_BMI323 imu(&Wire, 0x69);
void setup() {
Serial.begin(115200);
while (!imu.begin()) { Serial.println("BMI323 not found"); delay(1000); }
imu.configAccel(imu.eAccelODR100Hz, imu.eAccelRange4G);
imu.configGyro(imu.eGyroODR100Hz, imu.eGyroRange500DPS);
}
void loop() {
sBmiSensorData_t a, g;
imu.getAccelGyroData(&a, &g);
Serial.printf("acc g: %.2f %.2f %.2f gyro dps: %.1f %.1f %.1f\n", a.x, a.y, a.z, g.x, g.y, g.z);
delay(100);
}Setup and tuning
±4 g and ±500 °/s suit robots and handheld devices; raise them for impacts or fast spins.
keep it still at start-up and average the gyro to find its offset.
fix the board firmly; loose mounting adds vibration noise.
route INT1 to an RTC pin on the ESP32 to wake from deep sleep.
What you need
Shop this list11 of 12 found in our store · ₹15,493
DFRobot Fermion BMI323 6DOF IMU Sensor (I2C, Breakout): the part this guide coversDFRobot Fermion BMI323 6DOF IMU Sensor (I2C, Breakout)₹1,043
DFRobot Gravity BMI323 6DOF IMU Sensor Module – I2C/UART, Plug & Play: another version this guide coversDFRobot Gravity BMI323 6DOF IMU Sensor Module – I2C/UART, Plug & Play₹1,819
Bosch BMI323 6-Axis IMU Sensor, ±16g Accelerometer + ±2000 dps Gyroscope, 16-bit, 6.4kHz ODR, I²C/SPI/I3C, LGA-14: another version this guide coversBosch BMI323 6-Axis IMU Sensor, ±16g Accelerometer + ±2000 dps Gyroscope, 16-bit, 6.4kHz ODR, I²C/SPI/I3C, LGA-14₹729
Generic 601N1-BMI323 6-Axis Gyroscope Sensor Module – I2C/SPI/UART Interface: another version this guide covers601N1-BMI323 6-Axis Gyroscope Sensor Module – I2C/SPI/UART Interface₹569
DFRobot Fermion BMI323+BMM350 9DOF IMU Sensor (I2C, Breakout) – Bosch IMU & Magnetometer Module: another version this guide coversDFRobot Fermion BMI323+BMM350 9DOF IMU Sensor (I2C, Breakout) – Bosch IMU & Magnetometer Module₹2,469
DFRobot Gravity BMI323+BMM350 9DOF IMU Sensor Module (I2C/UART, Plug & Play): another version this guide coversDFRobot Gravity BMI323+BMM350 9DOF IMU Sensor Module (I2C/UART, Plug & Play)₹2,297
DFRobot Fermion BMI323+BMM350+BMP581 10DOF IMU Sensor Breakout Module – I2C Interface: another version this guide coversDFRobot Fermion BMI323+BMM350+BMP581 10DOF IMU Sensor Breakout Module – I2C Interface₹2,469
DFRobot Gravity BMI323+BMM350+BMP581 10DOF IMU Sensor Module – I2C/UART Plug & Play: another version this guide coversDFRobot Gravity BMI323+BMM350+BMP581 10DOF IMU Sensor Module – I2C/UART Plug & Play₹3,521
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389- Uno R3 development board: the controller used in the wiring tableFind this part
0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Alternatives and when to choose them
- MPU6050: cheap and widely used, higher noise and power.
- LSM6DSO IMU: ST's low-power 6-axis IMU with machine-learning core.
- BNO085 IMU: gives ready-made orientation without your own filter.
Try it: I2c pullup calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Using MPU6050 code with a BMI323.
- Leaving the Gravity board's mode switch on UART while using I2C.
- Skipping gyro offset calibration.
- Expecting a stable heading from a 6-axis IMU alone.
Frequently asked questions
BMI323 or MPU6050?
BMI323 for lower noise and power and built-in motion features; MPU6050 for the most tutorials.
What is the I2C address?
0x68 or 0x69, set by the SDO pin.
Does it give orientation angles?
It gives raw data; use a fusion filter, or a BNO085 for ready-made angles.
What are the 9DOF and 10DOF boards?
They add the BMM350 magnetometer and BMP581 barometer to the BMI323.
Does it work at 3.3 V?
Yes; modules also accept 5 V.
Parts for this guide
Calculators
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.

