NXT Training Mission 1: To drive in a one foot square

  1. Create a new program called OneFootSquare.

  2. Move motors BC forward a number of revolutions equivalent to one foot+*. (Experiment here to get reasonably close.)

  3. In another move block turn right until the bot has moved through 90 degrees. (Experiment here to get reasonably close.)

  4. Once your bot can move 1 foot forward and turn right, use a repeat block to do this enough times to make a square.

  5. Save this program

Challenge: Create a new My Block (CP101 pp 51-55) called MeasuredSquare that makes your Alpha Bot drive in a square the length of the sides determined by a variable (CP101 pp 85-88.) This way all you have to do is change the sideLength variable to create a new square.

Does your Alpha Bot return to the start position? If not, what are some of the possible reasons?

 

Write down your comments recording any problems and their solution or any pertinent details learned during execution of this mission.




+*Measure the diameter of your wheel and multiply by PI (3.14) to get the number of inches per revolution. This will tell you the number of revolutions to start with. You will have to actually run the bot to see how many revolutions are required to cover 12 inches - adjust as needed.
CP101 pp 74-78