Quote:
|
Originally Posted by sparksandtabs
to test my programming skills with a PIC(when i get it) i was gonna make a light sensing robt, to go to the brightest spot, or the darkest, but i dont know how i would sense the light, i could use a photoresistor or photo transistor but that would measure the like where the sensor is not out away from it
for example if the robot was in the shadow outside it would sense the shadow not the sun light
|
A photoresistor is a good option. You'll need to mount it so that it has a "view", like putting it at one end of a tube with the other end open and pointing away. It'll act something like a one-pixel camera. If you place the tube on a servo you'll be able to scan the scene in various directions before deciding which way to turn the robot. If you mount it solidly to the robot you'll have to turn the whole thing to look for light and dark.
Multiple sensors with different "views" can make it easier to decide which direction to move at any given moment.