Internet of Things
TinkerforgeCode in ActionAbout Me
  • Course Outline
  • 1 - Getting Started
    • Overview
    • Connect to the LED
    • Getting Started
      • Glitch
      • The Application Template
    • Concepts in Programming
      • What is Programming?
      • Variables
      • Functions and Commands
      • Control Structures
      • Loops
      • Objects and Libraries
    • Programming Simple Web Apps
    • Exercises
      • 1.1 Buttons and Inputs
  • 2 - Internet of Things
    • Overview
    • IoT in our Apps
      • Getting Started
        • Hardware Kit
        • Brick Viewer and Daemon
      • Connect to the Devices
        • The Tinkerforge Device Manager
      • Program the Devices
        • RGB LED
        • RGB LED Button
        • OLED Display
        • Sensors
          • Humidity Sensor
          • Ambient Light Sensor
    • Components and Use Cases
    • Exercises
      • 2.1 Lights and Buttons
      • 2.2 Sensors
      • 2.3 Display
  • 3 - Artificial Intelligence
    • Overview
    • AI in our Apps
      • Google's Teachable Machine
      • Face Recognition
      • Training a Custom Model
    • Rules vs. Learning
    • Learning from Data
    • Use Cases
      • Computer Vision
        • Image Classification
        • Handwriting Recognition
    • Machine Learning Algorithms
      • Artificial Neural Networks
      • Decision Trees
      • Logistic Regression
    • Exercises
      • 3.1 Rules vs. Learning
      • 3.2 Fruits and Vegetables
      • 3.3 Face Recognition
      • 3.4 A Classifier for Iris
  • 4 - Cloud & APIs
    • Overview
    • APIs in our Apps
    • Cloud and APIs
      • Weather API
      • NASA Open APIs
      • EDAMAM Nutrition and Recipes API
    • Push Notifications
    • Exercises
  • 5 - App Project
    • Overview
    • Summer 2021
    • Summer 2022
  • Appendix
    • Other Devices
      • Motorized Linear Poti
      • Sound Pressure Sensor
      • NFC Reader
      • Motion Detector
    • UI Features
      • Realtime Charts
      • Countdown Timer
    • Digital Computers
      • Overview
      • The Binary System
      • Code Systems
      • Logic Gates
      • Binary Addition
      • From Analog to Digital
    • Cheat Sheets
    • Projects
      • IoT @ Pickup-Boxes
Powered by GitBook
On this page
  • Key Points
  • Material
  • References

Was this helpful?

  1. Appendix
  2. Digital Computers

The Binary System

To understand how computers work, we must understand how a number system with only ones and zeroes works.

PreviousOverviewNextCode Systems

Last updated 4 years ago

Was this helpful?

[...] any information that can be reduced to a choice among two or more possibilities can be expressed using bits. (Charles Petzold)

Key Points

  • The number system we use in our daily lives is the system to the base 10, or the decimal system (decimus is Latin for "tenth").

  • The fact that we use the decimal system does not mean other systems do not exists. In fact, every other number system to other bases exists as well, and we can convert numbers between different systems.

  • The word "decimal" or base ten implies that in that system, we have 10 symbols to represent numbers (0 - 9). Accordingly, the number system to the base 8, which is the octal system, has only eight symbols (0 - 7).

  • Computers use the binary system (bīnārius is Latin for "consisting of two"), which has only two symbols: 0 and 1.

  • Regardless of how many symbols we have in a given system, representing numbers in a system follows the same approach. In a system to the base nnn, the first digit (also called least significant digit) represents the number n0n^0n0, which is always one. The second stands for n1n^1n1, the one after that for n2n^2n2 and so forth. So the octal number 10 is equal to the decimal number 8: 1×81+0×801 \times 8^1 + 0 \times 8^01×81+0×80, and the octal number 110 would be the decimal number 72: 1×82+1×81+0×801 \times 8^2 + 1 \times 8^1 + 0 \times 8^01×82+1×81+0×80

  • We can apply the same approach for the binary system. The binary number 1100 is equivalent to the decimal number 12: 1×23+1×22+0×21+0×20=1×8+1×4=121 \times 2^3 + 1 \times 2^2 + 0 \times 2^1 + 0 \times 2^0 = 1 \times 8 + 1 \times 4 = 121×23+1×22+0×21+0×20=1×8+1×4=12

Material

Title

Link

PDF

Slides "The Binary System"

Video "Number Systems Introduction - Decimal, Binary, Octal, Hexadecimal

-

Text "Our Ten Digits" (8 pages)

-

-

Text "Alternatives to Ten" (18 pages)

-

-

For students from the , all texts are available through our team room.

References

[1] Petzold, Charles. Code: The Hidden Language of Computer Hardware and Software. Paperback ed, Microsoft Press, 2000.

[2] Scott, J. Clark. But How Do It Know?: The Basic Principles of Computers for Everyone. John C. Scott, 2009.

University of Applied Science in Osnabrück
Open
Download
Open