Tag Archives: Gyros

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.

 

9-Axis IMU LESSON 8: Using Gyros for Measuring Rotational Velocity and Angle

In this lesson we explore approximating the roll and pitch of our sensor using only the gyros. The advantage of gyros is that they are not susceptible to vibration as much as the acceleromters. In the video we show you how you can simply approximate roll and pitch from the data coming from the gyroscopes. Note that while the gyros do not have the noise problem seen in the accelerometers, we now have a new problem that the gyros are susceptible to long term drift. As you play with these devices what you end up seeing is you will need to combine the data from the accelerometers and the gyros in a clever way to take advantage of the long term stability of the accelerometers and the noise immunity of they gyros. In effect, you will want to apply a high pass filter to the gyro data, and a low pass filter to the acceleromters.

To follow along at home, you will need an Arduino Nano, and an Adafruit BNO055 Inertial Measurement Sensor. We suggest using identical hardware if you want to follow along as different sensors have very different characteristics, and things will work much better for you if we are using the same sensor

This is the code which we developed in the video to demonstrate these concepts.

The code below is for demo purposes only, and should not be used in any real applications. It just demonstrates how to work with this sensor in benchtop presentations.