Click here to Skip to main content
15,891,888 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have been searching around but was not able to find a suitable guide.
Scenerio is: The robot has to traverse a maze where some colored boxes are placed.
In each box it must drop a ball of matching colour and after all balls have been droped, then exit.
We will be using wall sensor(Model: GP2D120XJ00F Sharp sensor or Model: GP2Y0A02YK0F Sharp sensor) and color sensor(half of the work done:)), but really dont know about the code structure i.e. how to get the input from sensor, and how to traverse the maze with the help of input coming from wall sensor.
Note: The robot is not to be controlled by a remote control or bluetooth etc. The code has to be dumped in memory used with a microcontroller, must start execution when the robot is reset.

We are comfortable with java,C, C++. Any related tutorial or suggestions are highly appreciated.
Posted
Comments
wizardzz 28-Mar-12 16:47pm    
This sounds like an educational competition that I have seen around. What microcontroller have you decided upon? I would try forums related to the controller, though there are many people on here that can help. What part are you stuck on exactly?
WajihaAhmed 28-Mar-12 22:21pm    
I will be using 16F77A micro controller.
Basically I am confused in: which platform to use for the programming and how to handle the inputs coming from the sensors.

1 solution

I'd use an Arduino - check out the ^Teensy.
Teensy supports the Arduino dev environament, and is perfect for stuff like this.
Connect the sensor's Vo to one of the Teensy's analog inputs, then use the sensor datasheet's chart to compute the distance from the A/D reading.
You'll have troubles with the 15cm boundary, though.
Also unknown how you'll detect color as both of the sensors you list detect range not color.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900