Thursday, April 16, 2009

Line Tracking

In the lab "Line tracking" we had to experiment the light sensor and also learn about its behaviors and programing system. Robots must be programmed to follow a black line on a white surface using the light sensor. First we put the Light sensor to the front of the robot but found out that it made to many errors, putting the light sensor at the back of the robot is better because if the sensor is closer to the wheels there are minimum chances of errors. We programed it by first placing a loop around the main program which makes your robot run at certain time or run the program longer. Set your loop and run it while it is less than 12 seconds. Then add the light sensor next to a loop around the move blocks so that it can make a decision on whether it is light it will turn left or if its dark it will turn right. Since the light sensor is set at the back of the robot it will work better because it is close to the wheels.


No comments:

Post a Comment