MPU6050 Only Calibrating Along Z-axis


i've got gy-521 accelerometer/gyro purchased on amazon here connected arduino uno via i2c. ran mpu6050_calibration sketch (found here) , got following values:

code: [select]

mpu6050 calibration sketch

your mpu6050 should placed in horizontal position, package letters facing up.
don't touch until see finish message.

mpu6050 connection successful

reading sensors first time...

calculating offsets...
-598 -600 20309 0 -4 -3
33 39 15589 0 4 0
-4 6 16552 0 -3 0
-2 5 16343 0 0 0
-2 5 16402 0 -1 0
-3 6 16379 0 0 1

finished!

sensor readings offsets: 0 6 16380 0 0 0
your offsets: -1136 -895 2010 -42 18 121

data printed as: acelx acely acelz girox giroy giroz
check sensor readings close 0 0 16384 0 0 0
if calibration succesful write down offsets can set them in projects using similar mpu.setxacceloffset(youroffset)


i transferred these offsets example mpu6050 dmp sketch, found here


the mpu6050 alive , well, except there wrong calibration. when tilt sensor through 90 degree range around each axis individually, yaw (z-axis) appears correctly calibrated. gives values 0 90 degrees , stabilizes @ 90.00 degrees when have rotated through right angle.

the problem arises pitch , roll (x , y axis). when rotate sensor 90 degrees around each of these axis, output value on serial monitor stabilizes @ 50.00. continue rotate sensor, output values increase approaching 90.00 (89.95, 89.98,...) takes place @ approximately 150 degrees. @ 180 degrees value 20.00.

i new , extremely confused going on. calibrate accurately possible because intend use in making inclinometer.

any sorting out appreciated! please let me know if need more information or clarification.


thanks,
luigi

you have calibrate 3 axes scale , offset. method linked (which uses single device orientation) can't that.

for overview of required calibrate acceleromter, see adafruit tutorial.


Arduino Forum > Using Arduino > Sensors > MPU6050 Only Calibrating Along Z-axis


arduino

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'