Measure 3 Axis Acceleration on an Arduino with the MPU6050 IMU

In this video tutorial we show how the MPU6050 can be used to measure acceleration in the x, y, and z directions, that is, Ax, Ay, and Az. We also introduce the idea of plotting the data to the Arduino Serial Plotter to make visualization of the data easier.

Below is the schematic we are using to access the MPU6050 on the GY-87 module.

MPU6050
Schematic for connecting the GY-87 module to the Arduino

Below is the code which we developed in the lesson to measure acceleration in all three axis.