MPU-9250 and Arduino (9-Axis IMU)

Introduction

This post presents a simple example of how to interface the MPU-9250 with an Arduino board. The breakout board used here is the IMU 9DOF MPU9250 breakout board manufactured by Drotek. The following video shows the result of this interface with the Sebastian Madgwick‘s AHRS algorithm.

MPU-9250

The MPU-9250 is a multi-chip module (MCM) consisting of:

MPU-9250 orientation of axes

Wiring

The following schematics shows how to connect the IMu to the Arduino Mega:

 Schematic of mpu-9250 and Arduino Mega

Source code

Source code on GitHub.

Download

Files can be downloaded here:

mpu9250_arduino.ino

mpu9250_OpenGL-linux.zip

mpu9250_OpenGL-windows.zip

See also


Last update : 11/23/2021