Skip to main content
SRivi.1
Associate II
December 10, 2020
Question

Generate velocity curve

  • December 10, 2020
  • 1 reply
  • 602 views

Hi, I am a NUCLEO STM32H743ZI2 and I am trying generate one velocity curve with the register ARR. I'm using 3 stepper motors and firstly I tested the code with constant velocity but when I increment the velocity from 0 rpm to 2 rpm by 0.001 and the same trayectory, the execution of the three motros doesn't have synchrony. Does anyone know why it works fine with constant velocity and not with variable velocity? I think the error comes from constantly modifying the register ARR.

Thanks.

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
December 11, 2020

Check the Preload settings, and perhaps the phase in CNT before changing ARR.

Attach a scope and review the trace to understand what signal you are generating, then you'd know.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..