hi kris,
on my last question on your thread issue kriswiner/MPU9250#241
i used sketch MPU9250_MS5637_AHRS_t3.ino,
now i tried to used your sketch MPU9250_MS5637_AHRS.ino, link as below :
https://github.com/kriswiner/ESP32/tree/master/MPU9250_MS5637
my question:
are my sensor had broken? because i tried with ESP32 sketch i got something wrong with my gyro bias (dps) (i put sensor on flat surface and steady position), i tried calibration about 3 times, with same problem. can you help me or explain what should i do?
are the gyro bias can affected the real time gyro data?
Test 1
Scanning...
I2C device found at address 0x0C !
I2C device found at address 0x68 !
done
MPU9250 9-axis motion sensor...
MPU9250 I AM 73 I should be 73
MPU9250 is online...
x-axis self test: acceleration trim within : -0.2% of factory value
y-axis self test: acceleration trim within : 0.2% of factory value
z-axis self test: acceleration trim within : 0.9% of factory value
x-axis self test: gyration trim within : -0.4% of factory value
y-axis self test: gyration trim within : -0.3% of factory value
z-axis self test: gyration trim within : 0.3% of factory value
Calibrate gyro and accel
accel biases (mg)
30.09
31.01
-18.98
gyro biases (dps)
3.03
0.00
-0.98
MPU9250 initialized for active data mode....
AK8963 I AM 48 I should be 48
AK8963 initialized for active data mode....
Mag Calibration: Wave device in a figure eight until done!
Mag Calibration done!
AK8963 mag biases (mG)
219.92
1031.42
-736.31
AK8963 mag scale (mG)
0.60
1.56
1.46
X-Axis sensitivity adjustment value 1.16
Y-Axis sensitivity adjustment value 1.17
Z-Axis sensitivity adjustment value 1.13
Test 2
Scanning...
I2C device found at address 0x0C !
I2C device found at address 0x68 !
done
MPU9250 9-axis motion sensor...
MPU9250 I AM 73 I should be 73
MPU9250 is online...
x-axis self test: acceleration trim within : -0.3% of factory value
y-axis self test: acceleration trim within : 0.2% of factory value
z-axis self test: acceleration trim within : 0.8% of factory value
x-axis self test: gyration trim within : -0.5% of factory value
y-axis self test: gyration trim within : -0.2% of factory value
z-axis self test: gyration trim within : 0.2% of factory value
Calibrate gyro and accel
accel biases (mg)
35.52
29.66
-13.92
gyro biases (dps)
3.03
0.10
-0.97
MPU9250 initialized for active data mode....
AK8963 I AM 48 I should be 48
AK8963 initialized for active data mode....
Mag Calibration: Wave device in a figure eight until done!
Mag Calibration done!
AK8963 mag biases (mG)
207.70
1012.09
-719.38
AK8963 mag scale (mG)
0.59
1.57
1.49
X-Axis sensitivity adjustment value 1.16
Y-Axis sensitivity adjustment value 1.17
Z-Axis sensitivity adjustment value 1.13
Test 3
Scanning...
I2C device found at address 0x0C !
I2C device found at address 0x68 !
done
MPU9250 9-axis motion sensor...
MPU9250 I AM 73 I should be 73
MPU9250 is online...
x-axis self test: acceleration trim within : -0.3% of factory value
y-axis self test: acceleration trim within : 0.1% of factory value
z-axis self test: acceleration trim within : 0.7% of factory value
x-axis self test: gyration trim within : -0.5% of factory value
y-axis self test: gyration trim within : -0.2% of factory value
z-axis self test: gyration trim within : 0.3% of factory value
Calibrate gyro and accel
accel biases (mg)
27.77
32.84
-17.46
gyro biases (dps)
3.06
0.06
-0.96
MPU9250 initialized for active data mode....
AK8963 I AM 48 I should be 48
AK8963 initialized for active data mode....
Mag Calibration: Wave device in a figure eight until done!
Mag Calibration done!
AK8963 mag biases (mG)
237.37
998.03
-722.77
AK8963 mag scale (mG)
0.60
1.33
1.70
X-Axis sensitivity adjustment value 1.16
Y-Axis sensitivity adjustment value 1.17
Z-Axis sensitivity adjustment value 1.13
Data Value :
ax = -1.77 ay = -4.03 az = 997.19 mg
gx = 0.11 gy = 0.06 gz = -0.10 deg/s
mx = -27 my = 69 mz = 37 mG
q0 = 0.98 qx = -0.00 qy = -0.00 qz = -0.21
Gyro temperature is 29.0 degrees C
Digital temperature value = 20.00 C
Digital temperature value = 68.00 F
Digital pressure value = 0.00 mbar
Altitude = 145366.45 feet
Yaw, Pitch, Roll: 349.24, -0.18, -0.27
Grav_x, Grav_y, Grav_z: 4.78, -3.13, 999.98 mg
Lin_ax, Lin_ay, Lin_az: -6.55, -0.90, -2.79 mg
sumCount = 1010
sum = 0.56
rate = 1805.74 Hz
ax = -3.11 ay = -1.83 az = 998.11 mg
gx = 0.05 gy = 0.07 gz = -0.09 deg/s
mx = -27 my = 48 mz = 37 mG
q0 = 0.98 qx = 0.00 qy = -0.00 qz = -0.22
Gyro temperature is 29.0 degrees C
Digital temperature value = 20.00 C
Digital temperature value = 68.00 F
Digital pressure value = 0.00 mbar
Altitude = 145366.45 feet
Yaw, Pitch, Roll: 348.58, -0.03, 0.02
Grav_x, Grav_y, Grav_z: -0.36, -0.57, 1000.00 mg
Lin_ax, Lin_ay, Lin_az: -2.76, -1.26, -1.89 mg
sumCount = 1010
sum = 0.56
rate = 1788.88 Hz
ax = -1.10 ay = -3.23 az = 1001.83 mg
gx = 0.05 gy = 0.03 gz = -0.04 deg/s
mx = -34 my = 38 mz = 27 mG
q0 = 0.98 qx = -0.00 qy = -0.00 qz = -0.22
Gyro temperature is 29.0 degrees C
Digital temperature value = 20.00 C
Digital temperature value = 68.00 F
Digital pressure value = 0.00 mbar
Altitude = 145366.45 feet
Yaw, Pitch, Roll: 348.44, -0.08, -0.12
Grav_x, Grav_y, Grav_z: 2.04, -1.44, 1000.00 mg
Lin_ax, Lin_ay, Lin_az: -3.14, -1.80, 1.83 mg
sumCount = 1010
sum = 0.56
rate = 1803.98 Hz
ax = -0.98 ay = -5.07 az = 992.43 mg
gx = 0.05 gy = 0.13 gz = -0.08 deg/s
mx = -33 my = 56 mz = 29 mG
q0 = 0.98 qx = -0.00 qy = -0.00 qz = -0.21
Gyro temperature is 29.0 degrees C
Digital temperature value = 20.00 C
Digital temperature value = 68.00 F
Digital pressure value = 0.00 mbar
Altitude = 145366.45 feet
Yaw, Pitch, Roll: 349.01, -0.16, -0.26
Grav_x, Grav_y, Grav_z: 4.56, -2.84, 999.99 mg
Lin_ax, Lin_ay, Lin_az: -5.53, -2.23, -7.55 mg
sumCount = 1010
sum = 0.56
rate = 1788.88 Hz