Activity #5: Tunnel Runner 2
(15 Points)


Now I want you to program your robot to gather two pieces of data. Go into my tunnel entrance and record the reading from the light sensor. Then go into the tunnel more where it is darker and record the sensor reading again. Then, back out of the tunnel, and display both readings on the NXT display for 5 seconds. The robot only needs to do this activity one time without crashing!

Specific Tips

  • You may want to refer to Lesson 8 where we talked about creating variables and displaying them.
  • Look in your notes/log and figure out how to calibrate the light sensor.
  • Be sure to comment your code and include the names of your teammates.
  • Be sure to watch your tunnel speed!