Coder Social home page Coder Social logo

rland93 / bmi088 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tstellanova/bmi088

0.0 0.0 0.0 17 KB

Rust embedded hal driver for the Bosch Sensortec BMI088 6DOF IMU (accelerometer + gyroscope)

License: BSD 3-Clause "New" or "Revised" License

Rust 100.00%

bmi088's Introduction

bmi088

A rust embedded-hal driver for the Bosch Sensortec BMI088 6DOF integrated accelerometer and gyroscope (IMU).

The BMI088 combines the functionality of two inertial sensors into one device: a triaxial 16-bit gyroscope and a triaxial 16-bit accelerometer.

Status

  • Basic SPI support
  • Support for probe (check product identifier)
  • Split into separate gyro and accel interfaces (separate eg CSN lines)
  • blocking read of gyro data
  • blocking read of accel data
  • configure FIFO
  • Support for data ready (DRDY) pins
  • Support for interrupt pins
  • Support for DMA with SPI
  • Basic I2C support
  • Tests with mock embedded hal
  • Usage example with cortex-m hal
  • Doc comments
  • CI
  • Support for user recalibration

Possible Example

Likely to change:

    let mut bmi088_a = bmi088::Builder::new_accel_spi(spi_bus1.acquire(), spi1_cs_bmi088_accel);
    bmi088_a.setup(&mut delay_source).unwrap();

    let mut bmi088_g = bmi088::Builder::new_gyro_spi(spi_bus1.acquire(), spi1_cs_bmi088_gyro);
    if bmi088_g.setup(&mut delay_source);

    if let Ok(gyro_sample) = bmi088_g.get_gyro() {
        hprintln!("bmi088_g: {:?}", gyro_sample));
    }

    if let Ok(accel_sample) = bmi088_a.get_accel() {
        hprintln!("bmi088_a: {:?}", accel_sample));
    }

bmi088's People

Contributors

tstellanova avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.