我試過了由arduino.cc提供的this sketch。 (我有一個MPU6050 GY-521 breakout board。)在Arduino中使用陀螺儀/加速度計
我認爲它工作正常。它給出了一組奇怪的數字,我無法獲得任何意義。它說那些是原始價值。
如何將它們轉換爲有意義的值?
輸出如下。即使整個事物保持靜止,它也會改變價值!這是否有意義?那麼如何理解呢?
(我只知道的是,溫度值是有意義的: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)。 – 2012-09-06 10:54:56
@ H2CO3我編輯了這篇文章(因爲你說了什麼)。請參閱編輯過的帖子。任何想法?? – Anubis
@Anibis加速度計就是這樣 - 即使穩定保持,也有小的錯誤信號。大的Z值是由於引力(垂直的,即與Z軸平行)引起的。 – 2012-09-06 12:59:03