cancel
Showing results for 
Search instead for 
Did you mean: 

Motor moves until a specific position and then stops

msingh
Senior

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

2 REPLIES 2
Laurent Ca...
Lead II

Dear @msingh​ 

I am not sure that STM32 MC-SDK is well suited for position control usage.

Could you indicate what motor reference you use?

Thanks by advance,

Best regards

Dear Laurent,

I am using the following BLDC motor combination from Maxon.

  • Motor 200142
  • gearbox 166935
  • Incremental encoder 673026

In the final project I'd like to drive the motor using an external voltage (ADC) to drive the motor from 0.5 RPM to a maximum of 3000RPM depending on the amplitude of the signal. I have already created an ADC interface code however I am struggling to get the basics working, having the motor rotating without issues. I have confirmed the motor can achieve them speeds by using the ESCON 50/5 BLDC controller from Maxon. Ideally we would like to design our own controller. Is there anything you can suggest?

Kind Regards

Manpreet Singh