The MPU-6050 has an embedded 3-axis MEMS gyroscope, a 3-axis MEMS accelerometer, and a Digital Motion Processor (DMP) hardware accelerator engine with an auxiliary I2C port that interfaces to 3rd party digital sensors such as magnetometers.
In this libray, two attitude extimation mode are implemented, based on gyro + accelerometer
- internal DMP processor
- mahony filter
Gyro calibration is suggested to get more accurate parameters.
Setup parameters are stored in file mpu6050.h
A processing.org sketch is provided to display attitude estimation.
This library is developed on Eclipse, built with avr-gcc on Atmega168 @ 16MHz.
In addition to the processing sketch, Omid Abolghasemi provides this Matlab code to visualize quaternion data:
- 03: init fix to prevent random incorrect +/- 16g scaling register setup at startup (fix by Len Spyker
- 02: attitude estimation refactored to fit standards
- 01: first release
- read risk disclaimer
- excuse my bad english