Page 1 of 1

New MPU6050 GY-521

Posted: Wed Jun 27, 2012 3:15 pm
by Gaza07
I just bought a GY-521 from ebay http://www.ebay.co.uk/itm/270975107371#ht_3639wt_928 and ended up setting it up like below if some one could check this and maybe add it to future releases of the firmware,
The Mpu6050 appears to be set up the same as in the GY-85 / GY-86 10 dof boards

Code: Select all

#if defined(GY_251)
  #define MPU6050
  #define ACC_ORIENTATION(X, Y, Z)  {accADC[ROLL]  = -X; accADC[PITCH]  = -Y; accADC[YAW]  =  Z;}
  #define GYRO_ORIENTATION(X, Y, Z) {gyroADC[ROLL] =  Y; gyroADC[PITCH] = -X; gyroADC[YAW] = -Z;}
  #undef INTERNAL_I2C_PULLUPS
#endif