I connected everything except the motor power and ran this demo script
magnetic_sensor_i2_example.ino
here are some sample readings with everything stationary, no rotation, no vibration.
this code from the example:
Serial.print(sensor.getAngle());
Serial.print("\t");
Serial.println(sensor.getVelocity());
the angle, though jittery, probably usable. Velocity, however is all over the place.
Why?
1.12 2.12
1.17 19.69
1.17 -8.51
1.18 29.05
1.18 -22.81
1.23 28.74
1.22 -19.81
1.18 2.80
1.22 7.99
1.20 11.62
1.21 -24.81
1.07 -62.15
1.12 61.44
1.20 -2.14
1.16 19.65
1.25 -13.39
1.16 -4.23
1.23 12.28
1.20 -7.78
1.15 7.24
1.24 -10.21
1.21 20.48
1.21 -3.55
1.19 -15.28
1.20 21.31
1.23 -36.46
1.15 -20.37
1.11 23.22
1.17 4.25
1.17 3.62
1.19 8.75
1.16 -26.25
1.19 43.16
1.26 -34.09
1.02 -24.86
1.22 40.11
1.15 -11.98
1.12 -36.46
1.14 51.37
1.20 -22.68
1.15 17.69
1.22 22.73
1.21 -12.07
1.14 1.42
1.25 -8.67
1.19