MPU6050 Mounting Questions [Solved]

Post Reply
copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

MPU6050 Mounting Questions [Solved]

Post by copterrichie »

Question please, it really should not matter if a MPU6050 is mounted right side up or inverted as long as the translation is done in the software correct?

Code: Select all

/* enforce your individual sensor orientation - even overrides board specific defaults */
      //#define FORCE_ACC_ORIENTATION(X, Y, Z)  {accADC[ROLL]  =  -X; accADC[PITCH]  = -Y; accADC[YAW]  = Z;}
      //#define FORCE_GYRO_ORIENTATION(X, Y, Z) {gyroADC[ROLL] = Y; gyroADC[PITCH] =  -X; gyroADC[YAW] = -Z;}
      //#define FORCE_MAG_ORIENTATION(X, Y, Z)  {magADC[ROLL]  =  X; magADC[PITCH]  =  Y; magADC[YAW]  = -Z;}

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MPU6050 Mounting Questions [Solved]

Post by copterrichie »

I was faced with a dilemma of mounting the MPU6050 inverted or on the backside of my breadboard which would not have been a problem however, I also wanted to make it non-permanent. The solution I derived is using an old HK501b case and mounting the sensor external to the board. This way, I can upgrade the sensors at will and I have had these cheap MPU6050 fail completely. So this turns out to be a win/win situation, I get to use some of the old stuff have collecting dust and resolute this issue.

Image

dezeubby
Posts: 19
Joined: Sun Dec 01, 2013 10:20 pm

Re: MPU6050 Mounting Questions [Solved]

Post by dezeubby »

The mpu6050 must be perfectly straight even if i'm doing a acc and gyro calibration ? Everytime in multiwii configuration application i get -1 ROLL -1 PITCH

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MPU6050 Mounting Questions [Solved]

Post by copterrichie »

dezeubby wrote:The mpu6050 must be perfectly straight even if i'm doing a acc and gyro calibration ? Everytime in multiwii configuration application i get -1 ROLL -1 PITCH



I have not had that experience with any of my previous builds however, I have not used version 2.3 yet. What version are you using?

dezeubby
Posts: 19
Joined: Sun Dec 01, 2013 10:20 pm

Re: MPU6050 Mounting Questions [Solved]

Post by dezeubby »

copterrichie wrote:
dezeubby wrote:The mpu6050 must be perfectly straight even if i'm doing a acc and gyro calibration ? Everytime in multiwii configuration application i get -1 ROLL -1 PITCH



I have not had that experience with any of my previous builds however, I have not used version 2.3 yet. What version are you using?


I tried 2.1 , 2.2 and now i'm on 2.3 . Always is showing -1 ROLL -PITCH even if i calibrate .

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MPU6050 Mounting Questions [Solved]

Post by copterrichie »

dezeubby wrote:I tried 2.1 , 2.2 and now i'm on 2.3 . Always is showing -1 ROLL -PITCH even if i calibrate .


Well, just a gut feeling, it is not the ACC but the gyro Calibration. Try the stick combination to recalibrate the gyro and if that works, I suspect it is how you are powering the board. Question, do you get various readings as you move the copter about?

dezeubby
Posts: 19
Joined: Sun Dec 01, 2013 10:20 pm

Re: MPU6050 Mounting Questions [Solved]

Post by dezeubby »

copterrichie wrote:
dezeubby wrote:I tried 2.1 , 2.2 and now i'm on 2.3 . Always is showing -1 ROLL -PITCH even if i calibrate .


Well, just a gut feeling, it is not the ACC but the gyro Calibration. Try the stick combination to recalibrate the gyro and if that works, I suspect it is how you are powering the board. Question, do you get various readings as you move the copter about?


I did the acc and gyro calibration on a flat table using stick combination and now it's showing me 0 ROLL 0 PITCH ( perfect )
And yes i'm getting various readings as i move the copter .

Question: The throttle need to be 1500 value at the middle ?

Problem: In ROLL/PITCH i got value from 1100 - 1877 and in YAW i got 1150-1930 ( all with middle at 1500 using subtrims ) . I have the Hobbyking HK6S Transmitter , is that a big problem ?
Attachments
After ACC and GYRO Calib
After ACC and GYRO Calib

Post Reply