MPU-9250 and Arduino (9-Axis IMU)


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.


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

MPU-9250 orientation of axes


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.


Files can be downloaded here:


See also

Last update : 11/23/2021