Remove Long Term Steady State Errors from MPU6050 Tilt Measurements

In this video lesson I show you how to remove long term steady state error from the tilt values calculated from the MPU6050 IMU. We are using the following schematic for our prototype.

MPU 6050
Schematic for Creating a Tilt Meter

For your convenience, this is the code we developed in the video.