Counting With Light Bulbs: Binary
About this lesson, for parents and teachers
Computers only have switches that are on or off. So how do they count to a million? With a clever trick called binary. Tap the bulbs and find out.
Ages 6–8 · about 7 minutes · builds on Light On, Light Off · leads to Pictures Are Made of Pixels, Guess My Number in 7 Tries, Letters Are Numbers Inside a Computer
Try this
- Tap a bulb to turn it on. Its number gets added to the total.
- Make 5. Which two bulbs do you need?
- Make 12, then 31. What happens when every bulb is on?
- Stuck? Press Show me a hint.
How it works
Each bulb is worth a different number: 16, 8, 4, 2 and 1. Each one is worth double the bulb to its right. To make a number, you turn on the bulbs that add up to it. 5 is 4 + 1, so the 4 bulb and the 1 bulb are on.
If we write 1 for a bulb that is on and 0 for a bulb that is off, 5 becomes 00101. That is a binary number. Binary only uses two digits, 0 and 1, because a computer's tiny switches only have two states.
Five bulbs can make every number from 0 (all off) to 31 (all on). Add one more bulb worth 32 and you can count to 63. Every extra bulb doubles how far you can count. A computer has billions of these switches, called bits, so it can store huge numbers, words, pictures and music.
Where engineers use this
Every photo, song, game and message on a phone is stored as bits. Engineers measure storage in bytes (8 bits each), and a phone with 128 gigabytes holds about a trillion bits.
Words to know
- Bit
- One switch that is either on (1) or off (0).
- Binary
- A way of writing numbers with only 0s and 1s, where each place is worth double the one to its right.
- Byte
- A group of 8 bits. It can store a number from 0 to 255.
Talk about it
Goal: Use five light bulbs worth 16, 8, 4, 2 and 1 to make any number up to 31.
- Why do you think computers use only two digits instead of ten like we do?
- How many bulbs would you need to count to 100?
- If you add a bulb to the left, what number should it be worth?
Without a screen: Make five paper cards with 16, 8, 4, 2 and 1 dots. Turn cards face up or face down to make your child's age, the number of people at dinner, or the day of the month. This is the CS Unplugged binary cards activity.
Curriculum links: CSTA K-12 1A-DA-05 (data representation); Common Core 1.NBT place value foundations
Questions
What is binary in simple words?
Binary is a way of writing numbers using only 0 and 1. Each position is worth double the one to its right (1, 2, 4, 8, 16), and you add up the positions that have a 1.
Why do computers use binary?
A computer is built from billions of tiny electronic switches that are either on or off. Two states map perfectly onto two digits, 1 and 0, which makes binary reliable and easy to build.
What is 10 in binary?
10 is 8 + 2, so with five bulbs it is 01010.