Lite / Building Machines That Respond / 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?
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.
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?
- 1
- 4
- 8
- 15
Guess first, then reveal
Just one: A = 1, B = 1, C = 1, D = 0. Every other combination must keep the machine stopped. Y = A · B · C · ¬D.
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.
What the interactive shows (text version)
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.
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
Intuitive
Two locks on a door, with different keys: losing one key, or one lock jamming open, still leaves the door locked.
Technical
Requiring agreement of redundant channels (1-out-of-2 to stop, 2-out-of-2 to run) means no single channel failing in the 'safe' direction can enable the output. Detecting the failure needs comparison of the channels over time, which needs memory (sequential logic, next year).
Mathematical
Four inputs give 2⁴ = 16 rows. Y = A·B·C·¬D is a single minterm (row 1110), so it is already minimal: 4 literals, one 4-input AND with one input inverted.
Applied
Industrial machine guards often use two switches of different types, and their safety controllers compare the two channels and lock out if they disagree.
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.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
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.
Reflect
Which row of your truth table would you most want a second engineer to check, and why?
Write your answer on paper or in your own notes. Lite never stores what you write.