B1 · Lesson 2 · Kinematics with calculus
Motion profiles for motors, elevators and print heads
A 3D printer's head, a hard drive's arm and a factory robot all have to move from one spot to another as fast as possible without exceeding their motor's limits. The controller plans a motion profile: speed up at the largest acceleration the motor can give, cruise at the top speed, and slow down to land exactly on target. Planning one is pure kinematics, but with accelerations that change partway through, so the constant-acceleration formulas of lesson 1 aren't enough. Calculus is: velocity is the area under acceleration, and distance is the area under velocity.
- The curve is the speed of a carriage that accelerates at , cruises at and decelerates at to stop at time . The shaded area is the distance covered.
- Lower : the cruise gets longer and the move covers less ground in the same time.
- Raise until the profile becomes a triangle. What limits the move now?
Predict
A carriage accelerates at 2 m/s² up to 1 m/s, cruises, then brakes at 2 m/s² to a stop, taking 2 s in all. How far does it go?
1.5 m. Reaching 1 m/s takes 0.5 s, and stopping takes another 0.5 s, leaving 1 s of cruising. The speed graph is a trapezoid: its area is m. Cruising at top speed the whole time would give 2 m; the ramps cost half a second's worth.
Name it
Rates and areas
Position , velocity and acceleration are linked by derivatives and integrals (A5):
On graphs: velocity is the slope of the position curve, and the distance covered is the area under the velocity curve. The constant-acceleration formulas are the special case constant:
Piecewise motion
When the acceleration changes in steps, apply the constant-acceleration formulas to each stretch, starting each one from where the last ended. A trapezoidal profile with acceleration , top speed and distance :
- ramp time , ramp distance each way;
- if the speed reaches , and the move takes ;
- otherwise the profile is a triangle that peaks at , taking .
Changing acceleration
When varies continuously, integrate. Jerk, , is limited in smooth motion systems (S-curve profiles), because sudden changes in acceleration shake the machine. A velocity is largest where the acceleration passes through zero.
Worked example
A carriage must move 1.5 m with m/s² and m/s. How long does the move take?
Show the solution
- The ramps. Each ramp takes 0.5 s and covers
- The cruise. The remaining 1.0 m at 1 m/s takes 1 s.
- Total time.
- Check with the formula.
Answer the move takes 2.0 s.
Worked example
A vehicle starts from rest with acceleration m/s². Find its speed and position at s.
Show the solution
- Speed. Integrate the acceleration from rest:
- Position. Integrate the speed:
- Top speed. At s the acceleration is zero, so 9 m/s is the top speed.
Answer at 3 s the vehicle is at its top speed of 9 m/s and has gone 18 m.
Worked example
A train accelerates at 1 m/s² to 20 m/s, cruises for 60 s, then brakes at 1.25 m/s² to a stop. How far does it travel, and in what time?
Show the solution
- Accelerating. It takes s and covers
- Cruising.
- Braking. It takes s and covers
- Totals. an average of 16.25 m/s.
- On a graph. On a velocity-time graph this is a trapezoid, and the distance is its area.
Answer the train travels 1560 m in 96 s.
Check
A carriage moves 2 m with acceleration and braking of 2 m/s² and a top speed of 1 m/s (which it reaches). How long does the move take?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A short move of 0.1 m never reaches top speed: it accelerates at 5 m/s² for half the distance and brakes for the other half. How long does it take?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A cart moving at 3 m/s brakes at 4 m/s². How far does it travel while stopping?
Write units the way you normally would: 1.5 m, 1500 mm and 0.0015 km are the same answer.
Check
A vehicle starts from rest with m/s². What is its speed at = 2 s?
Write units the way you normally would: 1.5 m/s, 1500 mm/s and 0.0015 km/s are the same answer.
Check
For the same m/s², starting from rest, when is the speed greatest?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A trapezoidal move lasts 2 s, with ramps of 0.5 s at each end and a top speed of 0.5 m/s. How far does it go?
Write units the way you normally would: 1.5 m, 1500 mm and 0.0015 km are the same answer.
Check
A vehicle accelerates at 1 m/s² to 20 m/s, cruises 30 s, then brakes at 1 m/s².
(a)
How far does it travel?
Write units the way you normally would: 1.5 m, 1500 mm and 0.0015 km are the same answer.
(b)
How long does it take?
Check
A move of length d with acceleration a for half the distance and braking at a for the rest (a triangular profile).
Step 1
What is the peak speed?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is the total time?
Explain why
Why is the distance traveled equal to the area under the velocity graph?
Over a very short time , the velocity is nearly constant, so the distance covered is : a thin strip under the graph with height and width . Adding all the strips gives the total distance, which is the area, or in calculus terms the integral . The same reasoning gives velocity as the area under the acceleration graph.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.