Lesson 1: Counting with Switches — Repeated Doubling and 8-Bit Binary

Time: 50 minutes

Unit: Binary, Pixels, Logic Gates, and Packet Switching | Next: Lesson 2: Letters and Pictures in Bits

Goal

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 number of possible patterns.

Materials

Steps

1. Opening (5 min): Why Only Two States?

Hold up a classroom light switch (or draw a simple switch on the board). Ask: - "In everyday base-10 arithmetic, each digit slot can hold 10 different symbols (0 through 9). Why doesn't a computer wire use 10 different voltage levels (0V, 1V, 2V, ..., 9V) for each digit?" - Guide students to notice that electrical wires experience tiny fluctuations (heat, static, long cables). Distinguishing 10 close voltage levels is fragile, whereas distinguishing two clearly separated states — OFF (0) vs. ON (1) (or dark vs. bright, unmagnetized vs. magnetized) — is fast and reliable.

2. Main Activity Part A (15 min): Building the 8 Doubling Cards

Have each student pair make a row of 5 cards first, arranged right to left just like base-10 place value: 1. On the rightmost card, write 1 and draw 1 dot. 2. Move one slot left: double the previous card to write 2 (2 dots). 3. Move one slot left: double 2 to write 4 (4 dots). 4. Move one slot left: double 4 to write 8 (8 dots). 5. Move one slot left: double 8 to write 16 (16 dots).

Now extend the row to a full byte (8 bits) by doubling three more times to the left: 32, 64, and 128:

Bit slot (left to right) Card 8 Card 7 Card 6 Card 5 Card 4 Card 3 Card 2 Card 1
Place value (doubling right to left) 128 64 32 16 8 4 2 1

Explain the rule: - Face-up (ON) = 1 (add this card's value to your total). - Face-down (OFF) = 0 (do not add this card's value).

Worked Example 1: Binary to Base-10 (00101101)

Suppose the 8 cards read 0 0 1 0 1 1 0 1:

Card value 128 64 32 16 8 4 2 1
Bit (1 = ON, 0 = OFF) 0 0 1 0 1 1 0 1

Add only the cards switched ON (1): 32 + 8 + 4 + 1 = 45.

Worked Example 2: Base-10 to 8-Bit Binary (100)

To build a target number like 100, always work from left (128) to right (1) using the greedy subtraction check: 1. Does 128 fit into 100? No (128 > 100) → write 0, remainder is still 100. 2. Does 64 fit into 100? Yes (64 <= 100) → write 1, subtract 100 - 64 = 36 remaining. 3. Does 32 fit into 36? Yes (32 <= 36) → write 1, subtract 36 - 32 = 4 remaining. 4. Does 16 fit into 4? No → write 0. 5. Does 8 fit into 4? No → write 0. 6. Does 4 fit into 4? Yes (4 <= 4) → write 1, subtract 4 - 4 = 0 remaining. 7. Does 2 fit into 0? No → write 0. 8. Does 1 fit into 0? No → write 0. Result: 01100100 (64 + 32 + 4 = 100).

3. Discussion Questions (10 min)

4. Student Practice & Closing Check (20 min)

Practice Tasks (1.1 – 1.8)

  1. Task 1.1: Convert the 8-bit binary number 00010110 to a base-10 number.
  2. Task 1.2: Convert the 8-bit binary number 10000101 to a base-10 number.
  3. Task 1.3: Convert the 8-bit binary number 11111111 (all 8 cards turned ON) to a base-10 number.
  4. Task 1.4: Write the base-10 number 19 in 8-bit binary.
  5. Task 1.5: Write the base-10 number 75 in 8-bit binary.
  6. Task 1.6: Write the base-10 number 200 in 8-bit binary.
  7. Task 1.7 (Pattern Reasoning): Without converting both numbers to base-10 first, what happens to the value of 00001101 (13) when you shift every bit one slot to the left and put a 0 on the right (00011010)? Explain why.
  8. Task 1.8 (Capacity & Doubling): A 4-bit system can represent 16 different numbers (0 through 15). How many different numbers can a 5-bit system represent, and what is the largest number it can hold?

Complete Answer Key (Tasks 1.1 – 1.8)

Vocabulary

Differentiation

Safety

No physical hazards in this unplugged lesson.

Teacher notes