You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had never used hold mode, but I did some reading in the datasheet and modified the library so it should work now. Hold mode does not use target velocity, it works by setting "actual velocity" directly. I added your method, "setHoldMode" and also a method called "setHoldVelocity". The units of the hold velocity are not in Hz. I could add another method called "setHoldVelocityInHz", but that would require setting the max velocity to determine the scaling factor between the hold velocity units and Hz. If that would be useful, let me know and I will add that as well.
Hello,
I am currently testing TMC429 and TMC4361A.
For the TMC4361A, I am using this library:
https://github.com/tommag/TMC4361_Arduino
In my application, i want to to set a constant speed and target position. This is possible with the "hold_mode" mode on both chips.
On the TMC4361 it is working very nicely with the library above, so I just set maxSpeed and targetPosition and the movement is performed.
I tried the same with the TMC429 library, but got no success. Hold_mode is not implemented, so I just added:
The main code is looking somehow like this:
But this will lead to no movement. With ramp_mode example, everything is working fine, so it is not a general issue with the setup.
Any idea what is misssing to make it run?
The text was updated successfully, but these errors were encountered: