With Dr. Bronakowski

Monday, February 13, 2012

2/13/2012

Today the class time was dedicated to programing our robots to navigate through a maze.  We had to use time when programing the robots, which means instead of using sensors or speed control we had to tell it to go forward and left or right for a certain number of seconds.  This method can take time because you basically have to make an educated guess as to how long to tell the robot to go forward, program that, then test.  The series of directions in the maze are, straight, right, straight, left, straight, left, straight, right, straight, right, left and finally straight to the finish.  Once I created the subroutines for it, it was just a matter of putting them in the correct order and with the correct times.  When class ended I had all of the turns expect for the last one programed and timed.  During next class I'll have to finish that last turn as well as wiring in and programing the buzzer that is supposed to sound when the robot reaches the end of the maze.  The video below is a recording of one of the many test runs I did during class today.  I had the robot programed to navigate about half of the maze at that point.  You will see that if definitely needed some tweaking.

No comments:

Post a Comment