Grove - IMU 9DOF v2.0


3.3V 5.0V I2C

Grove - IMU 9DOF v2.0 is an upgraded version of Grove - IMU 9DOF v1.0 and it is a high performance 9-axis motion tracking module, which is based on MPU-9250. The MPU-9250 is an integrated 9-axis motion tracking device designed for the low power, low cost, and high performance requirements of consumer electronics equipment including smartphones, tablets and wearable sensors. MPU-9250 features three 16-bit ADC for digitizing the gyroscope outputs and three 16-bit ADCs for digitizing the accelerometer outputs and three 16-bit ADCs for digitizing the magnetometer outputs.


  • I2C/SPI interface
  • Auxiliary I2C
  • Low Power Consumption
  • 400kHz Fast Mode I2C for communicating with all registers
  • Digital-output 3-Axis angular rate sensors (gyroscopes) with a user-programmable full-scale range of ±250, ±500, ±1000, and ±2000°/sec
  • Digital-output 3-Axis accelerometer with a programmable full scale range of ±2g, ±4g, ±8g and ±16g
  • Digital-output 3-Axis accelerometer with a full scale measurement range is ±4800μT


More details about Grove modules please refer to Grove System

Platforms Supported

Hardware Overview

① - Grove interface,connect to I2C

② - I2C or SPI select pad(default is I2C), if want to use SPI, disconnect this pad

③ - Address select pad, default connected b and c address is 0x68, if connect b and a address is 0x69, if want to use SPI, disconnect this pad to either side.

④ - SPI Interface

⑤ - Auxiliary I2C master serial data

⑥ - Auxiliary I2C master serial clock

⑦ - Interrupt digital output


Based on library,we can display value of Accel&Gyro&Magnet on serial monitor. Now let’s show how to use the module.

Hardware Installation

Hardware installation is very easy, because there’s an I2C Grove in Seeeduino, so what we need to do is connect it to I2C Grove via a Grove cable.

Software Part

  1. Download the library.
  2. Unzip libraries into the libraries file of Arduino IDE by the path: ..\arduino-1.0.5\libraries.
  3. Unzip IMU_9D0F_Demo file into the libraries file of Arduino IDE by the path: ..\arduino-1.0.5\libraries.
  4. Open the code directly by the path: File -> Example -> Grove_IMU_9DOF_9250
  5. Upload the code. Note that you should select the correct board type and COM port.
  6. You can see :

In static state,the z-Axis output value is about 0.98g,so you can refer to this to test if your sensor can work normally.

Orientation of Axes

The diagram below shows the orientation of the axes of sensitivity and the polarity of rotation.Note the pin 1 identifier (•) in the figure.

Orientation of Axes of Sensitivity and Polarity of Rotation for Accelerometer and Gyroscope

Orientation of Axes of Sensitivity for Compass


ArduinoWioBeagleBoneRaspberry PiLinkIt ONE


The platforms mentioned above as supported is/are an indication of the module's hardware 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.

Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:

  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.

An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.

Happy hacking