EVLSPIN32G4-ACT quadrature encoder mode issues
- September 26, 2024
- 1 reply
- 2260 views
- MCSDK v6.3.0
- Problem: MCWB generated code with quadrature encoder does not spin motor properly
- STWB6 file is attached. I had to copy and paste the contents into a .txt file to upload it
Here are links to videos with quadrature direction reversed and not reversed. With the quadrature reversed I press the SW1 button and the motion seems to be somewhat smooth for the motion the motor makes. With the quadrature signals NOT reversed the motor alternates back and forth violently and produces vibrations enough to move the motor test stand for ~5sec then cuts out and will not restart.
The motor commutates smoothly in sensorless FOC mode using SW1 button startup. Then I change the Speed Sensing Config to use the encoder signals and the motor behaves as described above. The encoder has 4096 slots which is what I'm using for pulses per revolution. I also tried 4*4096 (16,384) ppr but that resulted in a hard fault of the firmware immediately on start up. I confirmed Speed Sensing Mode Selection is quadrature encoder.
Can anyone give some advice on how I might work through this problem? I'll try playing with parameters today but if anyone has insights please let me know.

