This question already has an answer here:

I've created an arm robot using Mindstrom NXT that can find an object pick it up and move it to an new and random location. My problem is that I would like for the motor to, at the end of the program, return to the position it started at. The random movement of the arm and how to program it to move back to the starting position is the cause of my confusion. Can anyone give some suggestions or a solution as to what I should do?

marked as duplicate by Ambo100 Feb 13 '15 at 17:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.