Michael Watterson wrote: > Lucas Tanure wrote: >> Yes, the system will be powered by the battery. And I want to know >> if the battery is on 20% of the power. It's a 5.0v battery. > > you need a stable reference > > The simplest scheme is to have a comparator reference and detect 1V > or a fraction of 1V via resistor divider from the 5V > The reference volts must be stable as the battery discharges. But I > perhaps misunderstand, maybe you don't mean 20% of volts He clearly said 20% of "power", which makes little sense either, but is certainly not volts. Power is the instataneous energy transferred per time. Sortof like the concept of "cold cranking amps", but of course not exactly since the units are different. This guy sounds like he's not a native english speaker, so I think he probably meant "energy" or "capacity", not power. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist