Tag Archives: MEMS

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.

 

Add an MPU6050 Accelerometer to your Arduino Project

In this video lesson we will show you how to incorporate accelerometers into your Arduino projects. Your Sunfounder kit includes the GY-87 IMU module. This module contains a BMP180 pressure sensor, which we have already used in earlier lessons, and an MPU6050 6 axis IMU. The MPU6050 includes 3 accelerometers and 3 gyros. In today’s lesson, we learn how to use the MPU6050 accelerometers. I will explain how these MEMS bases accelerometers work, and how we can use them in our project.

This is the schematic we use in todays lesson.

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

For your convenience, the code developed in the lesson is presented below: