Society of Robots - Robot Forum

General Misc => Misc => Topic started by: dellagd on March 09, 2009, 05:06:14 PM

Title: maze robot for science fair
Post by: dellagd on March 09, 2009, 05:06:14 PM
I am building a robot for the science fair and I want to make it navigate a maze.

do you think this would work for a maze robot?
I would have 5 IR LEDs placed on the front of the robot as in the pic.
If the LED C detects that there is no wall in...lets say...1-2 inches it will go forward.
if LED C detects a wall then it will ask LED A and E if there is any wall in front of them.
If they say no then the robot will turn in the direction that LED A or E is facing until LED C detects that there is no wall.
then it will go forward.
repeat.

P.S. if LED A and E detect no wall, then it will choose at random which way to turn.

P.P.S. I am putting this on the $50 dollar robot(yes, the LEDs will be level)

P.P.P.S. when I have time I will try to make the robot in sketchup
Title: Re: maze robot for science fair
Post by: cooldog on March 09, 2009, 05:19:13 PM
how will the ir led's detect the wall?
Title: Re: maze robot for science fair
Post by: dellagd on March 09, 2009, 06:15:34 PM
they will have recievers behind them.
I haven't made the code yet but the parallax Boe-Bot uses IR LED in a similar way so why wont it work here.
Title: Re: maze robot for science fair
Post by: dellagd on March 09, 2009, 06:22:52 PM
if anyone has used IR LEDs for navigation, can you plz post the code in this post
Title: Re: maze robot for science fair
Post by: galannthegreat on March 09, 2009, 07:57:03 PM
If you want to figure out distance with IR LED's you might aswell get some sharp IR rangefinders, they woulfd work nicely in that situation.
Title: Re: maze robot for science fair
Post by: airman00 on March 09, 2009, 08:05:23 PM
how would it know if its going backwards
Title: Re: maze robot for science fair
Post by: galannthegreat on March 09, 2009, 08:32:58 PM
....then some encoders.... or you might aswell look at Micromouse robots
Title: Re: maze robot for science fair
Post by: dellagd on March 10, 2009, 05:50:18 AM
Maybe this would work.
it could have little checkpoints.
so once it got to a certain part of the maze, we block off what was behind it.
the real  part about the demonstration is that the robot can tuurn corners w/o running into walls and stuff no that it can figure out a maze.

if any of you have any Ideas on this though, plz tell me
Title: Re: maze robot for science fair
Post by: galannthegreat on March 10, 2009, 11:06:59 AM
That would be a great idea for demonstrations sake, which seems to me you want to do that, then later on add sensors for all of those other things you may want to add.
Title: Re: maze robot for science fair
Post by: dellagd on March 10, 2009, 03:12:49 PM
I can mount the rangefinder on a servoand make it scan so I dont have to buy 3 rangefinders correct?
Title: Re: maze robot for science fair
Post by: Razor Concepts on March 10, 2009, 03:14:34 PM
Yes, but the servo might not have all the range you can get, some servos don't get full 180 degree rotation.
Title: Re: maze robot for science fair
Post by: dellagd on March 10, 2009, 05:40:06 PM
here is a pic

(yes I know that is a PING)) ultrasonic rangefinder and not a IR Rangefinder)

and yes, I know Razor, I own a 180 degree servo :D
Title: Re: maze robot for science fair
Post by: ArcMan on March 11, 2009, 03:13:49 PM
if anyone has used IR LEDs for navigation, can you plz post the code in this post

This is for a line maze, but you could use similar principles for wall following.

http://www.societyofrobots.com/robotforum/index.php?topic=7076.0 (http://www.societyofrobots.com/robotforum/index.php?topic=7076.0)
Title: Re: maze robot for science fair
Post by: dellagd on March 11, 2009, 03:37:08 PM
I'm asking for code for IR recievers/ LEDS, not line following stuff.
I just want to know the code for using them.
I didn't see anything about IR LEDs in there.
Title: Re: maze robot for science fair
Post by: dellagd on March 11, 2009, 03:39:59 PM
me and my friend have until april 1st plz help!
Title: Re: maze robot for science fair
Post by: dellagd on March 12, 2009, 08:24:11 PM
Here is another pic.
I added two IR LED/reciever combos to each side so it can detect turns at a 4-way intersecion.
Title: Re: maze robot for science fair
Post by: Razor Concepts on March 12, 2009, 08:43:18 PM
IR LEDs and receivers have a very short range, probably about an inch or so.