Jump to content

cristian

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. Thanks for the reply @Nic! You can calculate time using step resolution, velocity and remaining steps but this calculation does not account for acceleration and deceleration. Motors accelerate and decelerate different based on the speed ramping values. I found these formulas and I am currently using them but it's still not precise and I think I am not accounting for the speed ramping values correctly.
  2. I have a motor connected to a silent stepper set to a generic basic configuration, step resolution, speed ramping (acceleration and deceleration) and velocity. The stepper is being told to travel x steps (using SetTargetPosition in C#).How do you calculate travel time T? (How do you know how long it will take for the motor to reach the target?) Note: travel time T needs to account for acceleration, deceleration and when the motor travels with full velocity.
  3. I'm trying to make 5 steppers travel through n sets of targets. The steppers need to reach their target at the same time. I'm running a loop in a thread (C#) to calculate velocity and speed ramping for each stepper, to set the target of each stepper (to move the steppers) and to monitor when the steppers reach their target; a new set of targets is assigned when the steppers reach their target (roughly after more than 3 seconds). This means that I do in the same iteration 3 requests per stepper (SetMaxVelocity, SetSpeedRamping, SetSteps/SetTargetPosition) and in total 15 requests per set of targets. It works but after a few sets of targets one of the steppers does not execute the 'move'(SetTargetPosition) command (usually, the same stepper which is also last to be moved by the code). What's going on? How many commands can I send to the steppers during the same iteration? I tried calling the Tinkerforge API methods asynchronously and sleeping the thread for a brief time after every stepper command but there was no difference.
×
×
  • Create New...