Thursday, January 27, 2011

Day 9: Basic SquareBot Programming

Today we were tasked with programming our squarebots to navigate a simple duct tape maze by themselves.
The programming itself didn't take too long to figure out, but perfecting the bots' movement did. The bots have 2 motors that drive 2 wheels each. It basically works like a tank. Problems arose from the fact that the 2 motors didn't each turn perfectly the same, or possibly that the bots' frame itself was ever so slightly crooked. We had to adjust for this by changing the speed of one motor to balance it all out. Also, we had to be sure that the bots would travel the correct distance before turning. Mine ultimately failed because it turned both too little and too much at different points.

The other objective of the day was to team up and prepare a squarebot for the maze again; this time with the help of wheel encoders. The wheel encoders' purpose is to measure the distance a wheel turns while the  squarebot moves. After recording some promising measurements, the bot was put to the test and ultimately ended up driving into the wall because of bad turning; most people had similar results too.

No comments:

Post a Comment