Friday, April 12, 2013

Color Maze NXT

This was a difficult program to write, but very fun! I had been playing around with the idea of a music sequencer that I found at Damien Kee's website. (Go check out the video, then come back!) I didn't want to take my robot apart to build his sequencer (yet!) because I'm using it to practice programming. So I made the sequencer so that it would drive over the colors instead of rotating over them.  It didn't work as well as I hoped, so I was thinking about other things to do with the color sensing program.

I decided to make a course for it to use colors to find it's way from start to finish.  I wanted it to use blue to turn right and red to turn left.  I had trouble getting it to turn accurately though. My batteries were low and that made still more problems. I made turns more accurate by stopping before the turns and turning more slowly.  That helped a lot! -and now it's working great!!!

I am hoping to take the robot to our next outreach and let people draw red and blue squares to help the robot through a course. I think this will give people a basic idea of what it's like to write a program.

Here is video of my robot doing the color course:

No comments:

Post a Comment