I don't know if this will apply to your setup or plan, but I did a motion detector once that used two photo diodes connected to adc. The software would discount any light changes that occurred simultaneously. Thus, a changing light level was never a problem. The detector software only looked for changes that did not occur simutaneously. John ----- Original Message ----- From: "Alexander Luis Perez" To: Sent: Saturday, March 01, 2003 3:59 PM Subject: [PIC]:calibrating light sensors with the 16f628 in c2c > I want to have a light seeking robot use > phototransistors in a voltage dividing circuit and > use the comparators on the 16f628 take the brightest > of the two, but i don't want to constantly adjust a > potentiometer for all the varying light levels. I > once saw a project that did just that but didn't show > any code for it. could anyone help me with this? > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body