The Unofficial LEGO MINDSTORMS NXT 2.0 Inventor's Guide, 2nd Edition
by David J. Perdue, Laurens Valk
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access