conclusion

The NXT kit comes with three motors specifically designed to make it easy to build a wide variety of robots. The NXT-G language provides three blocks for controlling the motors, giving you lots of flexibility when deciding how your robot should move. The Move block is the most common choice because it’s simple to use and its ability to synchronize two motors makes it easy to program a two-wheeled robot. The Motor block gives you more control when using a single motor, and the Record/Play block lets you record and then play back your robot’s movements.

The example programs show a few different ways to use the Move block, including one that moves the TriBot around a square. At this point, you should be able to use several Move blocks together ...

Get The Art of LEGO MINDSTORMS NXT-G Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.