> Scott Dattalo has good information on this technique at his website: > > http://www.dattalo.com/technical/software/software.html I have something similar here http://home.clear.net.nz/pages/joecolquitt/0pots.html BTW Kieren, I put you wrong, kind of, with that attachment. The "unmarked" resistor is in fact the 680k (it's unmarked in the pic I thought I was attaching). It sets the low battery voltage to 5V6 by comparing the 680k + 560k divisor to the 1/2 V+ set by the two 470k -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.