Skip to content
Tactiverge

BUILD 002: Engineer an Elevator

Facilitator guide · 60 minutes · free to reuse with attribution

The objective

Design the motion profile and the feedback controller for a virtual lift so it reaches the target floor quickly, stops level without overshooting, keeps acceleration and jerk gentle, and serves waiting passengers in a sensible order.

Safety. Browser simulation and paper design only. Never enter a lift shaft, machine room or lift pit, and never interfere with lift doors or controls; real lifts are maintained only by trained engineers. Any physical extension needs an adult's safety review and supervision before anyone starts.

Before the session

  • Open /build/elevator/?level=3 and press Replay at the default settings so you have seen the cabin bounce around the floor and the doors never open.
  • Work through the Level 2 motion questions yourself so you can do them on the board (2 s, 2 m, 2 m, 2 m/s³).
  • Decide teams of three in advance. Learners who join alone can pair with the facilitator.
  • Check the live room link works, chat is off and the moderated question box is on.

Run of show

  1. 5 minHook. Replay the default trip. Ask: if you were in that cabin, where would the doors open, and what would your stomach feel?
  2. 8 minInside the lift. Walk through the five intro beats on the shaft drawing. Level 1 learners do the part map and trip order now.
  3. 10 minThe ideas. Speed, acceleration, jerk and the bathroom-scale reading. Do the 2 m/s stopping-distance calculation together.
  4. 12 minGroup challenge. Teams tune the lift to pass all five checks. Circulate and ask each team what they predicted before each change.
  5. 12 minDesign task. Individually, earliest doors-open time within the limits. Learners on other levels work on their own level task.
  6. 8 minQuestions. Answer moderated questions, then set the every-load extension.
  7. 5 minReflect & save. Everyone submits their design and writes one sentence: what does a passenger actually feel?
Team challenge
Teams of three get the same lift: six passengers, floor 0 to floor 7, and a controller that bounces around the floor. Each team finds a design that passes all five checks, then explains the one change that mattered most. No leaderboard: every team that gets there explains how.
Individual design task
On your own: get the doors open as early as you can without breaking a single comfort or levelling limit. Write down what you traded away.
Questions
Moderated questions in the live room. Questions are answered on screen without names, and chat stays off.
Extension
Real lifts carry anything from nobody to a full cabin. Preview your design with 0 kg and 600 kg: does it still stop level and smoothly? What would you change so one controller works for every load?

Running it live

Opening demo (first 3 minutes)

Share /build/elevator/?level=3 at the default settings. Say: “This is a physics model of a real lift: a 1,000 kg cabin, a counterweight, steel ropes and six passengers. Watch the bathroom scale and the close-up of the floor.” Press Replay. The cabin overshoots, bounces up and down around floor 7 like a yo-yo, and the doors never open. Say: “Nobody is getting out of that lift. In the next hour you're going to engineer one that stops level to the millimetre, smoothly enough to carry a cup of coffee, and you'll know why every part of your design is there.”

Guided discovery

  1. Ask: Watch the bathroom scale. When does a 60 kg passenger weigh the most: while the lift is going fast, or while it is speeding up?
    Reveal: While it speeds up going upwards. At steady speed the scale reads exactly 60 kg. You feel acceleration, not speed: the scale reads 60 × (1 + a/g).
  2. Ask: The cabin bounces around the floor. What does the Kp slider behave like?
    Reveal: A spring between the cabin and where it should be. A spring on its own just bounces. Kd pushes back against speed, like a shock absorber, and the bounce dies away.
  3. Ask: Add damping and the bounce stops, but the cabin settles a few millimetres short. Why short, and why does it stay there?
    Reveal: The drive assumed a half-full cabin; six passengers weigh more. The spring only balances that extra weight while some error is left: error = ΔF / Kp. Ki keeps adding up any error that lasts, and pushes until it's gone.
  4. Ask: With the bounce damped, look at the jerk chart. The biggest lurch is now at 0.0 s, before the cabin has moved at all. What happens at that instant?
    Reveal: The brake lifts. The drive is holding the weight it assumed, not the weight that's really there, so the cabin drops for a moment. A load-weighing sensor tells the drive the real weight before the brake opens.

Everyone experiments

  1. Everyone opens /build/elevator/?level=3 (no account needed to try).
  2. Change ONE thing: Kd from 0 to 30. Replay. What happened to the bounce?
  3. Now set Ki to 100. Replay. Where does the cabin settle now?
  4. Look at the jerk check. Turn on the load-weighing sensor. Replay and compare the jerk chart at 0 s.
  5. Bring the profile down to comfortable limits (try 2 m/s, 1 m/s², 1 m/s³). Replay, then press 'Submit this lift' to see the server's verdict on all five checks.
  6. Explorers and Builders do Levels 1–2 instead (ride the lift, plan the motion) and join a team for the challenge.

Design challenge

