Author Options:

which sensor can i use for maze followin toy robot car and the circuit diagram for the motor and sensor with Arduino Answered

which sensor can be used for a  toy robot car that can make its way out from a maze without stoping im using  dual motor gearbox and Arduino Duemilanove USB Board and the circuit diagram for the whole fuctioning of the toy robot car......please help



Best Answer 8 years ago

It depends on the size of the maze and the robot, what your budget is,and what your level of expertise is.<br /><br />You can make whisker sensors by soldering a wire to a <a href="http://parts.digikey.com/1/parts-kws/lever-switch">lever switch</a>, mount one on each side of the bot like whiskers to detect side walls,and one on the front to detect stuff in front. They're cheap andsimple to use, since buttons are either on or off. But becausethey're such general sensors the robot might behave somewhat poorly.<br /><br />Another option is to use <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8959">infrared sensors</a>. They're good for detecting objects at around a foot or closer. For longer ranges you can use an <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8502">ultrasonic rangefinder</a>.<br /><br />Both of these sensors are more complicated to use since they have morecomplicated output than on/off. But because they report the distancethey can see you can make a robot that behaves a lot smoother andnavigate a maze more quickly. Since you say it should navigate themaze "without stopping" one of these is probably your bestbet. <br /><br />They are usually used in one of two ways. The first is to mount asingle sensor on a servo that moves it back and forth to find obstaclesin front and off to the side.<br /><br />The second way to use them is like the buttons, mount three of them onthe bot--front, right and left. This of course triples the cost,and you can only use one senor at a time or they'll interfere with eachother, but it might simplify the build and programming, depending onyour experience.<br />

thank you for the suggestion ...i think i will go with the ultrasonicrangefinder  can you please help me with the circiut diagram forthe whole functioning of the seneor ,dual motor gearbox and the arduinoduemilonove USB board........

does it know what the maze looks like?

 no it does not know ........it has to make its way out like turn to the side where there is no obstacle

a sonar sensor (the type that measures the distance in front of your robot)

if it sees that the sonar is taking a really long time to bounce back, it will know that there is an open space

You could use a touch sensor so when it hits a wall, it turns. Or, you could paint a thin black line along the wall and use a light senser to detect it.