Chapter 3. programming

To bring a robot to life, you need to tell it what to do by writing a computer program for it. A program is a step-by-step list of basic instructions designed to produce a result. These instructions are written in a programming language, an artificial language that a computer can understand.

For example, the instruction “prepare some tea” on its own would not be sufficient for a robotic butler. This would be considered a high-level instruction for that robot, meaning that it would need to be broken down into a sequence of lower-level instructions to actually control the robot.

The high-level instruction “prepare some tea” can be broken down into a list of well-defined, discrete, elemental steps like these:

  • Pick up a pot.

  • Fill ...

Get The LEGO MINDSTORMS EV3 Laboratory now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.