Jump to content
I2Cdevlib Forums

Eqbal Khan

Members
  • Posts

    2
  • Joined

  • Last visited

  • Days Won

    1

Eqbal Khan last won the day on July 29 2016

Eqbal Khan had the most liked content!

Recent Profile Visitors

1,598 profile views

Eqbal Khan's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. I have done some work and made a auto calibration of mpu6050's accelerometer and gyroscope. I have discussed some problems and It needs improvement. See my post at:http://www.i2cdevlib.com/forums/topic/91-how-to-decide-gyro-and-accelerometer-offsett/
  2. Hi, i know this is a very old thread but i just wanted to share my code that can auto calibrate the Gyroscope and Accelerometer of MPU6050. The code is increment based and after calibration all the values comes down to zero or close to it. I want to share this code so others can also test it and improve it. One of the things i haven't done is in z axis of accelerometer i haven't used +16384 offset. Calibration can be more fine tuned but the cost of doing it would be time. It will take more time to calibrate it closer to zero. Fining tuning is discussed in comments in code. I also noticed that the DMP takes 20secs(approx) to stabilize. So if you are using Yaw pitch Roll output then values of first 20 seconds are useless. Another problem is that this code sometimes work other times it fails. So do check. anyway here are the before and after calibration graph. This sketch output raw data (Time(in miliseconds) AX Ay Az Gx Gy Gz) https://www.dropbox.com/s/t0u4sv3nkoplnoz/MPU6050_auto_calibrationl_raw_data_output.ino.ino?dl=0 This sketch uses DMP and Output data in YAw pitch Roll or other formats. waits 20 seconds for stability before giving data. https://www.dropbox.com/s/hh2750l8x115eib/MPU6050_auto_calibration_output_yaw_pitch_roll.ino?dl=0
×
×
  • Create New...