Closed vvkuryshev closed 5 years ago
Gyroscope data is noisy. It will change even when the device in on rest. However the numbers you are seeing are too big. This was because I had radians to degrees conversion backwards (https://github.com/tuupola/micropython-mpu9250/pull/8).
At rest the real numbers should be close to zero. If you try with latest version you should see numbers which are something like the following;
(-0.178077290076335, -0.0142831583969465, -0.323324188931298)
(-0.101741412213739, 0.115487833969466, -0.10958373091603)
(-0.132275763358777, -0.166954914122137, -0.361492127862595)
(-0.24677958015267, -0.0448175095419847, -0.208820372137405)
(-0.407084923664121, -0.136420562977099, -0.0332478530534351)
(-0.193344465648854, 0.0773198950381679, -0.0866829675572519)
(-0.216245229007632, -0.0448175095419847, -0.0866829675572519)
(-0.323115458015266, 0.0849534828244275, -0.224087547709924)
Gyroscope send starange data, like this (labels "gx, gy and gz"):
Each line - poll of mpu9250 approximately in 1 second. The module was stationary, therefore the data from the three channels of the gyroscope should be close to zero.
The script was: