CE 351 2020 Fall
Lab 6: MPU6050
Nic Theobald
nstheobald@fortlewis.edu


Accelerometer and Gyroscope Data From MPU6050

Introduction

The MPU6050 acceleration sensor is a useful sensor for applications that require semi-accurate acceleration readings. However not discussed in this experiment, the MPU6050 could be used to measure crude angles and positions.

Methods and Materials



Item
Quantity


Arduino IDE
Arduino UNO
MPU6050
Breadboard
Some Jumpers
1
1
1
1
x



The first step in this experiment was to wire up the sensor (Figure 1). The next step was to write the code for the accelerometer and gyroscope.

Results

Task 1: Wiring up the MPU6050 and Getting Accelerometer Data

The MPU6050 was wired as shown in Figure 1 and was programmed with the code in Figure 2.



Figure 1: MPU6050 Wiring
Figure 2: MPU6050 Code



Task 2: Getting Rotational Data

The MPU6050 was programmed with the code in figure 3.



Figure 3: Code for Angular data.


Figure 3: System reacting to outside disturbances.



Discussion:

This lab experimented with basic I2C protocols and the MPU6050. The MPU6050 was used to find linear and rotational acceleration.