--- title: "Learning Binary" date: "2022-05-10" categories: ["All", "Guides"] tags: [] excerpt: "Learn the basics of binary" featuredImage: "/images/resources/learning-binary.jpg" --- ### What is Binary? Binary is a system of counting. You are most likely familiar with counting using 0-9. This is called the decimal number system. Binary is an alternative to the decimal number system. It existed before computers were invented. When computer scientists started building computers, they selected binary as the counting system that would run the computer’s brain. Binary is simple, it’s just 0 or 1. All computer’s decision-making skills comes down to just YES or NO, TRUE or FALSE, 1 or 0. But if computers only think in 1 and 0, do they understand numbers like 3, or 20 or 500? Yes! Binary numbers only use the 0 and 1 character are able to represent any number we can think of. We just have to learn how to translate a decimal number to a binary number. ### Value of Binary Digits Each binary number is made up of digits each with their own value. Each digit can either be 1 or 0. If a digit is 1, that digit is ON. If it is 0, it is OFF. To get the final number you add together the values of the ON digits. Below we can see the value of the first 5 binary digits. ![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/281985df-ddf6-4fce-a71d-6581eaaa9e5c/key.png) To translate **18** to binary we write **10010**. We turn **ON **the **5th **digit and the **2st **digit. ![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/23680c32-28e5-4609-b52b-6f189f8848df/18.png) ### Binary Examples The number 3 in binary is written 11. We turn ON the first and second digit. The value of the first digit is 1 and the value of the second digit is 2. Together they equal 3. ![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/95513405-117c-49e5-948f-c94597992f4f/3.png) --- The number 5 in binary is written 101. We turn ON the first and third digit. The value of the first digit is 1 and the value of the third digit is 4. Together they equal 3. ![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/8b2d09af-8b05-493f-8ce8-c2283f01a0c9/5.png) --- The number 20 in binary is written 10100. We turn ON the fifth and third digit. The value of the fifth digit is 16 and the value of the third digit is 4. Together they equal 20. ![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/05452208-8777-4c3f-a234-54161319c0ea/20.png) ### Related Posts Resources [ ![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/1639455538805-9NI7CPKR7IYG6D4RBKAN/high+quality+sumo.png) ](/resources/creating-a-sumo-unit) [All](/resources?category=All) [Creating A Sumo Unit For Your Digital Technologies Class](/resources/creating-a-sumo-unit) [All](/resources?category=All) How to run a sumo unit in your digital technologies classroom. [Read More →](/resources/creating-a-sumo-unit) [All](/resources?category=All) [ ![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/1637464845856-BBPD7GTIIHHOSJCFORWF/the+ultrasonic+sensor.png) ](/resources/ultrasonic-sensor) [All](/resources?category=All), [Guides](/resources?category=Guides) [The Ultrasonic Sensor](/resources/ultrasonic-sensor) [All](/resources?category=All), [Guides](/resources?category=Guides) Learn all about the ultrasonic sensor! [Read More →](/resources/ultrasonic-sensor) [All](/resources?category=All), [Guides](/resources?category=Guides) [ ![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/1625616494179-LZHZP5MUA0E0MQKEB7HC/cropped+image+4.png) ](/resources/year-7-digital-tech-at-st-peters) [All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories) [Case Study: Year 7 Digital Tech at St Peters Lutheran College](/resources/year-7-digital-tech-at-st-peters) [All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories) See how Meg Foley at St Peters conducted a challenge for their Year 7s using Micromelon. [Read More →](/resources/year-7-digital-tech-at-st-peters) [All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories) [ ![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/1637464675848-K9YEOYK65IWRFRX4QJ1R/blog+header+image+.png) ](/resources/robot-simulator) [All](/resources?category=All), [Getting Started](/resources?category=Getting+Started) [Getting Started With The Robot Simulator](/resources/robot-simulator) [All](/resources?category=All), [Getting Started](/resources?category=Getting+Started) How to get started with the Micromelon Robot Simulator. [Read More →](/resources/robot-simulator) [All](/resources?category=All), [Getting Started](/resources?category=Getting+Started) [ ![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/1626837419969-WBB4D85KQIXSOP750N5M/resized+banner+%281%29.png) ](/resources/getting-started-with-the-micromelon-rover) [All](/resources?category=All), [Getting Started](/resources?category=Getting+Started) [Getting Started With The Micromelon Rover](/resources/getting-started-with-the-micromelon-rover) [All](/resources?category=All), [Getting Started](/resources?category=Getting+Started) Crash course on basic rover function, how and what to program and starter activities to attempt. [Read More →](/resources/getting-started-with-the-micromelon-rover) [All](/resources?category=All), [Getting Started](/resources?category=Getting+Started) [ ![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/1622691207784-0X6JV7RYRQXZAFRG712S/pisonescape.png) ](/resources/prison-escape) [Activities](/resources?category=Activities), [All](/resources?category=All) [Activity: Prison Escape](/resources/prison-escape) [Activities](/resources?category=Activities), [All](/resources?category=All) Learn branching and iteration using the colour sensors and motors. [Read More →](/resources/prison-escape) [Activities](/resources?category=Activities), [All](/resources?category=All)