Skip to content
Tactiverge

School/○ Innovator/Week 36

How will it fail?

Glare makes one colour sensor lie on 30 % of parts. Your sorter's accuracy drops from 99 % to 70 %. Did you plan for that, or discover it?

About 40 min · 2 goals · Checked by automated tests

1.Why should I care?

Every integrated robot fails somehow. Engineers list the ways in advance, test the important ones on purpose, and design so that failures are detected and safe. The capstone asks for exactly this analysis.

  • ◇ List failure modes of an integrated system, their effects and how to detect them.
  • ◇ Test a mitigation and measure its effect.

Safety: All failure testing in this course happens in simulation or the browser Builds. Never induce faults in real powered machinery.

2.Discover

Make the sorter survive a lying sensor with a voting circuit. Before building it, write down which single failure it should survive and which double failure it will not.

Can't use the interactive? Read a description instead

In the sorting-machine build's Level 4, a voting circuit of AND and OR gates combines three colour sensors so that one sensor reading wrongly on 30 % of parts is outvoted by the other two.

3.Checkpoint: guided practice

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

Practice 1

Which failure is most dangerous?

4.Apply it

Write a five-row failure table for your capstone system. Choose the most severe row, test a mitigation with and without the failure over repeated trials, and report the result.

Open BUILD 003: Create an Intelligent Sorting Machine →

5.Understand

A failure-mode table

For each subsystem and interface, list: failure mode (sensor lies, message late, motor saturates), effect on the system, how it is detected, and mitigation. Rank by severity and likelihood; test the top few deliberately.

Detect, then make safe

A failure you cannot detect is the dangerous kind. Add checks: plausibility (is this reading possible?), freshness (timestamps), agreement between redundant sensors. On detection, move to a defined safe state, as in the FAULT state from week 29.

Measure mitigations

Treat a mitigation as a method to evaluate: compare with and without it, under the failure, over repeated trials, and also without the failure to check it doesn't cost too much in normal operation.

Explain it another way

Packing for a hike: you think about what could go wrong (rain, a blister, getting lost) and bring something for the likely, serious ones.

Worked example 1

Fill one row of a failure table for a rover's camera fix.

Mode: dust hides the landmark. Effect: no position correction, drift grows. Detection: landmark not found or match score low. Mitigation: re-image or wait; if drift estimate exceeds 2 m, stop. Test: dusty sols with and without the rule, 10 seeds each.

Common mix-ups

  • If the robot passes its tests, it has no failure modes.
    ✓ Tests check the conditions you tried. A failure table finds conditions you haven't tried yet.

6.Practice on your own

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

Practice 2

Three-sensor majority voting tolerates…

Practice 3

Why also test a mitigation when nothing has failed?

Practice 4 · a fresh version every time

A baseline path follower has a mean tracking error of 25 mm. The new method has 18.75 mm under the same conditions. What is the percentage improvement (lower error is better)?

%

Practice 5 · a fresh version every time

A delivery robot starts in IDLE (state 0) with its battery at 70 %. Rules: IDLE(0) + order → DRIVING(1) if battery ≥ 30 %, else → CHARGING(3). DRIVING(1) + arrived → DELIVERING(2). DRIVING(1) + bump → FAULT(4). DELIVERING(2) + done → IDLE(0) and the battery drops by 20 %. CHARGING(3) + charged → IDLE(0) with the battery at 100 %. FAULT(4) + reset → IDLE(0). Any other event in any state is ignored. Events arrive in this order: order, done, arrived, arrived, arrived. Which state number is it in at the end?

state number

7.Predict

Majority voting across three colour sensors is added. One sensor lies. What happens?

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

8.Reflect

Concepts: System integration and interface contracts · Robot safety and ethics