I am using AS5047P as SPI magnetic encoder. My motor VCC is 20V. When motor is enabled, I get the above jittery angle readout.
But when motor is disabled, the angle readout is perfectly fine.
The jittery angle would randomly skip to other positions. The noise seem not only superimposed on the angle as a jitter bias, but also permanantly shifts the position, resulting in noticeable motor jitter and angle drift.
Is there any way I can alleviate the noise when motor is enabled?