Trapezoidal motion profile

Time to move a distance with velocity and acceleration limits, with the velocity curve.

Inputs

Result

Total time

1.1
Peak velocity
2
Time accelerating
0.5
Time cruising
0.1
Velocity over the move
Velocity over the move: Velocity against Time. The data table below lists the values.00.511.5200.20.40.60.81Time (s)Velocity (m/s)
Data table
Time (s)Velocity (m/s)
00
0.0880.352
0.1760.704
0.2641.056
0.3521.408
0.441.76
0.5282
0.6161.936
0.7041.584
0.7921.232
0.880.88
0.9680.528
1.0560.176
1.10

How it’s calculated

Formula

ta=vmaxamax,da=vmax22amaxt_a = \frac{v_\text{max}}{a_\text{max}}, \qquad d_a = \frac{v_\text{max}^2}{2 a_\text{max}}
t=2ta+d−2davmaxif 2da<d,else t=2d/amaxt = 2 t_a + \frac{d - 2 d_a}{v_\text{max}} \quad \text{if } 2 d_a < d, \qquad \text{else } t = 2\sqrt{d / a_\text{max}}

With your numbers (converted to SI units)

ta=24=0.5 s,da=222×4=0.5 mt_a = \frac{2}{4} = 0.5\,\text{s}, \quad d_a = \frac{2^2}{2 \times 4} = 0.5\,\text{m}
t=2×0.5+1.2−2×0.52=1.1 st = 2 \times 0.5 + \frac{1.2 - 2 \times 0.5}{2} = 1.1\,\text{s}

What it means

A trapezoidal profile accelerates at the limit, cruises at the maximum velocity, then decelerates. If the move is too short to reach cruise speed it becomes a triangle, and the peak speed is lower than the limit. Raising acceleration helps short moves most; raising velocity helps long ones.

Assumptions

  • Equal acceleration and deceleration, starting and ending at rest.
  • Infinite jerk (instant changes in acceleration).

Learn the concepts behind this on resources.simbotics.org · All formulas