We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi! I am a beginner in programming STM32f4 and that is my biggest problem, I think...
I am working now on the project where I need do profile the velocity of servo motor (i.e. trapezoidal velocity)... So I need to control the number of pulses I have sent and periodically update the frequency of signal...
So I have a question: Can I just change just: TIMx->ARR, PSC and CCRx registers in the PWM signal generator...? Or for example I must turn of timer first, and then update parameters...?
Thanks a lot for any hints, best regards,
P.S Have You any example projects of velocity profiling in C...? Or any tutorial of doing that on uC... Thanks again...
Hi!
Thanks a lot for Your fast replay. I thought that it is possible but I wasn't sure...
I would have one more question: I need to control the number of pulses I have sent in PWM channel to know position of serwo motor... Could You suggest me a few method which I can use to do that...? And which is the best...?
Now I am using 2 timers linked by wire: one in PWM Out Mode and the other in Input Capture Mode with External CLK on this pin. It is working "quite good" but I dont know if it is the best method to implement...
Thanks for any advice,