Sunday, March 10, 2013

line following!




here's a little look at what our picoblocks program looks like...


The idea behind our program is that if we consistently start the robot on one side of the taped line, it will only ever have to turn in one direction if it moves off the line. Technically, this is more of an edge following technique rather then line following... but it has the same effect basically. Using a light sensor, we programmed our cyborg to go forward within specific values of the light sensor- when it was half on the tape and half on the masonite. When the path curves off to the left, the robot will end up on the masonite, which has a different value than the tape+masonite. Thus, we programmed it to turn to the left until it found the tape+masonite again. However, if the tape path veers to the right, then the robot will find itself on just the taped path, which also has a different value from the masonite+tape and masonite alone. Thus, we programmed it to turn to the right until it found the tape+masonite values again. 

No comments:

Post a Comment