Instructables
Picture of Arduino Light Following Robot

Overview

This instructable will use three photoresistors (light dependent resistors) and an Arduino to control the motion of a robot. Any common robot chassis can be used for the robot. The light sensors will be mounted on the left side, right side and front of the robot. When light of sufficient intensity falls on a sensor, the robot will respond with a left turn, right turn or forward movement, corresponding to the location of the sensor that is activated. The instructable will also pass along some electronics tips that I have found useful and, hopefully, will prove useful to others.

 
Remove these adsRemove these ads by Signing Up

Step 1: List of Materials

Picture of List of Materials

List of Materials:

3x Light Dependent Resistors

http://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_202403_-1

3x 250K trimmers (potentiometers)

http://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_2200903_-1

3x Three pin sensor cables

http://www.trossenrobotics.com/robotgeek-3pin-sensor-cable

1x Duemilanove or compatible Arduino board http://www.freetronics.com/collections/arduino/products/eleven#.UzImtdhOWM8

1x DFRobot motor shield

http://www.dfrobot.com/index.php?route=product/product&filter_name=motor shield&product_id=69#.UzInGthOWM8

1x Arduino proto shield

http://www.adafruit.com/products/51

1x Robot Chassis

http://www.hobbyking.com/hobbyking/store/__26248__Simple_Expandable_Robot_Chassis_KIT_.html

2x 4”x6” Proto boards

http://www.elexp.com/ProductDetails.aspx?item_no=03013404&CatId=a936becc-2bfd-49bb-b59b-7c07715dbfea

Various standoffs and hardware. A good kit can be found at

http://www.dfrobot.com/index.php?route=product/product&path=46_99&product_id=700#.UzIrrNhOWM8

The standoffs used in this instructable are from a Trossen Robotics robot kit. The standoffs and hardware are also sold individually

http://www.trossenrobotics.com/standoff-variety-pack

http://www.trossenrobotics.com/nut-and-bolt-pack

1x 6AA battery holder

http://www.digikey.com/product-detail/en/BH26AAW/BH26AAW-ND/66737

1x 9V battery holder with barrel plug

http://www.adafruit.com/products/67

Finally, we will need some male and female headers

http://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_308567_-1

http://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_2076869_-1

Step 2: Robot Platform

Picture of Robot Platform
photo26.JPG
013.JPG

Robot platform preparation. As mentioned, any common chassis can be used for the robot, and I chose the Arexx robot chassis listed above. This chassis had a rather small upper deck, thus the need for one of the proto boards. Put four 3cm (or similar) standoffs on the existing holes on the lower deck of the chassis, and then position the proto board on top of the standoffs to form the upper deck. Mark and drill screw holes. See accompanying photo. This gives us a platform that we can drill screw holes into to hold various electronics and sensors. This platform can be reused with other sensors in future robot projects.

ThatArduino7 months ago

how is the motor controlled?

I'm kind of new to the whole the robot thing

joesinstructables (author)  ThatArduino7 months ago

The motors are controlled by a DFRobot motor shield. Here's a youtube video describing the shield https://www.youtube.com/watch?v=Uqtdf1vYM6Q and here is a link to the manual http://www.dfrobot.com/wiki/index.php?title=Arduino_Motor_Shield_(L298N)_(SKU:DRI0009)

septimia78 months ago

Cool!!

BIGDOG19718 months ago

Great job. Very nice.

Take a look at my instructables too (my BUGBot) http://www.instructables.com/id/Basic-Principles/

Voted.

And i been made analog car. :)) https://www.youtube.com/watch?v=4rYxZ-xUAAI

craftclarity8 months ago

Nicely documented....Sweet Robot!!!!

C.V.Hariharan8 months ago

A neat and nice project. Keep it up!