【发布时间】:2012-09-06 10:52:37
【问题描述】:
我已经尝试过 arduino.cc 提供的 this sketch。 (我有一个MPU6050 GY-521 breakout board。)
我认为它工作正常。它给出了一组奇怪的数字,我无法理解。它说这些是原始值。
如何将它们转换为有意义的值?
输出如下。即使整个事物保持静止,它也会给出变化的值!这有意义吗?那怎么理解呢?
(我只知道温度值是有意义的:D)
June 2012
WHO_AM_I : 68, error = 0
PWR_MGMT_2 : 0, error = 0
MPU-6050
Read accel, temp and gyro, error = 0
accel x,y,z: 260, 120, 15572
temperature: 31.047 degrees Celsius
gyro x,y,z : -24, -234, -240,
MPU-6050
Read accel, temp and gyro, error = 0
accel x,y,z: 304, 12, 15608
temperature: 31.000 degrees Celsius
gyro x,y,z : -7, -234, -232,
MPU-6050
Read accel, temp and gyro, error = 0
accel x,y,z: 160, 100, 15716
temperature: 31.000 degrees Celsius
gyro x,y,z : -8, -241, -248,
MPU-6050
Read accel, temp and gyro, error = 0
accel x,y,z: 192, 56, 15712
temperature: 31.000 degrees Celsius
gyro x,y,z : -36, -212, -222,
MPU-6050
Read accel, temp and gyro, error = 0
accel x,y,z: 212, 100, 15440
temperature: 30.906 degrees Celsius
gyro x,y,z : -32, -253, -240,
【问题讨论】:
-
它们已经很有意义了。它们可能会为您提供 X、Y 和 Z 方向上相对于重力的加速度(约 9.8 m/s^2)。
-
@H2CO3 我已经编辑了帖子(因为你所说的)。请参阅编辑后的帖子。有什么想法吗??
-
@Anibis 加速度计是这样的——即使保持稳定,也会有小的错误信号。而大的 Z 值是由于重力(它是垂直的,即与 Z 轴平行)。
标签: arduino accelerometer gyroscope