cancel
Showing results for 
Search instead for 
Did you mean: 

HI, i am new to stm32 , i need to drive my motor by generating timers in interrupt mode .

Lchal.1
Associate II

But i am not able to know how to start it and even i need to use accelerator and deaccelerator concept in driving the motor . can anyone help me how to start and what i need to add in my code . Please help me .

Thank you

3 REPLIES 3
TDK
Guru

Related/duplicate:

https://community.st.com/s/question/0D53W00000NzdpCSAR/hii-am-doing-project-on-stepper-motor-using-stm32f103-controller-and-i-need-to-drive-my-motor-using-modbus

Probably one reason you aren't receiving many replies is your question is very open ended and you haven't put much effort into your post to explain what you've tried or what you're having trouble with.

Calculation of acceleration and deceleration profiles are simple and there are many resources online to help you there.

https://www.linearmotiontips.com/how-to-calculate-velocity/

Taking the idea of a profile and implementing it in hardware can be done many different ways. That's the job of the programmer to decide the correct way to implement it based on the needs of the project.

Driving stepper motors can be particularly math intensive and may not be an awesome first time project. If you have someone nearby that can mentor you, it may work out. But if you're on your own, you will likely have to put in a decent amount of work to learn the system and build up your understanding until you can tackle the final objective.

If you feel a post has answered your question, please click "Accept as Solution".

Thank you for your guidance.

This is the code i have implemented can you guide me what is the wrong in my code and what i need to add please.

Thank you