Students flip dot cards as switches, write on as 1 and off as 0, list the patterns two and three switches make, and see that each switch doubles the patterns (AC9TDI6K04 node 1).
Open these in Waypoints Prepare with one click. To share a file another way, copy its address and paste it into Load URL, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.
WorksheetOpen in PrintDownload Print the student copy; the Teacher edition has the answers.
Students will be able to
I can say what 1 and 0 mean for a switch.
I can find all the patterns some switches make.
I can say what happens to the patterns when I add a switch.
Timing
Predict and Try 6 min · Worked example 10 min · Vary 7 min · Practise and Make 12 min
Before class
Do the boards yourself first. The cards are CS Unplugged's binary cards; doing it with real cards first works well. Here the dots don't count yet: this lesson is only on and off.
The one idea: on/off switches are written 1 and 0, and each switch doubles the number of patterns. No powers or place value needed; listing and doubling is enough.
Year 7–8 catch-up: How many patterns? (8K04 n2) does this with 2ⁿ; this lesson is the idea before the notation.
Running the lesson
Predict: students who chose 3 missed all off; ask what 0 would look like.
Try: have pairs say each pattern aloud as they flip.
Worked example: build the 8 patterns on the board from the 4.
Make: let partners invent a three-card code.
In class
On the slides at these points. Students can do the whole lesson on their own; these are for the room. In the deck, the Run, Modify and Make slides have the live playground in them (the tutorial link is the backup), and the notes above are in each slide's speaker notes.
Think, pair, share(start) A light switch can only be on or off. Could a computer built only from switches store the number 7? How?
What if there were two switches? Three?
How would you know which pattern meant 7?
Yes, with several switches and an agreed meaning for each pattern. This lesson finds the patterns; the next one gives them their numbers. Leave the 'which pattern is 7' question open until Counting dots.
Two students, two switches(predict, 4 min)
Two volunteers stand at the front. Each holds a hand up (on) or down (off). The class calls out every different pattern. How many are there?
Four, including both hands down. If the class says three, ask what both down looks like: that's Sam's mistake.
Add a third switch(investigate, 4 min)
A third volunteer joins. For each pattern of the first two, the third can be up or down. List them all.
Eight. Draw the 4 patterns twice on the board, once with the new switch off and once on: doubling, not adding.
Four switches(investigate) Three switches make 8 patterns. How many do four switches make? 16 Each switch doubles the patterns: 8 doubled is 16.
The hard part (on purpose)
Leaving out all off (two switches make 3). Ask every time: is all face down a pattern too?
When students get stuck
What you will see
A question to ask
The fix
A student counts 3 patterns for two switches (Sam's mistake).
What do the cards show when they're both face down?
All off is a pattern too: 4.
A student adds instead of doubling (3 switches: 6).
For each of the 4 patterns, how many ways can the new switch go?
Two each: 8.
Answers to the checks
two switches: One switch can be on or off: that's 2 patterns. How many different patterns can two switches make? 4: off off, off on, on off and on on. All off is a pattern too.
Try: find every pattern: Flip the cards to make every pattern you can. Count them as you go. Finish with both cards face up.
00, 01, 10, 11: four patterns from two switches.
Three switches: A card is face up. What does the computer write for it? 1 On (face up) is 1. Off (face down) is 0.
Find the mistake: Sam counts the patterns for two switches. Click the line where it first goes wrong. line 3 Line 3: off, off is a pattern too. The computer uses it (it means 0), so two switches make 4 patterns.
Three switches: How many patterns can three switches make? 8 Take the 4 patterns for two switches. The new switch can be off or on for each one: 4 + 4 = 8.
Three cards: Press Add a card until there are three cards.
Three switches: 8 patterns, from 000 to 111.
On, off, on: With three cards, make the pattern on, off, on (left to right).
1 0 1.
Four switches: Add one more card in your head. How many patterns can four switches make? 16 Double 8: 16.
Read the pattern: Four cards are face up, down, down, up. How does the computer write that? 1001 Up is 1, down is 0: 1001.
Five switches: How many patterns can five switches make? 32 2, 4, 8, 16, 32: double once for each switch.
Why on and off: Why are a computer's switches only on or off, not ten different settings? On and off are easy to tell apart On or off is hard to get wrong, even when the signal is weak. Lots of switches together make any number.
a secret signal: Your secret signal is 0110. Set the four cards to it.
Down, up, up, down: 0110.
Solutions
One possible solution for each task. Other correct programs are fine.
Vary: add switches › Three cards
Open task: any program that does what the step asks.
Vary: add switches › On, off, on
Open task: any program that does what the step asks.
Vary: add switches › Four switches
Open task: any program that does what the step asks.
a secret signal
Open task: any program that does what the step asks.
Stretch and support
Stretch: How many switches would you need to give every student in your school their own pattern?
Support: A card: up = on = 1, down = off = 0. 1 switch: 2, 2: 4, 3: 8, 4: 16.
Exit ticket
Write face down, face up, face up as 1s and 0s. How many patterns can those three switches make?
011; 8.
What each step is for
two switches: Committing to a number of patterns tests the new move: list every pattern, including all off.
Try: find every pattern: Flipping two cards through every pattern settles the prediction; ending on both up confirms the last one.
Worked example: three switches: Listing three switches' patterns by adding a switch to each two-switch pattern models the move: each switch doubles the patterns. Sam skips all off, the mistake planted after the method.
Vary: add switches: Each task adds a switch or sets one pattern, so doubling is seen, not told.
switches: Reading patterns as 1s and 0s, doubling, and why computers use switches at all.
a secret signal: Setting a pattern from its 1s and 0s reverses the move: students turn the written pattern into switches.
Where it leads
Next: Counting dots (patterns become numbers).
Year 7–8: Bits and binary numbers, How many patterns?