April 3, 2017 Lesson

Learning Targets:

  1. Learn how to trace through an NXT program
  2. Learn how to program with loops
  3. Learn how to use a light sensor

Lesson steps:

  1. Watch the following video lesson on loops (14 min): 

  2. Several groups have already begun to write a dance program. If you have an existing dance program, use the Loop command to make your robot repeat its dance sequence to last between 30 and 60 seconds. 

    If you do not have a dance program written, create a new program called Project3. Use one loop block and program the following moves:

    1. Spin in place clockwise for 3 seconds
    2. Move backwards for 1.5 seconds
    3. Move forwards for 1.5 seconds
    4. Stop and remain in place for 1 second
    5. Move backwards for 1 second
    6. Move forwards for 1 second
    7. Spin in place counter clockwise for 3 seconds

      (Sample code taken from: )

  3. Watch the introduction to light sensor looping video (10min)

  4. Practice writing the light-sensing program. Pay special attention to the configuration panel’s light sensor reading in the lower left corner.
  5. When complete, show a teacher the completed code.
  6. Discuss /share any obstacles you may have encountered with these activities. What steps did you take to solve them?