Tag Archives: MPU6050

Plotting X-Y-Z Magnetometer Data for Accurate Calibration

In this video lesson we create a PyQt5 Widget in Python to help calibrate the QMC5883L 3-Axis Magnetometer on the GY-87 module. The Widget plots the data coming from the Magnetometer in real time to allow more accurate calibration.

This is the circuit schematic for our project:

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

This is the simple code for the arduino to generate the raw data;

This is the code we run on the Python side to plot the raw data:

 

Improving MPU6050 IMU Arduino Project Performance with a Complimentary Filter

In this video lesson I show you how you can improve the performance of your Arduino MPU6050 IMU Project by incorporating a complimentary filter. We will combine the roll and pitch calculations from the accelerometer and gyro into a fused result which allows us to enjoy the best of both worlds.

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

For your convenience, the code developed is presented below:

 

Reducing Gyro Drift in MPU6050 IMU Arduino Project

 

In this video lesson we learn how to reduce drift in our roll, pitch, and yaw from the MPU6050 IMU Arduino Project. We will be using the following schematic in today’s work.

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

This is the code we developed in this lesson:

 

Calculating Roll, Pitch and Yaw from Gyros on Our Arduino MPU6050 IMU Project

In this video lesson we will examine how we can calculate Roll, Pitch and Yaw from the MPU6050 IMU. For this lesson we calculate from just the Gyro measurements.

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

Below is the code which we developed in this lesson:

 

Using Arduino and MPU6050 to Measure Rotational Velocity with the Gyros

In this video lesson I show you how you can measure rotational velocity using the gyroscopes on the MPU6050 IMU module on the GY-87 board.

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

Below is the code which we develop in this lesson.