LEGO Mindstorms NXT-G Programming

LEGO MINDSTORMS NXT-GThe LEGO MINDSTORMS NXT-G programming language is a powerful tool that allows users to create custom programs for LEGO robots. But every programming language has its challenges, and NXT-G is no exception.

The LEGO MINDSTORMS NXT-G programming language

In coverThe Art of LEGO MINDSTORMS NXT-G Programming, author and software engineer Terry Griffin demonstrates how to program MINDSTORMS robots with NXT-G. Readers learn how to work with the core parts of the NXT-G language, such as blocks, data wires, files, and variables, and how the pieces work together. Along the way, Griffin teaches good programming practices, bad habits to avoid, and useful debugging strategies – all skills required of a great programmer.

The Art of LEGO MINDSTORMS NXT-G Programming teaches readers how to:

  • Write custom programs to make their robots “think” and respond to commands
  • Design, create, and debug large programs
  • Use data wires and the NXT buttons to turn a robot into a contraption like a sound
  • generator or a sketch pad
  • Create My Blocks and share them with others
  • Edit and share digital photos and videos
  • Store data on the NXT, manage memory, and transfer files

Bill Pollock No Starch Press Founder said

LEGO MINDSTORMS NXT-G Programming Quoting  begins NXT-G is a very powerful, deep, and impressive visual programming language that looks easy, but is actually quite complex, . . . We’re excited to publish this book, the latest in our line of bestselling MINDSTORMS titles, because the real power in MINDSTORMS lies in knowing how to craft NXT-G programs to make robots do what you want them to do. Quoting  ends

Whether readers are young robotics enthusiasts, adults working with children to learn robotics, parents, FIRST LEGO Leaguers, or teachers using NXT in the classroom, The Art of LEGO MINDSTORMS NXT-G Programming is the long-awaited complete NXT-G guide they’ve been looking for.

Terry Griffin has been a software engineer for over 20 years and has spent most of that time creating software to control machines. He works for Carl Zeiss SMT on the Orion Helium Ion Microscope, programming the user interface and high-level control software. He lives in Massachusetts with his wife, Liz, a middle school math and science teacher, and their three daughters, Cheyenne, Sarah, and Samantha.

GO The Art of LEGO MINDSTORMS NXT-G Programming
      by Terry Griffin
GO Download Chapter 2: “The NXT-G Programming Environment” (PDF)

Founded in 1994, No Starch Press is one of the few remaining independent computer book publishers. We publish the finest in geek entertainment – unique books on technology, with a focus on open source, security, hacking, programming, alternative operating systems, LEGO, science, and math. Our titles have personality, our authors are passionate, and our books tackle topics that people care about. Visit for a complete catalog.

O’Reilly Media spreads the knowledge of innovators through its books, online services, magazines, and conferences. Since 1978, O’Reilly Media has been a chronicler and catalyst of cutting-edge development, homing in on the technology trends that really matter and spurring their adoption by amplifying “faint signals” from the alpha geeks who are creating the future. An active participant in the technology community, the company has a long history of advocacy, meme-making, and evangelism.