Teams of three: find a design that passes all five checks with the EARLIEST doors-open time. Each team reports one number (seconds) and the one change that mattered most. No leaderboard: we put every passing design on screen and ask what each team traded away for its time.

Everyone leaves with

Each learner leaves with a lift design that passes all five checks, saved in their Workshop (or written on the worksheet), its doors-open time and comfort figures, and a one-sentence explanation in their own words of why the cabin settles short without integral action.

Explain it yourself

Speed, acceleration and jerk
Speed is how fast position changes, acceleration is how fast speed changes, jerk is how fast acceleration changes. A comfortable lift ramps its acceleration up and down (limited jerk) instead of switching it on: that's the S-shaped speed curve.If asked “Why not just accelerate as hard as possible?”: Because passengers feel every change in acceleration as a lurch, and the trip is only a few seconds shorter. Our challenge limits are 1.2 m/s² and 1.5 m/s³; real designers choose their own comfort targets and measure ride quality with instruments.
Feeling heavier
The floor has to push you up hard enough to hold you up AND speed you up, so a scale reads m × (g + a). 60 kg speeding up at 1 m/s² reads about 66 kg. Cruising, it reads 60 kg again: steady speed feels like standing still.If asked “So why does my stomach drop when a lift starts going down?”: The floor pushes you less than usual for a moment, so you feel lighter. Your insides notice the change, which is jerk.
Proportional control as a spring
Kp pushes in proportion to the distance from the plan, exactly like a spring. A heavier cabin than expected stretches the 'spring' until Kp × error equals the extra weight: error = ΔF / Kp. A full cabin with Kp = 100 kN/m sits about 29 mm short.If asked “Why not just make Kp huge?”: A stiffer spring shrinks the gap but never removes it, and with little damping it makes the cabin buzz. The motor also has a force limit.
Damping (Kd)
Kd pushes back against moving faster than the plan, like the shock absorbers in a car. It turns a bounce into a smooth stop.If asked “Can you have too much damping?”: Yes: the cabin creeps the last few millimetres slowly, and damping also reacts to every wobble in the speed reading.
Integral action and windup
Ki adds up error over time. As long as any gap remains, the push keeps growing, so the leftover gap disappears. But while the cabin lags behind the plan during the trip, the integral stores that lag and lets it out at the end, which can carry the cabin past the floor.If asked “How do real controllers stop windup?”: They limit or pause the integral when the motor is at its limit (our model does this), and many only switch strong integral action on near the end of the trip.
Load weighing and the brake
While parked, the brake holds the cabin. When it lifts, the motor suddenly has to hold the real weight. If the drive guessed wrong, the cabin drops or jumps for a moment. A load-weighing sensor lets the drive hold the right weight before the brake opens.If asked “Do real lifts weigh their passengers?”: Many do. A load-weighing device helps the drive start smoothly and also stops an overloaded lift from leaving.If asked “Is our model the whole story?”: No: we ignore rope stretch, motor delay and the sheave's own inertia, and our numbers are rounded to be typical, not taken from one real lift.
The elevator algorithm
Keep travelling in your direction while anyone ahead needs you, then turn round. It stops the lift bouncing between far-apart calls and serves everyone in one sweep each way.If asked “Is it always the fastest?”: Not for every call list. 'Nearest call first' can travel less, but it can leave someone at a far floor waiting a very long time. Fair and fast are different goals; that's a good Level 5 question.

Lead

  • Runs the opening demo and the discovery questions
  • Shares the simulator and does the live calculations on the board
  • Calls time on each section

Co-host

  • Moderates the question box and reads questions aloud without names
  • Watches the room and the safeguarding channel
  • Posts links in the session page, not in chat
  • Collects each team's design and doors-open time for the on-screen comparison

Checklist

  • ☐ Session published with event type 'build' and series 'elevator'; host and adult supervisor confirmed
  • ☐ Live room: unlisted stream, made for kids, chat off; question box tested
  • ☐ /build/elevator/?level=3 open at the default settings and a passing design ready in a second tab; screen-share tested at 1280×720
  • ☐ Worksheet PDF ready for learners without a second screen
  • ☐ Both founders (Karim Mohamed and Mohamed Meneesi) have read the explainers and can answer the 'if asked' questions; either can lead

Follow-ups

  • Level 4: make one controller work for an empty, half-full and full cabin, and calculate the P-only levelling error yourself.
  • Level 5: run a controlled investigation (four runs, one variable) and send it for review.
  • Playground: feedback control, the same Kp, Ki and Kd on simpler systems.
  • Next live Build: BUILD 003, Create an Intelligent Sorting Machine, where decisions are yes or no instead of how much.

Five levels, one project

