Skip to content
Tactiverge

School/△ Builder/Week 18

Project: specify a fault-tolerant interlock

A single guard switch can stick 'closed' while the guard is open. How do you design logic that one broken sensor cannot fool?

About 45 min · 3 goals · Checked by automated tests

1.Why should I care?

This is the term project. You will specify, design and verify a small digital system the way engineers do for real machines: words, then a truth table, then logic, then exhaustive tests, then an honest list of what it does not protect against.

  • ◇ Write an unambiguous specification for a safety interlock, naming every signal and what 1 means.
  • ◇ Produce a complete 16-row truth table and a simplified expression for a four-input rule.
  • ◇ Check the design against single-sensor failures and state its limits honestly.

2.Predict

The machine may run only if two independent guard sensors (A, B) both say 'closed', the operator is present (C) and there is no fault (D = 1 means fault). On how many of the 16 input rows should it run?

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

3.Understand

Specify before you build

Write each signal with its meaning: A = 1 'guard sensor 1 reads closed', B = 1 'guard sensor 2 reads closed', C = 1 'operator present', D = 1 'fault reported'. Then write the rule in one sentence and as a full truth table. Every one of the 16 rows must have a defined output.

Redundancy against a stuck sensor

With one guard sensor, a switch stuck at 1 would let the machine start with the guard open. With two independent sensors both required (A · B), one stuck sensor is not enough: the other still reads 0 and holds the machine off. This is the simplest form of fault tolerance.

Know the limits

The rule Y = A · B · C · ¬D does not detect that a sensor has failed; it only refuses to run on a single false 'safe'. A fault line stuck at 0, or two failures at once, could still fool it. Real safety systems add self-tests and certified hardware. Say so in your design note.

Explain it another way

Two locks on a door, with different keys: losing one key, or one lock jamming open, still leaves the door locked.

Worked example 1

Sensor B is stuck at 1. The guard is actually open, so sensor A reads 0. The operator is present and there is no fault. What is Y?

Y = A · B · C · ¬D = 0 · 1 · 1 · 1 = 0. The healthy sensor A keeps the machine stopped.

Common mix-ups

  • Adding a second sensor makes the system completely safe.
    ✓ It protects against one sensor failing 'safe'. Two failures, wiring faults or a stuck fault line still need other measures.

4.Discover

Type A · B · C · ¬D (A, B = guard sensors, C = operator present, D = fault). Read the 16-row truth table and find the single row where Y = 1. Now imagine sensor A is stuck at 1: toggle B to 0 (guard really open) and confirm Y stays 0. Try the same for each other input.

Loading the interactive…

Can't use the interactive? Read a description instead

In the expression explorer, Y = A · B · C · ¬D gives a 16-row truth table with Y = 1 only on row 1110: both guard sensors closed, operator present, no fault. If sensor A is stuck at 1 while the guard is open (B = 0), Y stays 0.

5.Checkpoint: guided practice

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

Practice 1

How many rows does the truth table of a 4-input interlock have?

rows

Practice 2

On how many rows is Y = A · B · C · ¬D equal to 1?

rows

6.Practice on your own

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

Practice 3

Guard sensor A is stuck at 1 and the guard is open (B = 0). C = 1, D = 0. The machine…

Practice 4

Which failure can Y = A · B · C · ¬D NOT protect against on its own?

Practice 5 · a fresh version every time

Write out the 8-row truth table for Y = ¬(A + (B + ¬A)) (inputs A, B, C). On how many rows is Y = 1?

rows

7.Apply it

Write your project specification: signal table with meanings, the rule in one sentence, the full 16-row truth table, the simplified expression and a list of at least three failure cases with what your logic does in each. Mark any case it does not handle.

8.Reflect

Concepts: Logic gates and Boolean algebra · Robot safety and ethics