book collections email follower instructable user

Step 16: CALIBRATION OF MPU6050

Picture of CALIBRATION OF MPU6050
IMG_20190407_152858_HDR.jpg
Screenshot (44).png
IMG_20190407_154020_HDR.jpg

Since the MPU6050 accelerometer/gyroscope module was just glued to the casing, it might not be perfectly level. Therefore the following steps are followed to correct this zero error.

STEP 1: Plug in the device to your computer and place it on a surface which you already know is perfectly level (example: a tile floor)

STEP 2: Go to "LEVEL" mode on the device by touching the "M" button and note down the X and Y values.

STEP 3: Assign these values to the variables "calibx" and "caliby" in the code.

STEP 4: Upload the program again.