CE 351 2020 Fall
Lab 6: MPU6050
Accelerometer and Gyroscope Data From MPU6050
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
Methods and Materials
Arduino UNO MPU6050
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.
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.
This lab experimented with basic I2C protocols and the MPU6050. The MPU6050 was used to find linear and rotational acceleration.