Motor Not Starting with Encoder – Works Fine in Sensorless Mode
Good day,
First, a bit about my hardware:
Motor:
4 pole pairs
24V
Max speed: 3080 rpm
Inverter board:
B-G431B-ESC1
External power supply via power adapter
Encoder:
490-AMT10E2-V set to 640 PPR
Now to my problem:
When I start the motor in sensorless mode, everything works as expected.
However, as soon as I use the encoder, it stops working — the motor just twitches briefly. In Motor Pilot, it briefly switches to "alignment" but immediately falls back to "idle."
In the plot, I’m monitoring the ENCODER_EL_ANGLE, which moves smoothly between -180 and +180 degrees without any noticeable jumps if i turn it by hand.
I also tried setting the encoder as an auxiliary sensor just to observe it while the motor is running, but even then, the motor doesn't work — same behavior as described above.
I’ve read the encoder data using my own code, and it works even at higher speeds.
Changing the encoder direction or adjusting the alignment current and time didn’t help either.
Does anyone have any idea what could be wrong?
Thanks in advance!
