If you are referring to a photo resistor you can download "Robotics' with the Boe-Bot" text which covers this project.· Chapter 6, here is a link for the download:
Read What's a Microcontroller, learn about servos and Photoresistors, wirte a program using both!
Seriously though, why don't you tell us what you understand about both these devices, what you've done to learn so far, and what problems you are having in making it happen. People here are much happier answering specific questions than "tell me how's".
Stamp Works has an experiment for moving a standard servo using a potentiometer. It would be little work to replace the potentiometer with a photo-resistor and another resistor and scale the readings for that configuration.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Chris Savage Parallax Tech Support
Comments
http://www.parallax.com/Store/Books/EducationalTexts/tabid/181/CategoryID/66/List/0/Level/a/ProductID/138/Default.aspx?SortField=ProductName%2cProductName.·
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Parallax Tech Support·
Seriously though, why don't you tell us what you understand about both these devices, what you've done to learn so far, and what problems you are having in making it happen. People here are much happier answering specific questions than "tell me how's".
Sincerely,
Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
SelmaWare Solutions - StampPlot GUI for controllers, XBee and Propeller Application Boards
Southern Illinois University Carbondale, Electronic Systems Technologies
American Technical Educator's Assoc. Conference·- April, Biloxi, MS. -- PROPELLER WORKSHOP!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support