Skip to content
Tactiverge

School/□ Systems Engineer/Week 14

Stop on the floor: specs in practice

A lift must stop within 5 mm of the floor, never sail past by more than 5 mm, and open its doors within 20 s. Which of those is a transient spec?

About 45 min · 3 goals · Checked by automated tests

1.Why should I care?

Specifications are contracts. A lift that is fast but bounces past the floor fails, however impressive its speed. This lesson puts transient metrics to work on a realistic system with several competing limits.

  • ◇ Translate a written specification into step-response metrics with limits.
  • ◇ Use a second-order model to predict which settings will meet an overshoot limit before testing.
  • ◇ Test a design against every line of a specification and report pass or fail.

2.Discover

Open the Elevator at Level 3. Before changing anything, write the five checks as metric + limit. Replay the default trip and note which checks fail. Then change one setting at a time, predicting each time which metric should move.

Can't use the interactive? Read a description instead

At default settings the simulated lift overshoots floor 7, oscillates around it and never opens its doors. Increasing damping and adding integral action makes the cabin approach the floor without passing it and settle within 5 mm, after which the doors open.

3.Checkpoint: guided practice

Check what you just discovered before going on. Hints appear after a wrong answer.

Practice 1

'The doors must open within 20 s of the call' is a limit on which metric?

4.Apply it

Pass all five Level 3 checks in the Elevator. In your submission, list your predictions for each change you made and whether they came true.

Open BUILD 002: Engineer an Elevator →

5.Understand

Specs become metrics

'Stop within 5 mm' is a steady-state error limit. 'Never sail more than 5 mm past' is an overshoot limit in millimetres. 'Doors open within 20 s' is a settling-time limit. 'Acceleration under 1.2 m/s²' and 'jerk under 1.5 m/s³' limit how hard the actuator may push.

Predict, then test

Before tuning, use a model: high derivative action raises ζ (less overshoot), integral action removes steady-state error (but can add overshoot), and comfort limits cap how fast you can go. Write the prediction down; then the test tells you whether your understanding is right, not just whether you got lucky.

Every line, every time

A design passes only if every check passes in the same run. Report all five numbers, not just the one you improved. If two lines can't both be met, that's a finding worth writing up, not hiding.

Explain it another way

A spec is a checklist on the wall. You don't get to tick only the boxes you like.

Worked example 1

Your design levels within 2 mm, overshoots 7 mm, opens doors at 14 s and keeps acceleration and jerk in limits. What do you change first, and what do you expect to get worse?

Overshoot fails, so raise damping: more derivative action, or a gentler final approach in the profile. Expect doors-open time to grow a little; check it stays under 20 s.

Common mix-ups

  • A faster lift is a better lift.
    ✓ A lift is better only if it meets every comfort and levelling check. Speed that breaks a limit is a failure.

6.Practice on your own

Practice, not a test. Wrong answers get a hint and another try.

Practice 2

A levelling loop behaves like a standard second-order system. Its approach is 100 mm and overshoot must be at most 5 mm. What is the minimum ζ? (Two decimal places.)

Practice 3 · a fresh version every time

A step response peaks os = 8 % above its final value. Assuming a standard second-order system, what is its damping ratio ζ?

Practice 4

Why change one setting at a time when tuning against a spec?

Practice 5

Your new design improves overshoot from 7 mm to 2 mm but doors now open at 22 s. How do you report it?

7.Predict

The lift's levelling must not overshoot by more than 5 mm on a 3 m trip. If the final approach behaves like a second-order system, roughly what damping ratio would you aim for?

Guess first. Being wrong here is how the surprise works.

8.Reflect

Concepts: Stability, overshoot and delay · Tuning a PID controller · Evaluation metrics