Skip to main content

Grove - 6-Axis Accelerometer&Gyroscope(BMI088)

pir

The Grove - 6-Axis Accelerometer&Gyroscope(BMI088) is a 6 DoF(degrees of freedom) High-performance Inertial Measurement Unit(IMU) .This sensor is based on BOSCH BMI088, which is a high-performance IMU with high vibration suppression. The 6-axis sensor combines a 16 bit triaxial gyroscope and a 16 bit triaxial accelerometer. Specialy, you can use this sensor on the drone and robotics application in demanding environments.

pir

Features

  • The BM1088 is designed for drones, robotics and industry applications with challenging performance requirements.
  • Wide acceleration measurment range(up to 24g)
  • The accelerometer features a low TCO of 0.2 mg/K and low spectral noise of only 230 pg/sqrt(Hz) in the widest measurement range of ± 24 g

Specification

ItemValue
Operating Voltage3.3V / 5V
Measurement range and sensitivityAccelerometer : ±3g @10920 LSB/g / ±6g @5460 LSB/g / ±12g @2730 LSB/g / ±24g @1365 LSB/g / Gyroscope : ±125°/s @262.1 LSB/°/s / ±250°/s @131.1 LSB/°/s / ±500°/s @65.5 LSB/°/s / ±1000°/s @32.8 LSB/°/s / ±2000°/s @16.4 LSB/°/s
Operating Temperature Range-40℃ ~ +85℃
Zero OffsetAccelerometer : ±30 mg Gyroscope: ±1°/s
TCOAccelerometer :±0.2 mg/K Gyroscope: ±0.015°/s/K
External interfaceI^2^C
I^2^C AddressAccelerometer: 0x19 (default) \ 0x18(optional) Gyroscope: ±1°/s0x69(default) \ 0x68(optional)

Typical Applications

  • Drones and flying toys
  • Industrial robots, hover boards
  • Domestic applications(e.g. vacuum cleaner, social robots,etc.)

Hardware Overview

Pin Out

pir

pir

Schemaitc

Power

pir

The operating voltage range of BMI088 is 2.4-3.6V, so we use the XC6206P30 chip to provide a stable 3.0V. The input of XC6206P30 ranges from 1.8V to 6.0V, so you can use this module with your Arduino both in 3.3V and 5V.

Bi-directional level shifter circuit

pir

This is a typical Bi-directional level shifter circuit to connect two different voltage section of an I^2^C bus. The I2C bus of this sensor use 3.3V, if the I2C bus of the Arduino use 5V, this circuit will be needed. In the schematic above, Q1 and Q2 are N-Channel MOSFET CJ2102, which act as a bidirectional switch. In order to better understand this part, you can refer to the AN10441

Platforms Supported

ArduinoRaspberry Pi

pir

pir

caution
The platforms mentioned above as supported is/are an indication of the module's software or theoritical compatibility. We only provide software library or code examples for Arduino platform in most cases. It is not possible to provide software library / demo code for all possible MCU platforms. Hence, users have to write their own software library.

Getting Started

Play With Arduino

Hardware

Materials required

Seeeduino V4.2Base ShieldGrove (BMI088)

pir

pir

pir

Get One NowGet One NowGet One Now
note
**1** Please plug the USB cable gently, otherwise you may damage the port. Please use the USB cable with 4 wires inside, the 2 wires cable can't transfer data. If you are not sure about the wire you have, you can click [here](https://www.seeedstudio.com/Micro-USB-Cable-48cm-p-1475.html) to buy

**2** Each Grove module comes with a Grove cable when you buy. In case you lose the Grove cable, you can click [here](https://www.seeedstudio.com/Grove-Universal-4-Pin-Buckled-20cm-Cable-%285-PCs-pack%29-p-936.html) to buy.
  • Step 1. Connect the Grove - 6-Axis Accelerometer&Gyroscope(BMI088) to port I^2^C of Grove-Base Shield.

  • Step 2. Plug Grove - Base Shield into Seeeduino.

  • Step 3. Connect Seeeduino to PC via a USB cable.

pir

note
    If we don't have Grove Base Shield, We also can directly connect this module to Seeeduino as below.
SeeeduinoGrove CableGrove (BMI088)
GNDBlackGND
5V or 3.3VRedVCC
SDAWhiteSDA
SCLYellowSCL

Software

note
    If this is the first time you work with Arduino, we strongly recommend you to see [Getting Started with Arduino](https://wiki.seeedstudio.com/Getting_Started_with_Arduino/) before the start.
  • Step 1. Download the Seeed_BMI088 Library from Github.

  • Step 2. Refer to How to install library to install library for Arduino.

  • Step 3. Restart the Arduino IDE. Open the example, you can open it in the following three ways:

    1. Open it directly in the Arduino IDE via the path: File --> Examples --> Grove 6-Axis Accelerometer&Gyroscope --> BM1088_Example.

      pir

    2. Open it in your computer by click the BM1088_Example.ino which you can find in the folder XXXX\Arduino\libraries\Grove_6Axis_Accelerometer_And_Gyroscope_BMI088-master\examples\BMI088_Example, XXXX is the location you installed the Arduino IDE.

      pir

  1. Or, you can just click the icon

pir

in upper right corner of the code block to copy the following code into a new sketch in the Arduino IDE.

#include "BMI088.h"

float ax = 0, ay = 0, az = 0;
float gx = 0, gy = 0, gz = 0;
int16_t temp = 0;

void setup(void)
{
Wire.begin();
Serial.begin(115200);

while(!Serial);
Serial.println("BMI088 Raw Data");

while(1)
{
if(bmi088.isConnection())
{
bmi088.initialize();
Serial.println("BMI088 is connected");
break;
}
else Serial.println("BMI088 is not connected");

delay(2000);
}
}

void loop(void)
{
bmi088.getAcceleration(&ax, &ay, &az);
bmi088.getGyroscope(&gx, &gy, &gz);
temp = bmi088.getTemperature();

Serial.print(ax);
Serial.print(",");
Serial.print(ay);
Serial.print(",");
Serial.print(az);
Serial.print(",");

Serial.print(gx);
Serial.print(",");
Serial.print(gy);
Serial.print(",");
Serial.print(gz);
Serial.print(",");

Serial.print(temp);

Serial.println();

delay(50);
}
note
    The library file may be updated. This code may not be applicable to the updated library file, so we recommend that you use the first two methods.
  • Step 4. Upload the demo. If you do not know how to upload the code, please check How to upload code.

  • Step 5. Open the Serial Monitor of Arduino IDE by click Tool-> Serial Monitor. Or tap the ++ctrl+shift+m++ key at the same time. Set the baud rate to 115200.

tip
 If every thing goes well, when you open the Serial Monitor, it may show as below:
BMI088 Raw Data
BMI088 is connected
394.41,-383.06,818.66,1.71,-4.88,-2.93,27
390.20,-385.25,830.38,5.49,0.24,1.83,27
388.37,-380.31,826.54,0.73,2.93,7.57,27
395.51,-384.16,823.79,-0.85,-5.74,5.98,27
385.80,-386.72,824.52,3.78,-5.00,1.59,27
395.51,-384.52,824.71,1.46,3.17,10.86,27

Schematic Online Viewer

Resources

Project

This is the introduction Video of this product, simple demos, you can have a try.

Tech Support & Product Discussion

Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.

Loading Comments...