Skip to main content
parth kothiya
Associate III
January 22, 2022
Question

Change frequency of TIMER for acceleration deacceleration of motor

  • January 22, 2022
  • 3 replies
  • 1161 views

I'm driving 3 stepper motor​ using STM32F030C8T6TR MCU 3 different TIMERS I want to acceleration deacceleration motor so for that I want to change TIMER frequency and count pulses output at chanel how can I do it?

Example :

Motor travel distance 10000 pulses

​SPeed of motor directly proportional to timer frequency.

First acceleration slowly increase frequency (1000 pulse), then run at set ​frequency(8000 pulse) , then slowly decrease frequency(1000 pulse) then stop timer

So speed curve is slowly increase frequency - run at set frequency - then slowly decrease in frequency according to total number of pulses.​

This topic has been closed for replies.

3 replies

LAdel.1
Associate
January 22, 2022

Hi,

You project seems interesting and challenging. I am myself interested in such activities. Well, have you considered or checked the option of using Arduino for controlling the timer to get the required results?

parth kothiya
Associate III
January 22, 2022

Arduino can't handle all this things​

LAdel.1
Associate
January 22, 2022

Thank you for your response. Can you please explain as I want to learn more and I am unable to get authentic and precise information?

S.Ma
Principal
January 22, 2022

Changing the timer frequency: change its reference clock or chamge its overflow period?