Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: roksraka on June 21, 2008, 03:28:55 AM
-
Hello, everybody!
I have a question and I'm hoping someone can help me find the answer. I want to make a simple photovore robot using Arduino Diecimila microcontroller. How do I attach two photoresistors on the robot? How do I program it?
(And please come up with something that does NOT require soldering and it is simple - I'm just a beginner!)
Thank you for you help!
roksraka
-
Check out the SOR home page. From there u can click on members pages ect and there are tutorials on how to make a photo resistor. I haven't used this board but im sure many other people have. Search this forum and check out google as well.
-
you'll need an analog port , also the photoresistor tutorial which silent mentioned can be found here
http://www.societyofrobots.com/schematics_photoresistor.shtml
-
I suggest learning how to solder . . . its an important skill for robot builders :P
Anyway, if you don't want to solder, you will have to find/buy a photoresistor with all the wiring already done.
To get you started:
http://www.societyofrobots.com/robot_parts_list_sensors.shtml
-
These two tutorials on my Arduino PhotoVore! project can help too:
http://www.ceruleanplains.com/Documentation/Worksheet1.pdf
http://www.ceruleanplains.com/Documentation/Worksheet2.pdf
They're PDF tutorials on one way to build a photovore. I've yet to update the YouTube video (in Worksheet2) due to my primary project, but you should get the idea from the annotations in the video.
-
stick one end of a photoresistor into the 5V supply and the other in one of the 5 analog ports, do the same thing with the other photoresistor, then do a program like if photo1>photo2 turn left, else if photo1==photo2 straight, else turn right
that should pretty much take care of it.
-
stick one end of a photoresistor into the 5V supply and the other in one of the 5 analog ports
ummmm but that wouldn't work, you'd end up with just 5V at the ADC . . . you need a voltage divider, so after you do this, put another resistor between ADC and ground:
http://www.societyofrobots.com/schematics_photoresistor.shtml
-
I think its tied low already