Skip to Main Content
The Art of LEGO MINDSTORMS NXT-G Programming
book

The Art of LEGO MINDSTORMS NXT-G Programming

by Terry Griffin
August 2010
Intermediate to advanced content levelIntermediate to advanced
288 pages
13h 21m
English
No Starch Press
Content preview from The Art of LEGO MINDSTORMS NXT-G Programming

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

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.
Start your free trial

You might also like

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

Terry Griffin

Publisher Resources

ISBN: 9781593272180Errata