Build a simple light following robot with common low cost parts.  You will need a soldering iron, hot glue gun, and an ohmmeter if you do not have matched light sensor cells.  This robot will follow light from a flashlight.  These parts are available at many electronics suppliers, and are common in on-line surplus outlets.

Parts and Tools:

    1) Two small DC motors, with fairly long shafts.
    2) Three popsicle sticks
    4) Two potentiometers, around 10K
    5) Two (matched) CdS cells
    6) Insulated wire
    7) Two N-Channel MOSFETs
    8) Two diodes, preferably fast switching type
    9) Tube or shrink-tubing to use for wheels
   10) [optional] 1/2 ping pong ball, or metal thumb-tack, to use for rear skid.
   11) Hot glue, and hot glue gun
   12) Solder, soldering iron
   13) Multimeter (only needed if you need to select CdS cells)
   14) 9v battery plug
   15) 9v battery

On-line surplus electronics stores often sell large bags of Cadmium Sulfide (CdS) light sensor cells, which are Light Dependant Resistors (LDRs) for reasonable prices.  When using cells from such a grab-bag, you should be careful to select two matched cells with a similar resistance under both low and bright light.  The values of these cells can vary significantly.  Matching to within 10-20% is sufficient.

This robot is based off of two mirror-image motor driver circuits as shown here.  The photocell on the left side drives the motor on the right, and vica-versa.

Step 1: Select Matching CdS cells

If you are working from a grab-bag of cells, you will want to select two fairly similar photocells.  If you purchased matched photocells, you can skip this step.

Measure the resistance of cell in dim, ambient light. Repeat this measurement pointing toward a lamp. The second measurement should be significantly lower.

Repeat this measurement on several cells until you find two which have similar values both under dim light and when pointed toward a lamp.

<p>How fast they should switch, the diodes?</p>
hi i am gathering a team of people with very specific talents with goal to make miniature swarm robots . my design till now is almost 50 similar to what you have accomplished in this instructible . if you want to join . contect me . or if you know someone else who can . provide info. <br><br>will be happy to state you as co author in resurch paper about this work if you join . <br><br>sarman(dot)shah(at)gmail.com<br><br>live long and prosper.
<p>Would this work with a single potentiometer to adjust the sensitivity if it was the last thing in the circuit before the battery ground? Or in your experience was it important to be able to adjust the potentiometers individually?</p>
potiometer is 3 way switch or something else??? please tell me!
<p>Hi Great Instructable! I swear I checked all the comments first before I ask this, I'm sure someone has before I, Is there any way to reverse this ciruit? I want the robot to STOP when the Photos' receive light. In other words, if the 'bot is in the dark...it should THEN move until it finds light or turns to face it, then stop. as if it wants to charge it's solar cells ya' know? since the motors are &quot;triggered&quot; only in light it would be running for the dark. Much Thanks!!</p>
<p>You could swap out the NMOS with a PMOS transistor. That way, the motors will run until light turns off (instead of on) the transistors.</p>
<p>Missed the earlier notification. If you swap the motor leads you can get a bot that runs away from a light, but stands still in the dark. You would &quot;push&quot; it around with a flashlight, instead of having it follow one. You will find that such a pusher is a little harder to control than a follower.</p>
To make*
<p>Depends on how many spare parts you have around. Shipping will be an issue if you don't stock things. I can do it for about $5. $1 ea for motors. $0.10 each for transistors. $0.25 each for potentiometers. About $0.20 each for CdS cells, these are mostly only available as surplus. Cheap in bulk... bags of 100 or so. $0.25 for battery connector, $1 for battery. I have resistors, tape, wire, little tubes laying around. Solder. Hot glue.</p>
About how much is it toke one
Hey, this is a fantastic project. I loved the way you explained all the details of the project......
Any small(ish)-signal n-channel mosfet will do. 200mA peak should be sufficient. I used several (whatever we had around the lab). 2N7000 will do http://www.goldmine-elec-products.com/prodinfo.asp?number=A20384 <br>vn2222, for more power... bs170, for MASSIVE power (20A?) these are cheap (around $0.50 ea) http://www.digikey.com/product-detail/en/NTD5867NL-1G/NTD5867NL-1GOS-ND/2401422
which N-Channel MOSFET???
I believe that is cut up &quot;screendoor/storm window Spline&quot; being used for the wheels. but anything that grips well will work.
killbox: you ringer. you know it is screen holder... I got it from you! You could punch a hole in almost any rubber, and I bet there are grommets around that will work.

About This Instructable




Bio: Degrees in EE, specializing in Digital Signal Processing. Working as a software engineer for 20+ years.
More by Mr.What:Roasted Basil Pesto Arduino IR Sensor Timer Basic tank-drive robot control over Bluetooth using mbed with the Freescale K64F 
Add instructable to: