Tuesday, February 14, 2012

Photoresistor to Control servo

Was looking up information on photoresistors and found some good info on this site http://www.societyofrobots.com/schematics_photoresistor.shtml  .... so I decided to make the voltage divider i came across. Made it up on a breadboard with a led .... idea was to get a led to light up when less light shined on the photoresistor ... worked very well and was easy to set up.
Then thought wouldnt it be nice to connect this to my Arduino board and get it to control a servo eg when less light lands on sensor the servo would turn. Was'nt sure if it was possible to do .... but surprisingly i figured it out and got it to work.
Still have some work to do on it ... as its light dependent ... and light changes throughout the day what would work at one time in the day would not work at a later time as the readings programmed into the arduino change .
But it dose work very well for a few hours until the light has changed. So adding the video i made so take a look and see.



No comments:

Post a Comment