cancel
Showing results for 
Search instead for 
Did you mean: 

Change frequency of TIMER for acceleration deacceleration of motor

parth kothiya
Senior

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

4 REPLIES 4
LAdel.1
Associate II

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?

Arduino can't handle all this things​

LAdel.1
Associate II

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

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