Friday, September 17, 2010

Day 3: Playing with toy cars

So there are no videos or pictures yet! But they will be uploaded soon.



The first program we wrote was pretty simple: just making the car back up if it hits something



This program just tells the car to stop after the tire turns a certain number of times! It took a really long time to figure out exactly how many turns are in 1.5 meters.



An easier way to determine when the car reached 1.5 meters was by detecting when it passed over white tape (the finish line)! We had some trouble with the resistors, because at first the difference between the floor and the tape was too small for the car to sense...



This navigates the car out of a maze! It stops when it hits something, and then backs up and turns a bit, before continuing. We tried to build in a step to detect if the car had hit something and was stuck, but usually the car would remain stuck, even if it tried to back out... But then the maze changed from boxes with edges that caused the car to get stuck to ones with flat sides, so it worked out!

ETA:

The stopping after a certain distance video:





The escape video was too large, but the youtube video is here

No comments:

Post a Comment