LEGO® Answers is a question and answer site for LEGO® and building block enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need help programming a NXT 2.0 Lego Mindstorms. I want to make the robot turn, stop, go back, etc. when the color sensors see certain colors. For example when the robot sees red it stops then turns. Please help me I am new to Mindstorms and programming.

share|improve this question

closed as too broad by jncraton, Zhaph - Ben Duguid Jul 29 '13 at 14:48

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

As such, this question isn't exactly a good fit for this Q&A site, as it's too generic in nature and doesn't give information on what you actually tried. The best way for you to learn is to start using the Mindstorms kit and following the instructions (LEGO did a good job with it so that children should be able to start by themselves without help). If at some point you encounter a specific issue which you can't solve by yourself, then you'll probably be able to ask a more specific question. The FAQ explains which questions should be asked here. – Joubarc Feb 28 '13 at 8:14

As was pointed out, this question is not specific in nature, so it's hard to give a definitive answer. If you haven't already done so, it would probably be helpful head over to and grab get the NXT 2.0 User Guide and perhaps begin looking through the sample programs.

This book may also be helpful to you:

The LEGO MINDSTORMS NXT 2.0 Discovery Book: A Beginner's Guide to Building and Programming Robots

If you run into specific problems as you are getting started, feel free to create a new question, and we'll try to help you out.

share|improve this answer
Books are indeed a very good starting point, I'd also recommend The King's Treasure. Although I've only read the previous one (Mayan Adventure) from James Kelly, I found it very educational. – Joubarc Feb 28 '13 at 14:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.