4. Introduction to Programming

In Chapter 1, “Project: Backscratcher Bot,” you learned how to use the NXT brick’s on-board programming tool to make the Backscratcher Bot’s motor turn. Now we’re going to learn how to program the robot properly, using NXT-G, the software that comes with the Mindstorms set. Figure 4.1 shows the NXT-G welcome screen.

Image

Figure 4.1. The welcome screen of the Mindstorms software.

Note: This Is a Primer

This chapter is a primer that introduces you to the basic Mindstorms programming environment. We don’t get into much in the way of hands-on programming here, although we do get into the specifics within each of the project ...

Get Basic Robot Building With LEGO Mindstorms NXT 2.0 now with O’Reilly online learning.

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