Project+105

Project #105 - The Red and Black Course

In this project you will use the light sensor and the touch sensor. The objective is to run the course between the Red and Black lines until you hit the end with your touch sensor. You will then do an about-face and traverse the course in the opposite direction. When you come to the end of the course by hitting the touch sensor the second time, your robot will do two complete turnarounds ... the so called victory dance for bots.

Hints: Read the light sensor and have it displayed on the screen using the "nxtDisplayCenteredBigTextLine(3,"%d",L); where L will be read from the light sensor using the L=SensorValue(Light); statement. Use wait1Msec(5); or variants of that on your turns to allow your robot to adjust to the various shades under the sensor.

This is a very difficult challenge, it is much more demanding than doing a simple line tracking program. Good Luck :)

Resources: The Light Sensor, Thresholds 201, and Line Tracking.

AE 3.3, 6.3 and 5.5

media type="custom" key="7442651" First example is an REM NXT

media type="custom" key="7999178" Second example is student's own creation