Good Afternoon,
I am a middle school teacher and some of my students are working with the NXT Mindstorms kit. Our task is to follow a black line around a course for 2 laps and stop on the start/finish line. We spoke with other schools and were told the best strategy would be to have the robot follow the line and count/ detect each time it passes the foil. When it has detected the foil the 2nd time it should stop.
Well, they have successfully gotten it to follow the line (forever) Their first idea was to time the robot for one lap, and run the motors long enough to complete 2 laps. This has proven a little inconsistent. So...
Our question is this: How do we get the light sensor to recognize and count a lap each time it senses the foil? They have played with the sensor and when on white paper it indicates a "reflective #" between 48-54. When the sensor is over the black line the "reflective #" is in the 30's; and when on the foil the sensor reads in the high 50s to low 60s. We can see on the programming screen that there is an input for count, but it is ghosted over and we cannot change anything. (we looked on the lego help pages, and there was something about a "data wire" but we did not know where or how to connect it.)
Any assistance you can offer would be greatly appreciated.
I apologize in advance if this not the forum for this type of question.
Thanks very much
Dave T