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