Hi. I am having issues getting closed loop control to work with my newly aquired AMT 103 encoder. Open loop works fine, and the sensor readings are good on their own, but when initializing FOC, the motor turns 360 degrees, but cannot align. Any idea what the issue could be?
The pinout as I have it now is
ENC_A → A1 analog pin
ENC_B → A2 analog pin
ENC_IDX → A0 analog pin
(bottom left pins in the image)
MOT: Monitor enabled!
MOT: Init
MOT: Enable driver.
MOT: Align sensor.
MOT: Index search...
MOT: Error: Not found!
MOT: Init FOC failed.
FOC init failed!