Alexander Luis Perez wrote: > 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? I just did some tinkering with the comparator module. ;-) Tell me more about how you've designed your control system so far. I'm curious about your use of the potentiometer. Tell me more about what you already have designed, and how it's connected together. michael brown "In the land of the blind, he who has one eye is king" -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body