cancel
Showing results for 
Search instead for 
Did you mean: 

Projects on stepper motor

Lchal.1
Associate II

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

2 REPLIES 2
Laurent Ca...
Lead II

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...

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

Thank you