analogdevicesinc / TMC-API

TRINAMIC's IC API
MIT License
199 stars 86 forks source link

Ramping down in velocity mode using TMC5160 #49

Closed hajilisamir closed 10 months ago

hajilisamir commented 10 months ago

Hi all,

I am using TMC5160 in my project. I am using velocity mode and I have acceleration and deacceleration profiles.

In Velocity mode it accelerates using the acceleration profile. However, when I send VMAX=0 to stop, it does not stop according to the deacceleration profile. Deacceleration profile is respected only in Position mode. How can I correctly use it in the Velocity mode?

How I start movement in Velocity mode for ex: VMAX = 5000

How I stop: VMAX = 0

Thank you in advance Samir

hajilisamir commented 10 months ago

Solution: AMAX is the acceleration and deceleration value for velocity mode.