Maze navigation using Infrared headlights?
chroncile
Posts: 2
Hi, I am trying to make my Boe-Bot navigate a maze and get to the end. I am trying to make it so if the Boe-Bot reaches a wall, it does not turn around and go back the same way it came from.
Comments
There needs to be something unique about the wall or area at the end of the maze as opposed to the rest of the maze.
Could you maybe put one more sensor pointing down and have a black piece of tape (if white floor, or white tape otherwise), or perhaps use the photoresistor and light source? Some sensor & environment combination that would be unique to the end of the maze.
-Martin
But if the maze is a majority of left turns, for example, it may cause problems for you.
I would seriously ask your teacher for some hints, since they designed the task, they should have some ideas on how it could be accomplished.
-Martin
not sure what grade you are in, but for remembering the track, you should use tree type structure (oriented graph) and memorize (strored value in an array or someting) turns you did.
It is called depth search ( http://en.wikipedia.org/wiki/Depth-first_search ). If this is too dificult for your class (grade) than you should store in the variable at least the last turn, so when you hit dead end in the maze and you go back, you can evaluate and turn in the oposite ( or different ) direction.
Hope this helps...
J