Select the full scale range of accelerometer outputs according to the following table.
AFS_SEL
Full Scale Range
0
+-2 g
1
+-4 g
2
+-8 g
3
+-16 g
returned result is a 16bit signed integer, so if you want to get the gravity (g). the result need to be divided by 65536/full scale range.
for example:
MPU6050_ACCEL_FULL_SCALE set to 2 (+-8 g)
65536/16.0 = 4096.0
the read Accel_X result is 3863
which means the angle velocity is 3863/4096.0 ≒ 0.943 g作者: x10532x 時間: 2014-7-13 02:16 回復 2#vegewell