Help needed with difficult Boe-Bot project
dynamic_cast
Posts: 2
Hello all,
I have a project where I need my robot to navigate to a maze, navigate through the maze and acquire and dispose bombs (lights) at a disposal site. Referring to the picture, I would start in front of one maze and must cross the middle area, which will be covered white with random black tape, to get to my enemy's maze and then navigate that maze. Upon exiting the maze, I must then pick up a bomb and get to the disposal site. There is one disposal site on each side of the middle area denoted by a rectangular area of black tape. The long piece of tape on the sides of each maze lead straight down to the disposal site. There are 3 bombs that need to be disposed of. I am using IR LEDs and photoresistors.
I am stuck on how to develop a good piece of code to do this project as accurate as possible. Please help me and thanks in advance for any help given.
I have a project where I need my robot to navigate to a maze, navigate through the maze and acquire and dispose bombs (lights) at a disposal site. Referring to the picture, I would start in front of one maze and must cross the middle area, which will be covered white with random black tape, to get to my enemy's maze and then navigate that maze. Upon exiting the maze, I must then pick up a bomb and get to the disposal site. There is one disposal site on each side of the middle area denoted by a rectangular area of black tape. The long piece of tape on the sides of each maze lead straight down to the disposal site. There are 3 bombs that need to be disposed of. I am using IR LEDs and photoresistors.
I am stuck on how to develop a good piece of code to do this project as accurate as possible. Please help me and thanks in advance for any help given.
Comments
1 - go straight ahead if the line continues ahead.
2 - go left if there is a line to the left.
3 - go right if there is a line to the right.
4 - look for the bomb if the line stops.