Skip to main content
Lchal.1
Associate III
November 25, 2020
Question

Projects on stepper motor

  • November 25, 2020
  • 1 reply
  • 841 views

Hi ,

i am new to stm32, even i got the same project to rotate the motor using timer interrupt.

i need to set my timer to 100khz in interrupt mode. and my acceleration and deacceleration frequency is 300 hz . so if i divide 100khz by 300 hz i would get 333 . so i need to get one pulse for every 333 interrupts and my motor should drive . if i decrease my interrupt value my speed should increase and motor should run . and same for deacceleration.

can anyone help me how to deal with this and what modification i need to do in my code so anyone guide me please.

The code what i have written is attached below . please help me.

Thank you

This topic has been closed for replies.

1 reply

Laurent Ca...
Senior III
December 31, 2020

Dear @Lchal.1​ 

Sorry for the late answer.

Do you have still this problem to solve?

And just in case, if not, do not hesitate to share the final solution you found. Thanks by advance.

Best regards

Laurent Ca...

Lchal.1
Lchal.1Author
Associate III
January 6, 2021

hi, just i solved 70%, but still i need to get the solution . can you please help me with it.

Thank you