Chapter 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 2.0 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 official NXT-G programming language included with the NXT 2.0 set. As you learned back in Part I ...

Get The Unofficial LEGO MINDSTORMS NXT 2.0 Inventor's Guide, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.