Problem using encoder and closed loop

you’re completely right, i made a mistake, big one actually LoL
i rewired things but still the same result coming up. i don’t know if it’s because of my setup or what.( i mean it’s not that much stable …)

anyway i got myself together and went to buy a AS5045. hope it’ll work.
image
AS5045 - Magnetic, Rotary Position Sensor Evaluation Board

any tips would be of help.