Skip to content
Tactiverge

School/◇ Explorer/Week 27

Design challenge 1: define the problem

Engineers say a problem well defined is half solved. What makes a problem 'well defined'?

About 30 min · 3 goals · Checked by automated tests; not yet reviewed by an educator

1.Why should I care?

This week you design your own intelligent system. The most common reason real projects fail isn't bad code or weak motors: it's solving the wrong problem, or not knowing when you've solved it. Clear requirements prevent both.

  • ◇ Write a clear problem statement for an intelligent system.
  • ◇ Turn wishes into specific, testable requirements.
  • ◇ Identify constraints and one trade-off in a design.

2.Predict

Which requirement could you actually test?

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

3.Discover

Weight the criteria differently (say, cost very important, then performance very important) and watch which design comes out top. Notice there's rarely one design that's best at everything.

Explorer 04 — Engineering constraints

No design wins on everything

Choosing a robot's perception and compute stack means trading cost, power and capability. Set your priorities and limits, then see which options survive and which are simply worse than another.

EST. ACCURACY (%) vs COST (CU)406080050100150BUDGET 100AMICROCONTROLLER ONLYBMICROCONTROLLER + LOW-RES CAMERACSINGLE-BOARD COMPUTERDSBC + CAMERAE✕ SBC + CAMERA + ACCELERATORF✕ SBC + DEPTH CAMERACIRCLE AREA ∝ POWER
  • Meets limits
  • ✕ Violates a limit
  • Pareto frontier
  • Outside a limit

Limits

100 CU
8.0 W

Priorities (weights 0–10)

5

Cheaper is better

3

Lower draw means a smaller battery or longer run time

2

Headroom for heavier algorithms later

6

Estimated task success

0 %
Horizontal axis

Illustrative figures for teaching, not measured specifications

  1. BMicrocontroller + low-res cameraRank 1

    Microcontroller reading a small low-resolution camera for colour blobs.

    Cost
    30 CU
    Power
    0.9 W
    Compute
    3×
    Est. accuracy
    52 %

    ✓ Meets all limits · On the frontier

    Score58
  2. DSBC + cameraRank 2

    Single-board computer running classical vision on a standard camera.

    Cost
    80 CU
    Power
    5.5 W
    Compute
    25×
    Est. accuracy
    74 %

    ✓ Meets all limits · On the frontier

    Score57
  3. AMicrocontroller onlyRank 3

    Microcontroller with distance and contact sensors; no camera.

    Cost
    12 CU
    Power
    0.3 W
    Compute
    1×
    Est. accuracy
    35 %

    ✓ Meets all limits · On the frontier

    Score50
  4. CSingle-board computerRank 4

    General-purpose single-board computer with the same simple sensors, no camera.

    Cost
    55 CU
    Power
    4.0 W
    Compute
    25×
    Est. accuracy
    48 %

    ✓ Meets all limits · Dominated by B (no worse on cost or accuracy, better on one)

    Score46
  5. ESBC + camera + acceleratorExcluded

    Adds a neural-network accelerator for learned object detection.

    Cost
    150 CU
    Power
    10.0 W
    Compute
    120×
    Est. accuracy
    86 %

    ✕ over budget by 50 CU; over power limit by 2 W · On the frontier

    Score53
  6. FSBC + depth cameraExcluded

    Single-board computer with a depth camera; better 3-D estimates, costly sensor.

    Cost
    165 CU
    Power
    7.5 W
    Compute
    25×
    Est. accuracy
    82 %

    ✕ over budget by 65 CU · Dominated by E (no worse on cost or accuracy, better on one)

    Score42

State

4 of 6 options meet the limits (budget 100 CU, power 8.0 W). Highest weighted score: B, Microcontroller + low-res camera, 58 of 100, on the Pareto frontier. Frontier on cost versus accuracy: A, B, D, E.

4 of 6 options meet the limits (budget 100 CU, power 8.0 W). Highest weighted score: B, Microcontroller + low-res camera, 58 of 100, on the Pareto frontier. Frontier on cost versus accuracy: A, B, D, E.

How to read this

Each circle is a design option, placed by cost (left is better) and estimated accuracy (up is better); its area shows power. Filled circles meet every limit you set; dashed, hollow circles marked ✕ break at least one, and the hatched area shows where a limit rules options out.

The stepped line is the Pareto frontier: options for which nothing else is both cheaper (or lower-power) and more accurate. An option off the frontier is dominated, meaning another option beats it on both axes, whatever your priorities. The weighted score below is a different question: it depends entirely on the weights you chose, so two people can reasonably rank the frontier differently.

Assumptions & limitations
  • All figures are illustrative teaching values chosen to make trade-offs visible. They are not measured specifications, prices or benchmarks of any product.
  • Options are generic archetypes; real stacks vary widely in what each part costs, draws and achieves.
  • Scores use a weighted sum of min–max normalised criteria. Normalisation is relative to these six options, so adding or removing one changes every score.
  • A weighted sum hides trade-offs: a high score can come from one extreme strength. That is why the Pareto view is shown alongside it.
  • The frontier is computed on the two plotted criteria only; an option dominated here may still be the best on a criterion not plotted (for example F has lower power than E).
  • Accuracy is treated as a single fixed number. In practice it depends on lighting, the objects, the algorithm and integration effort, and is uncertain until tested.
Can't use the interactive? Read a description instead

The trade-off lab can be replaced by this description: six possible designs are scored on cost, mass and performance. When cost matters most, a cheap, modest design wins; when performance matters most, an expensive, heavier design wins. No design is best at everything, so the weights you choose decide the winner.

4.Understand

Problem statement

Start with one or two sentences: who has the problem, what goes wrong now, and what a good solution would do. 'Plants on our classroom windowsill dry out over weekends. We need a system that waters them only when they need it.'

Testable requirements

Turn wishes into requirements you can check:

  • What it must do, with numbers (water when moisture < 30%).
  • What it must never do (never water more than twice a day).
  • Anything about speed, size or power.

If you can't imagine a test for it, rewrite it.

Constraints and trade-offs

Constraints are limits you can't break: budget, size, a battery that must last a week. Within them you'll face trade-offs: a more sensitive sensor costs more; checking more often uses more battery. Write down the trade-off you choose and why.

Explain it another way

Asking a friend to 'get some food' could mean anything. Asking for 'two apples and a loaf of bread, under £3' means you'll know exactly whether they got it right.

Worked example 1

Rewrite as testable requirements: 'The night light should come on when it's dark and not waste energy.'

  1. The light must switch on within 2 seconds of the light sensor reading below 20. 2. It must switch off within 2 seconds of the reading going above 30. 3. It must not stay on for more than 10 hours a night. Each can be checked with a stopwatch and a log.

Common mix-ups

  • Requirements are just a wish list.
    ✓ Good requirements are specific and testable, so you know when you've succeeded.
  • The best design wins on every criterion.
    ✓ Usually designs trade one criterion against another. You choose the balance and explain why.

5.Practice

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

Practice 1

Which requirement is testable?

Practice 2

Why include something the system must NEVER do?

Practice 3

Checking a sensor 100 times a second instead of once a second makes a robot react faster. What's the likely trade-off?

6.Apply it

Start your term project: choose an everyday problem, write a two-sentence problem statement, and list at least three testable requirements, including one 'must never'. Name one constraint and one trade-off you expect.

7.Reflect

Concepts: The design cycle and prototyping · Constraints, budgets and trade-offs