You are here

AMT 102 Encoder not working properly with VESC

6 posts / 0 new
Last post
DerpRush
Offline
Last seen: 10 months 2 weeks ago
VESC Free
Joined: 2018-05-11 02:06
Posts: 3
AMT 102 Encoder not working properly with VESC

 

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?

district9prawn
Offline
Last seen: 1 week 2 days ago
VESC Free
Joined: 2018-04-26 12:18
Posts: 124

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?

DerpRush
Offline
Last seen: 10 months 2 weeks ago
VESC Free
Joined: 2018-05-11 02:06
Posts: 3

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.

district9prawn
Offline
Last seen: 1 week 2 days ago
VESC Free
Joined: 2018-04-26 12:18
Posts: 124

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?

DerpRush
Offline
Last seen: 10 months 2 weeks ago
VESC Free
Joined: 2018-05-11 02:06
Posts: 3

So far, i have tried different VESCs, different motors, double checking wiring, and checking for encoder slippage still nothing works

ripperpc
Offline
Last seen: 2 months 2 weeks ago
Joined: 2018-12-19 05:46
Posts: 15

Hi, did you manage to get this to work ?

I am facing the exact same issue.