LevelTaskEvidence
ExplorerWatch a well-tuned trip in the lift simulator, then match five parts of the lift to the question each one answers and put the seven stages of a trip in order.
Makes: A correct part map and trip order, checked on the server.
Answer key: Counterweight: what balances the cabin. Door edge sensor: is anything in the doorway. Floor position sensor: exactly where the cabin is. Load-weighing sensor: how heavy the cabin is. Motor and sheave: what turns the ropes. Order: call registered, doors close, accelerate, cruise, slow down, level, doors open.
Checked by the facilitator against the answer key
BuilderUse the S-curve planner to see how speed, acceleration and jerk limits shape a trip. Answer four motion calculations, then schedule four waiting passengers with the elevator algorithm.
Makes: Four worked answers with units and a correct service order, checked on the server.
Answer key: 2 s; 2 m; 2 m; 2 m/s³. From floor 3 going up with calls at 1, 6, 2 and 5: serve 5, 6, then 2, 1.
Checked by the facilitator against the answer key
InnovatorIn the lift simulator, take six passengers (450 kg) from floor 0 to floor 7. Design the motion profile and tune the levelling controller so the cabin stops within 5 mm of the floor, never sails more than 5 mm past it, keeps felt acceleration under 1.2 m/s² and jerk under 1.5 m/s³, and opens its doors within 20 s.
Makes: A lift design that passes all five checks when the server re-runs it, with its doors-open time.
Answer key: One passing design: top speed 2 m/s, acceleration 1 m/s², jerk 1 m/s³, Kp 200 kN/m, Ki 300 kN/(m·s), Kd 30 kN·s/m, load weighing on (doors open at 13.5 s). Without load weighing the jerk check fails at 0 s, the instant the brake lifts (about 5.3 m/s³).
Checked by the facilitator against the answer key
Systems EngineerMake one controller pass every Level 3 check with an empty, a half-full and a full cabin. Then calculate how far short of the floor a full cabin settles with proportional control alone, and explain what in your design removes that error.
Makes: A design that passes for 0, 300 and 600 kg, a correct calculation and a 30-word explanation, checked on the server.
Answer key: (600 − 300) kg × 9.81 m/s² ÷ 100,000 N/m ≈ 29.4 mm. The Level 3 design above passes all three loads. Integral action removes the steady error; load weighing removes the brake-release lurch.
Checked by the facilitator against the answer key
Research EngineerAsk one question about the lift (for example, how does the jerk limit trade comfort against trip time, or how does passenger load change the levelling error with P-only control?). Change one setting across at least four recorded runs, hold everything else fixed, and write a short technical report.
Makes: Four or more runs recomputed on the server and a report with a hypothesis, method, results and limitations, reviewed by a person.
Reviewed by an adult

Common misconceptions

  • ✗ “Turning the gain up always gets you there faster and better.”
    ✓ More proportional gain on its own makes the cabin bounce. Fast, stable and accurate pull against each other; damping (Kd) is what calms the bounce.
  • ✗ “Passengers feel speed.”
    ✓ At steady speed you feel nothing at all: a bathroom scale reads your normal weight. You feel acceleration, and you notice sudden changes in it (jerk) most of all.
  • ✗ “Proportional control will get the cabin exactly to the floor if you wait.”
    ✓ With an unexpected extra weight ΔF, P-only control settles where Kp × error = ΔF, so it stays ΔF / Kp short. Integral action removes that gap.
  • ✗ “More integral action is always better, because it removes the error.”
    ✓ While the cabin lags the plan, the integral keeps adding the lag up and lets it out at the end, carrying the cabin past the floor. Too much makes the loop unstable.

Accessibility

Every result appears as text as well as on the charts and the shaft drawing. The simulator works by keyboard with labelled sliders, respects reduced motion (the trip jumps to its result, nothing moves) and runs on a low-cost phone. Motion questions come with a hint and a worked example for learners who prefer to follow a pattern first.

BUILD 002 worksheet: stopping on the floor

Name: ______________________ Level: ____________

  1. Sketch speed against time for one trip between floors. Label where the cabin accelerates, cruises and brakes.
  2. A cabin accelerates at 1 m/s² from rest. How long until it reaches 2 m/s, and how far has it travelled? Show your working.
  3. Using s = v² / (2a), how far before the floor must a cabin moving at 2 m/s start braking at 1 m/s²?
  4. If acceleration rises from 0 to 1 m/s² over 0.5 s, what is the jerk? Why would a passenger prefer a smaller number?
  5. In the lift simulator, record one design that sails past the floor and one that does not. What did you change, and what did it cost?
  6. A 60 kg passenger stands on bathroom scales while the lift speeds up going upwards at 1 m/s². Using 60 × (1 + a/g), what do the scales read? What do they read while cruising?
  7. Four people press buttons at floors 1, 6, 2 and 5 while the lift is at floor 3 going up. List the order the elevator algorithm serves them.

Follow-up

  • Try BUILD 007 (Design a Smart Greenhouse) to see the same feedback ideas hold a temperature instead of a floor.
  • Playground: feedback control. Turn on sensor noise and watch what derivative action does to the motor command.
  • Robotics Expedition Level 4 shows why fast, stable and accurate pull against each other.
  • Atlas: steady-state error and integral action, for the maths behind the leftover gap.