3 releases

0.1.2 Sep 10, 2025
0.1.1 Sep 10, 2025
0.1.0 Sep 10, 2025

#1067 in Embedded development

MIT/Apache and maybe AGPL-3.0-only

13KB
185 lines

BMI160 ESP32 Driver

A no_std driver for the BMI160 6-axis IMU sensor for ESP32 microcontrollers.


BMI160 on ESP32 – Super Simple Driver

Crates.io
Docs

This is a lightweight driver for the BMI160 6-axis IMU (accelerometer + gyro) on the ESP32.
Built with esp-hal, no useless extras.

Features

  • Only the essentials, no random dependencies
  • Works with no_std (good for embedded projects)
  • Reads accelerometer and gyroscope data
  • Uses I2C for communication
  • Converts raw values into g-force and deg/sec
  • Handles errors with proper Result types
  • Optional defmt logging if you need it

Usage

Add this to your Cargo.toml:

bmi160-esp32-minimal = "x.x.x"

Dependencies

~16–24MB
~477K SLoC