TLDR: Encoder works in live data, FOC doesn't work
I tried doing FOC with an AMT 102 encoder and the motor won't commutate properly. I tried setting up FOC with my VESC and when I used the foc setup wizard, it wouldn't detect the encoder and set it up as sensorless. I can see the encoder in live data and the encoder seems to be working properly. When I tried setting up FOC manually, the encoder offset would change every time I tried using detect encoder. Sometimes, the motor works for 10 sec, then chatters. Any idea on what to do?
Do you have the correct value for the encoder PPR? Does one revolution of the motor give you 360 encoder degrees on the realtime graph?
My encoder has 2048 PPR, I set the encoder counts in the vesc tool to 8192 and 1 rev of the motor gives 1 rev in RT data.
If your encoder counts are correct and your index pulse is also working that should be all there is to it. Does the encoder detection find the correct pole count of your motor?
So far, i have tried different VESCs, different motors, double checking wiring, and checking for encoder slippage still nothing works
Hi, did you manage to get this to work ?
I am facing the exact same issue.