Friday, January 9, 2009

Caleb Tricycle...Different Code...Same purpose....That worked....

Note: There is a picture of the code added to this post....
So before we get to the video, I thought that I would share a picture of what I did to help flatten out a crease in the black line track (which had caused me problems)...The books that are shown there are the books that I have been using to learn about the Lego Robot. That was done while I was on a short break from the studies. It did seem to make a difference.

Here is the video of the working code that was suggest by Baum.

Baum's idea of getting the Robot to follow the line was not to directly follow the black line but the edge of the line. This way the if the sensor got values for the black line, the robot could turn accordingly. Or if the sensor sent values for the white part of the track, it would then turn the other way.

Both of the programs, give me the same result but I did notice that with Baum's algorithm that Caleb Tricycle didn't swing as far out as with Knudsen's algorithm.

Another of the things that I found interesting was that the Robot was still able to run its program, when it began to run off of the mat because the carpet was dark enough...This is at the end of the video.

I worked about 30 minutes organizing the Legos, so that I had a good idea of where to find different pieces.

Time worked since last post: 1 hour
Total for today: 4 hours 10 minutes
Overall: 18 hours 20 minutes


Blogger Templates by 2007