3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

The Arduino Mothbot

Step 7Integrating the Light Sensors

Integrating the Light Sensors
«
  • IMG_2738.JPG
  • IMG_2742.JPG
  • IMG_2741.JPG
  • IMG_2740.JPG
  • IMG_2739.JPG
What would an Arduino Mothbot be if it didn't have light sensors? The point of this simple project is to make a robot that is attracted to the brightest light. For this we'll need to integrate some light sensors, also known as photo-resistors.

1. Again, disconnect the power from the servo motors before doing this step

2. The setup for the light sensors will be done twice. It is almost the exact same setup as the momentary switch. Actually, it is the same setup, but this time you will use the light sensor (photo-resistor) instead of a momentary switch.

3. Because this robot will use the two light sensors to pick a direction to drive it is recommended that you set up each light sensor on opposite sides of the solderless breadboard or as far apart as possible.

4. Connect one end of a light sensor to the (+5V) power line and the other end into a small strip in the center of the board.

5. Connect a 10k ohm resistor to that same strip and the other end to ground

6. Now connect a jumper wire from the small strip (where the photo resistor and regular resistor are connected) and plug the other end into an analog input.

7. Connect the left sensor to analog input 0 on the Arduino and the right sensor to analog input 1.

8. You should now be able to use the light sensors to move the servos.
« Previous StepDownload PDFView All StepsNext Step »
1 comment
Jan 1, 2010. 1:09 AMkinglevi says:
 Very good project I would like if you could show me the curcit digram.Planning a similar project .The digram would be very helpful.THANKS

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
51
Followers
7
Author:natantus(Chris Gilmer Project)
I'm a software and aerospace engineer. When I've got free time I like to work on robot projects and love to play with my Makerbot Cupcake and Eggbot. I would love to be involved in DIY prosthetics a...
more »