
7
introduction to NXT-G
The ability of an NXT robot to perform any given task—whether following a line, throwing a ball, or sweeping the floor—isn’t
instinctive. We must provide the robot with specific instructions that tell it what to do; we must program the robot. In terms
of the NXT set, programming generally involves writing a program on a home computer and then transferring it to the NXT,
the “brain” of a robot, which can then execute, or run, the program. Programs can tell the NXT how to operate motors, read
sensors, play sounds, and much more.
We must write all of our programs in a programming language, and this book focuses on the off