I have a circuit which has a 3.7V LiPo Battery with its positive terminal tied to a power switch which is connected to the sparkfun 5V boost converter (http://www.sparkfun.com/products/10255
) and the negative terminal tied to ground of the system. On the the positive terminal of the battery, it is also directly connected to an analog pin of the atmega328 microcontroller (running off the 5V from the regulator) to measure battery voltage. My issue is even with the power switch off, I'm getting 3.2V on the 5V rail of the system. I believe the issue is related to having the battery tied directly to the analog pin, but don't really understand why or how to fix the issue. Unfortunately I'm under NDA for this school project so I can't post a schematic. Any assistance would be appreciated.