Today, we decided to introduce a binary code to kids to demonstrate how computers save and process the data. We have discussed what a bit and byte is, and what is the binary system.

## Let’s start with the binary system!

Imagine trying to describe every scene in a film, every street in your town, or every note in your favorite song using only the numbers 1 and 0.

That’s what your device is doing, using the language of binary code. Computers use binary because it’s a reliable way of storing data.

I am not going to go into details on how transistors are working. You can learn more about this here.

The genius of this system is that a given binary sequence doesn’t have a predetermined meaning. You can use it to code numbers, letters, pixels and son on.

Let’s take numbers. In usual decimal notation, each digit multiplies by ten and is raised to the value of its position, starting from zero on the right.

Number 43 in decimal form is 4×10¹ + 3×10⁰.

Binary system works similar. A binary number is a number expressed in the base -2 numeral system, which uses only two symbols: zero and one.

This system is a positional notation of a radix of 2. Each digit is a bit.

So how do we present “43” in the binary system? 43 is: 101011

Decimal | 32 | 16 | 8 | 4 | 2 | 1 |

Binary | 1 | 0 | 1 | 0 | 1 | 1 |

Starting from the right: 1 x 2^5 (which is 32) + 0 x 2^4 (which is 0) + 1 x 2^3 (which is 8) + 0 x 2^2 (which is 0) + 1 x 2^1 (which is 2) + 1 x 2^0 (which is 1), so it will be 43. Number 43 consists of 6 bits of information to encode it.

Once we know what the bit is we can explain that a byte consists of 8 bits.

## How to present a binary code to kids?

Now let’s look at what numbers Atena has drawn!

Let’s agree that red is 1 and blue is 0

She has:

- Red Red Red Red Red Red Blue Red, so it will be 11111101, which is 253
- Red Red Blue Blue Red Red Red Red, so it will be 11001111, which is 207

## What do we need to perform binary code teaching activity?

- An Egg box
- Paint and a brush

## What skills does the binary code activity develop?

- Math
- Computer science – basics

Please, leave a comment if you like it. Let me know your ways of teaching your kids a binary code. Write down in the comment on how you managed to teach your kiddos a new system.

43 in decimal is not eqal 4 x1 0^0 + 3 x 10^1. Quite opposite: 4 x 10^1 + 3 x 10^0.

Dear Ewa,

Thank you very much for pointing this out. Corrected! Have a great day! 🙂