Simple Light Following Robot

 by Mr.What
Featured
180adjustSensorPosition.jpg
MOSFET_Motor_driverNT.png
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.
 
Remove these adsRemove these ads by Signing Up

Step 1: Select Matching CdS cells

CdS-photocells.jpg
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.

Mr.What (author) says: Mar 4, 2013. 6:09 AM
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
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
srao10 says: Mar 3, 2013. 10:38 PM
which N-Channel MOSFET???
killbox says: May 24, 2012. 10:27 AM
I believe that is cut up "screendoor/storm window Spline" being used for the wheels. but anything that grips well will work.
Mr.What (author) in reply to killboxMay 24, 2012. 12:06 PM
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.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!