Step 4: Buy the materials (A sensor so we can see.. erh - sense)

1 Sharp GP2D120 IR Sensor - 11.5" / Analogue
11.5" or another range will do. Only do not buy the "œDigital version" of the Sharp sensors for this kind of project, they do not measure distance as the analogue ones does.

Price: 10 USD
Get it here

Be sure to get the red/black/white wires for it. This is not allways included, and it is a non-standard socket!

This is actually not a favorite of mine, I usually use ultrasonic sensors, such as the SRF05 (find it anywhere via Google - they also sell it at the picaxe-storepicaxe-store where they call it SRF005 and have a picture of the back of an SRF04 in the shop! But it is the right one, and I did tell them but..). Anyway; The SRF05 is much more reliable and precise. It is also faster, but costs a little more, is a little more complicated to write code to, and a little more complex to install - so it is not used here, but if you are fresh, buy one of these instead ;)

If you go for the SRF05, I have made a small walkthrough to connecting the SRF05 here on letsmakerobots.com
<p>i got another main bored, and it is so different than the one ur using, i am so lost, btw i dont know what its called</p>
<p>i got another main bored, and it is so different than the one ur using, i am so lost, btw i dont know what its called</p>
<p>i got another main bored, and it is so different than the one ur using, i am so lost, btw i dont know what its called</p>
<p>will the arduino code differ largely from this one?</p>
instead of the sharp ir sensor does anyone think you could use a ultrasonic sensor? would the coding be different? im sorry im a newbie at robots X)
Maybe a little late to answer but, yes you can use a ultrasonic sensor although you need to change to code a bit as you most likely need to first send out a ping and then read the time it takes for it to return. have not read the code closely but it seems like the code doesn't send out a ping
Can this be created with a Bot Board 2?
Does anyone know where I can get some of those pins? Is there another name for them besides just 'pins' ? Thanks
I've usually heard (in the US), those pins called &quot;100 mil pitch headers&quot; or &quot;breakaway headers&quot;. The &quot;100 mil pitch&quot; part means that the pins are spaced 0.100&quot; (2.54mm) apart (this is critical, trying to make the wrong sized header work is a huge pain). They're also called &quot;breakaway headers&quot; because you can easily cut the strip apart to get just the number of pins you need in a row. Digikey is once source, here's an example part number (they've got more, from different manufacturers and at different lengths): <a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=S1032E-16-ND">S1032E-16-ND </a><br> <br> If you can find them at a local electronics store they're probably cheaper, but double check the pitch! (Can you tell I recently got burned on that one?)<br>
What kind of 330 Ohm resistor should i get? 1w, 1/2w or 1/4w? or does it matter? Going with a standard servo and the 330 Ohm resistor since it's cheaper. Sorry if this is a stupid question, just want to make sure I get the right one.
Any of the 330 Ohm resistor will do. It does not to be very accurate, and that is the differences; How accurate they are :)
Whoops, the difference between 1W, 1/2W &amp; 1/4W is *not* accuracy, it's how much power they can take. If you're attaching the resistor to a pin of your microcontroller it probably doesn't matter, because the microcontroller can't source enough power to burn up a resistor, but other times it might matter a lot! This website has a nice discussion of power dissipation in resistors, including an experiment! <a href="www.allaboutcircuits.com/vol_6/chpt_2/7.html">http://www.allaboutcircuits.com/vol_6/chpt_2/7.html </a>
Will the software work on a Mac?
I made this robot and love it. It's a great start into robotics and programing. Thank you for the instructable :-)
My servo doesn't seem to work correctly. When I put in the batteries, it twitches a little, but it won't take any commands from the program editing software.<br /> <br /> The software is working because the motors can be programmed.<br /> <br /> So far I've tried 2 different servo plug locations.<br /> <br /> Any idea what might be wrong?<br /> <br /> Thanks<br />
I have the EXACT SAME PROBLEM! <br>and my motors work great too.<br><br>FRITSL, HELP US!!!<br>thx in advance.
I Really do not understand this Step at all. i dont have an old servo or anything so i cant really do your method. and the way it says in the manual doesnt make sense either. could you please in some way, explain how to do it with the ribbon cable?
Why havent you responded to my above question yet?
Did you not also ask this on LMR? I think you got an answer there, no? Anyway, the deal is that I show you what part of the board is to be connected to what wire on the sensor. I am not sure I understand the part about using "the ribbon cable"; The only ribbons I know that comes along as standard, are only 2 pins wide.. and this analogue sensor needs 3. So how can you use the ribbon? That is excactly why I just show you what connections on the board goes to what wires on the sensor. It is not LEGO, if the stuff does not fit together, you will have to make it fit. The right connections must be made, and I suggest one way, there are millions.. some use bubble gum, you know ;)
hi... Im ralph Notarte 16 yrs. old.. from philippines.... and I have a question.. how to program the robot????...... and can you say it all???? thanks... REPLY [flag][delete]
so your saying have to make a way to do it? ok. (also, i did ask this on LMR, but i got the wrong answer i wanted
hi... Im ralph Notarte 16 yrs. old.. from philippines.... and I have a question.. how to program the robot????...... and can you say it all???? thanks...
<a rel="nofollow">file:///C:/Users/Gisela/Desktop/SDC10192.AVI</a><a rel="nofollow">file:///C:/Users/Gisela/Desktop/SDC10192.AVI</a><object height="385" width="480"> <param name="movie" value="http://www.youtube.com/v/ZnehCBoYLbc&amp;hl=en_US&amp;fs=1&amp;" /> <param name="allowFullScreen" value="true" /> <param name="allowscriptaccess" value="always" /><embed allowfullscreen="true" allowscriptaccess="always" height="385" src="http://www.youtube.com/v/ZnehCBoYLbc&amp;hl=en_US&amp;fs=1&amp;" type="application/x-shockwave-flash" width="480" /></object><br />
how hack a electronic mosquito trap<br />
I have a electronic mosquito trap , how can make cool things out of it.<br />
Are there any alternatives for double sided tape, its pretty hard to come by round where I am.
nice 'ible, i built one and it is fun to play with.<br /> i do have two questions tho,<br /> 1.) How does noise interference work? i mean, i know the noise can be annoying, but how does that mess with the circuitry?<br /> 2.) is it possible to add a photocell, and if so, where?<br />
I learned so much in the past year.&nbsp; Thanks to you frits.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;does anybody know if this one will work?&nbsp;<a href="http://world-educational-services.info/cart/index.php?main_page=product_info&amp;cPath=10_15_17&amp;products_id=53" rel="nofollow">world-educational-services.info/cart/index.php</a>
will an arduino work?
How to make money simply and easily! <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Do not miss the opportunity<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Register new: <br /> <a href="http://www.upbux.com/r?r=nibo" rel="nofollow">www.upbux.com/r</a> or<br /> <a href="http://www.palmbux.com/register.php/nibo.html" rel="nofollow">www.palmbux.com/register.php/nibo.html </a> <br /> <a href="http://www.hybux.com/?r=nibo" rel="nofollow">www.hybux.com/</a> <br /> <a href="http://www.clicksia.com/index.php?ref=nibo" rel="nofollow">www.clicksia.com/index.php</a> <br /> <a href="http://www.neobux.com/?r=niboo" rel="nofollow">www.neobux.com/</a>
&nbsp;where i can buy these motors in the eu
If you are in the US and looking for the yellow chip, I believe this isthe right one:&nbsp;<a href="http://www.alliedelec.com/search/productdetail.aspx?SKU=7550374">www.alliedelec.com/search/productdetail.aspx</a>
how would you program it to talk?
Does anyone know where to find those pins?
and on the back
can i put like a little wheel on the front so its steady
Please give any suggestion to the &quot;Instructables the Movie&quot; at <a href="http://www.instructables.com/community/Instructables-the-movie/">http://www.instructables.com/community/Instructables-the-movie/</a><br/>
btw some of the links dont work, if it doesnt work and it shows an ip in the address bar, replace it with
Awesome ible I just got a small question(I might try this later on maybe) Where did you get the small tank treads because I think that is a better design for what terrain I have in my area.
Some links to treads, and hints for first timers here:&lt;br/&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://letsmakerobots.com/node/387&quot;&gt;http://letsmakerobots.com/node/387&lt;/a&gt;&lt;br/&gt;<br/>
i did not short cut the pins do you thinks that is why my robot jerks forward and spins around. any way nice instrutable.
can you do something similar with an Arduino
There is a really nice project for the arduino, here is one of many online references to it:<br/><br/><a rel="nofollow" href="http://hackaday.com/2008/11/22/simple-servo-bot-plans/">http://hackaday.com/2008/11/22/simple-servo-bot-plans/</a><br/><br/>
Yes, "one" could, but it would be completely different instructions. Also be aware that as far as I know, no standard boards for the Arduino comes with a motor-driver, so this would have to be set up seperatly. I suggest you look at letsmakerobots.com, there are instructions, start at the "start here" (top menu", and on that page look for Arduino..
can you please help me . my robot jerks forward a little bit the looks both ways and jerks back and then stops.
Sometimes it helps to kick it. Other times it is a good idea to post the code that the robot is running, to make people hve the slightest chance to figure out what is going on :)
I did not short cut the pins do you think that could be my problem.
Could you get this stuff anywhere else than on the web? Perhaps Bestbuy or Fry's? or a place like that?

About This Instructable


387 favorites


More by fritsl: Your first real robot the easy way, learn all the basics while at it :) How to build your first Robot ($ 85)
Add instructable to: