Week 4 of 6
Digital Logic and Computational Architecture
Underneath every robot's software are circuits that compute with only 0 and 1. This week students build logic from gates, see how adders lead towards a processor, and use logic to state a safety rule exactly.
Proposed programStudent worksheetInstructor guide
By the end of the week, students can
- Students can convert whole numbers between binary and decimal and state the largest value n bits can hold.
- Students can write the complete truth table for a circuit of up to three inputs and match it to a Boolean expression.
- Students can build and verify a majority vote and a half adder in the logic lab.
- Students can trace a stuck-at fault through a circuit and decide whether the result is safe, reported or missed.
- Students can describe how gates, adders and memory combine into the main blocks of a microcontroller.
Binary, hexadecimal and digital signalsLogic gates and Boolean algebraSequential logic and memoryInside a microcontroller
The week, step by step
1Before the week
Take the before check (about 20–30 minutes). It records your starting point; not knowing is fine.2Prepare
3Live session · 60 min
Computing with 0 and 1: gates, truth tables and a safety rule
- 5 min Welcome and recap
- 10 min Bits, binary and why computers use two levels
- 15 min Gates and truth tables
- 15 min Logic lab: majority vote and NAND
- 10 min Mission launch: The Three-Sensor Interlock
- 5 min Reflection and exit question
4Experiment
Lab 05 · Digital logic- A vote of three
- Everything from NAND
5Build
M-007 · The Three-Sensor InterlockDesign the logic that lets a robot cell run only when its door is shut, even if one of three door sensors lies.
6Reflect
- Which gate's behaviour surprised you most, and what would you now tell a friend about it?
- How did writing the full truth table change your confidence that your circuit was right?
- What is one thing ideal logic ignores that a real circuit would have to deal with?
7After the week
Take the after check and see what changed.
How this week's work is reviewed
| Criterion | Beginning | Developing | Proficient | Advanced |
|---|---|---|---|---|
| Truth tables and expressions | Truth tables are missing, incomplete or have several wrong rows. | Tables are complete but contain an error, or an expression does not match its table. | Complete, correct tables for every output, each matched to an expression verified in the lab. | As Proficient, and a shorter equivalent circuit is found and shown to match in every row. |
| Capturing the rule | The output can be 1 when the rule says it must not be. | The emergency stop and start switch are handled, but the vote is replaced by one sensor or an OR. | The output is 1 only when every necessary condition holds, and each condition is explained. | As Proficient, and the student explains why AND, not OR, is the right way to join necessary conditions. |
| Fault analysis | No faults are traced through the circuit. | One fault is traced, but its effect on an output is wrong or missing. | Single stuck-at-1 and stuck-at-0 faults are traced correctly, and the double fault is identified as unsafe. | As Proficient, and the student proposes a way to catch the double fault and states its cost. |
| Honesty about limitations | Claims the design would make a real machine safe. | Mentions limitations only in general terms. | Names specific effects that ideal logic ignores and says which matters most here. | As Proficient, and explains what a real design process adds, such as standards, certified parts and review. |