Chapter 1. Coding and Robotics Around Us FREE
1.1 What Do Coding and Robotics Mean?
Every day you use machines that follow instructions without you even thinking about it. Coding is the skill of writing clear instructions, called a program, that tell a computer exactly what to do. Robotics is about building and programming machines, called robots, that can sense the world around them and then move or act. Coding and robotics work together: a robot needs code to tell it what to do, and code needs a machine, such as a computer or a robot, to carry it out.
1.2 Technology All Around Us
Computers and robots are not only found in science-fiction movies. They are part of ordinary South African life. When you draw money from an ATM outside a Shoprite in Polokwane, the machine follows a program to check your card, count your money and print a slip. A traffic light at a busy Durban intersection follows a program that changes from red to green in a fixed pattern to keep cars and pedestrians safe. A cellphone runs many small programs, called apps, that let you send a message, take a photo or check the weather. Even a washing machine or a microwave oven in your kitchen follows a set of instructions once you press start.
Examples of Everyday Technology
- Traffic lights that change colour in a fixed sequence
- ATMs that check a card and count money
- Cellphones running apps for calls, games and messages
- Washing machines and microwave ovens with programmed settings
- Robotic vacuum cleaners that move around a room by themselves
1.3 Humans and Machines: What Is the Difference?
A person can look at a new situation, think about it, and decide what to do, even if nobody told them exactly what to expect. A machine cannot do this on its own. A computer or robot only does what it has been programmed to do, following its instructions exactly, step by step. If the instructions are wrong or incomplete, the machine will make a mistake or simply stop working, even if the mistake seems obvious to a person.
1.4 Why Do We Give Machines Instructions?
Machines need instructions because they cannot think or make decisions the way people do. A computer does not know what a traffic light is for unless a person has written a program that tells it exactly when to turn red, orange or green. Giving clear instructions is how people make machines useful, whether the machine is a giant ATM in a shopping centre or a small toy robot on a classroom table. Learning to write clear instructions is the very first step toward coding and robotics, and it is a skill you will build on throughout this year.