© 2007

LEGO® MINDSTORMS® NXT-G Programming Guide

  • Authors
  • Written by the best-selling author of LEGO Mindstorms NXT: The Mayan Adventure

  • Written for kids, teachers, parents or anyone new to the NXT-G programming language

  • Offers easy-to-follow instructions for all aspects of NXT-G, from basic to advanced


Table of contents

  1. Front Matter
    Pages i-xvii
  2. Pages 7-9
  3. Pages 11-19
  4. Pages 21-28
  5. Pages 29-32
  6. Pages 33-37
  7. Pages 39-46
  8. Pages 47-51
  9. Pages 53-62
  10. Pages 63-70
  11. Pages 71-81
  12. Pages 83-94
  13. Pages 95-97
  14. Pages 99-103
  15. Pages 105-114
  16. Pages 115-123
  17. Pages 125-131
  18. Pages 147-150

About this book


LEGO MINDSTORMS NXT-G Programming Guide is suitable for young programmers, age 10 and up, as well as parents and teachers who want to learn the new language for themselves or be able to assist students/children with learning to properly program their robots.

  • Includes easy-to-follow examples for each and every programming block
  • Provides programming techniques simple enough to be understood by young programmers, ages 10 and up
  • Provides a test robot (with instructions) in the appendix for running the programs


LEGO LEGO Mindstorms Mindstorms Motor NXT-G Standard language logic programming programming language robot software

About the authors

James Floyd Kelly is a professional writer from Atlanta, Georgia. He has written numerous books on multiple subjects, including LEGO robotics, open source software, and building your own CNC machine as well as a 3D printer. He is the editor-in-chief of the number one MINDSTORMS NXT blog, The NXT Step (, where he is joined by fellow NXT experts who share their knowledge and designs with other robot fans around the world.

Bibliographic information

Industry Sectors
Chemical Manufacturing
IT & Software
Finance, Business & Banking
Energy, Utilities & Environment


From the reviews:

"An introduction to programming Mindstorms NXT robots using the NXT-G programming toolkit by Lego is provided in this book. … The book covers every step needed to write programs, starting from no knowledge of programming and slowly bringing in additional programming constructs. … Overall, the book is clear and well written, intended for an audience with no programming skills who need step-by-step instructions … ." (M. Gini, ACM Computing Reviews, Vol. 49 (12), December, 2008)