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