Electrical noise

I was able to remove the primary source of noise.

There is an electrical connection between this sensor and the motor through the aluminum CNC parts. I isolated the motor by using a plastic motor mount instead. Seems similar to what Oskar describes at Encoder error ERROR_ILLEGAL_HALL_STATE .

I did not need to add shielding or capacitors, though it is probably a good idea moving forward. First I need to replace all my cnc motor mounts with plastic parts though.