O'Reilly logo

The Unofficial LEGO MINDSTORMS NXT 2.0 Inventor's Guide, 2nd Edition by Laurens Valk, David J. Perdue

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required