loading
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.

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

 
JohnW512 months ago

You listed a 9V batt holder in the parts list, but no mention of it was made in the assembly instructions. May we assume it was used to power the Arduino board? Of course the Arduino could also be powered by the 6xAA battery pack, but the electrical noise generated by brush-type DC motors would probably not make the microcontroller too happy. Is that why you used the 9V batt? Or did you use it after all. I don't see it in the finished robot.

SergioC27 months ago

on what software would i download the code?

can you the main circuit diagram.

how is the motor controlled?

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

joesinstructables (author)  ThatArduino1 year 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)

septimia71 year ago

Cool!!

BIGDOG19711 year 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

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

A neat and nice project. Keep it up!