Motor moves until a specific position and then stops
I have created a position control project using the followings.
- Nucleo-F302R8
- IHM07M1
- MotorControl Workbench 5.Y.1
- STM32CubeMX 6.1.0
After creating a basic project I have set up a timer generating an interrupt every 1ms. In the interrupt handler I have placed the code to increment the target position by 0.0001. This seems to work fine until reaching a position of about 1.37. When It gets to this value the hardware starts drawing 1A increasing towards 2A while the rotor is locked. Does anyone know what is going on? I have tried using different position increments and it seems to stop rotating around the same value.
Thanks in advance