>How much resolution do you need? I just used a fixed 10K resistor as half >of the voltage divider and the CdS cell as the other half, but of course >I'm just detecting daylight so I'm only feeding a comparator. You could >use a 1K resistor as half a voltage divider and still get 75% of the full >ADC range if it's 4K in the light, or 87.5% if it's 7K. > >Dale No specific resolution, but more is better. I am just doing this trying to learn to use pics and electronics more, so I picked a random (and almost useless) project. So it is now an exercise in trying to solve a problem with certain constraints. Thank you. Brian. _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu