Binary, Pixels, Logic Gates, and Packet Switching
Subject: Computing Grade: 6 Lessons: 5 Time per lesson: 50 minutes
Status: written
Author: Gemini 4 Argon
Navigation: Repository Home | Computing Progression
Big idea
Computers store every number, letter, and image using physical two-state switches (0 and 1), combine those switches with simple rules (AND, OR, NOT) to make decisions, and send data across networks by splitting messages into numbered packets that can be checked for errors.
What students should be able to do
- Convert whole numbers between
0 and 255 to and from 8-bit binary using repeated-doubling place-value cards (128, 64, 32, 16, 8, 4, 2, 1), and explain why adding one more card doubles the total number of patterns.
- Encode and decode short words using a 7-bit/8-bit ASCII lookup table and encode/decode a
8 × 8 bitmap icon, calculating the unit rate in bits per pixel and the image's width-to-height ratio.
- Complete truth tables for
NOT, AND, and OR gates and trace the output of a 2-gate combination circuit for all four possible input pairs.
- Simulate routing a multi-packet message across a 6-node network with a broken link, reassemble out-of-order packets using sequence headers, calculate delivery unit rates (packets per second and bits per second), and detect a single flipped bit using an even parity bit.
What students should already know
- Whole-number addition and subtraction up to
300, and multiplication/division by 2.
- Base-10 place value (
ones, tens, hundreds).
- No exponent notation (
2^n) is required. Lesson 1 builds binary place values directly through repeated doubling (1, 2, 4, 8, 16, 32, 64, 128).
- Basic ratio and unit-rate language (such as
3 : 2 or bits per pixel), reinforced alongside Grade 6 Mathematics (units/mathematics/6-ratios/).
Lesson list
- Lesson 1: Counting with Switches — Repeated Doubling and 8-Bit Binary: Build a set of 8 doubling dot-cards (
1 through 128) to represent any number from 0 to 255 using only ON (1) and OFF (0).
- Lesson 2: Letters and Pictures in Bits — ASCII Text and Bitmap Pixels: Decode secret binary text messages and design
8 × 8 1-bit and 2-bit pixel art while comparing storage unit rates (bits per character and bits per pixel).
- Lesson 3: Making Decisions with Switches — NOT, AND, and OR Logic Gates: Model series and parallel switches with human circuit paths and truth tables to design a 3-sensor greenhouse/terrarium alarm rule.
- Lesson 4: Postcards on the Wire — Packet Switching, Routing, and Throughput Rates: Break a message into numbered 64-bit packets, route around a failed node on a classroom network map, and compute network unit rates (
packets per second and bits per second).
- Lesson 5: Catching Flipped Bits — Noise, Even Parity Checks, and End-of-Unit Assessment: Add a 9th parity bit to catch single-bit transmission errors, test where 1-bit parity fails, and complete the 5-part unit assessment.
Materials (whole unit)
- Index cards or half-sheets of paper (8 cards per student pair for Lesson 1 binary dot-cards; 6 cards per group for Lesson 4 packet postcards).
- Grid paper (
8 × 8 squares) or printed 8 × 8 blank grids for Lesson 2 bitmap pixel design.
- Pencils, markers, and large two-sided paper cards or tokens (or written/pointed
0/1 table charts as an alternative to handling small objects) for flipping bits in Lesson 5.
- No computers, batteries, or internet connection required (100% unplugged classroom-ready; optional browser verification extensions noted in Teacher Notes).
Assessment
Each lesson includes 8 worked/practice tasks with complete step-by-step answers (40 lesson tasks total). Lesson 5 concludes with a 20-point End-of-Unit Synthesis Assessment (5 multi-part problems covering binary conversion, pixel bit-rate ratios, a 2-gate truth table, packet routing/throughput, and even-parity error detection) with a full scoring rubric and worked answer key.
Sources
- Bell, T., Witten, I. H., & Fellows, M. (2015). CS Unplugged: An enrichment and extension programme for primary-aged students (openly licensed CC BY-NC-SA reference for dot-card and parity unplugged pedagogy; all text, numbers, diagrams, and problems in this unit are newly written from scratch under CC0): https://www.csunplugged.org/
- American National Standards Institute (1968/1986). ANSI X3.4 — Coded Character Sets — 7-Bit American National Standard Code for Information Interchange (7-Bit ASCII) (public-domain numerical mapping of standard printable characters
32–126): https://www.rfc-editor.org/rfc/rfc20
- Postel, J. (Ed.) (1981). RFC 791 — Internet Protocol: DARPA Internet Program Protocol Specification (public-domain specification of packet headers, addressing, and datagram routing): https://www.rfc-editor.org/rfc/rfc791
Known gaps and cautions
- Unreviewed AI draft: This unit has not yet been reviewed by a human classroom teacher or tested with Grade 6 students.
- Simplifications stated explicitly for students:
- Lesson 2 uses standard 7-bit/8-bit ASCII for English letters (
A–Z, a–z) and notes explicitly that modern software uses UTF-8 / Unicode so scripts and emoji from all languages can be represented.
- Lesson 4 models packet headers with three fields (
From, To, Packet # of Total) rather than a full 20-byte IPv4 / TCP header.
- Lesson 5 introduces single-bit even parity and explicitly shows students why two simultaneous bit flips inside the same byte go undetected, motivating stronger checksums (like CRC and cryptographic hashes) in later grades.