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?