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
  • From zeroes and ones to processing text
  • Material
  • References

Was this helpful?

  1. Appendix
  2. Digital Computers

Code Systems

Bytes are dumb. They just contain patterns of ons and offs. If a byte contains 0100 0101, and you send it to the printer, it will print the letter ‘E.’ If you send it to the Instruction Register, the computer will execute a Jump instruction. If you send it to the Memory Address Register, it will select byte number 69 of the RAM. If you send it to one side of the Adder, it will add 69 to whatever is on the other side of the Adder. If you send it to the display screen, it will set three pixels on and five pixels off.

(Scott, J Clark. But How Do It Know? - The Basic Principles of Computers for Everyone)

From zeroes and ones to processing text

Computers internally only work with zeroes and ones. This appears to pose a problem to anyone who, for example, wants to use a computer to process text with letters and other symbols. How can a computer represent letters, when all it can store and process are 0 and 1?

The answer lies in the permutations we can obtain with a given sequence of zeroes and ones. Say we have 8 bits (that is, 8 switches that can either be on = 1 or off = 0). With those 8 bits, we can create 27=2562^7 = 25627=256 different permutations of zeroes and ones. We can assign a symbol to each of those permutations, and we arrive at what we call a code system. A symbol can be anything we like. When we look at text processing, a symbol might be A, B, C, 1, 2, 3 and so forth. But it can also be a color or a sound, or a command that we send to the printer.

We can calculate the number of permutations we need for our code system if we know the structure of a message we want to transmit or store.

This article will be continued soon.

Material

Title

Link

PDF

Slides "Codes"

Video "Measuring Information" from Khan Academy

-

Text "Codes and Combinations" [1]

-

-

Text "Bit by Bit by Bit" [1]

-

-

Exercise "Information & Codes"

-

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.

PreviousThe Binary SystemNextLogic Gates

Last updated 4 years ago

Was this helpful?

Open
Download
Open
Open