kriswiner/ICM42688

Gyro self test fails

Closed this issue · 6 comments

Accelerometer self-test works fine but the gyro always fails in the self-test. I tried debugging using the library and checked everything but nothing worked.
00> accelerometer self test
00> Ax dif : 95.1538 mg
00> Ay dif : 106.567 mg
00> Az dif : 724.304 mg
00> should be between 50 and 1200 mg
00> gyro self test
00> Gx dif : 13.5269 dps
00> Gy dif : 13.7253 dps
00> Gz dif : 13.7405 dps
00> should be > 60 dps
00> ares 6.10352e-05
00> gres 0.00762939
00> AX ratio: 92.7708
00> AY ratio: 95.001
00> AZ ratio: 218.31
00> should be between 50 and 150%
00> GX ratio: 12.4669
00> GY ratio: 12.4005
00> GZ ratio: 12.4143
00> should be between 50 and 150%

I just messed up with setting up the register gyro config0. I didn't do left shift by 5 (GFS_250DPS << 5) .

Now it's working fine. Thanks for your suggestion and quick reply!!

Accelerometer self-test works fine but the gyro always fails in the self-test. I tried debugging using the library and checked everything but nothing worked. 00> accelerometer self test 00> Ax dif : 95.1538 mg 00> Ay dif : 106.567 mg 00> Az dif : 724.304 mg 00> should be between 50 and 1200 mg 00> gyro self test 00> Gx dif : 13.5269 dps 00> Gy dif : 13.7253 dps 00> Gz dif : 13.7405 dps 00> should be > 60 dps 00> ares 6.10352e-05 00> gres 0.00762939 00> AX ratio: 92.7708 00> AY ratio: 95.001 00> AZ ratio: 218.31 00> should be between 50 and 150% 00> GX ratio: 12.4669 00> GY ratio: 12.4005 00> GZ ratio: 12.4143 00> should be between 50 and 150%

AZ ratio seems to be high in this. But other self-tests are passed for accel and gyro.
Do you have any suggestion for this issue?