Lipo battery monitor for 1s-6s packs
While measuring voltage is possible with an AVR, its non-trivial to calculate the amount of juice left in it. This is done using precise coulomb counting techniques. Maxim makes a variety of these ICs which can talk to the AVR over the Dallas 1 wire bus.  These ICs are very low power and feed off the batter directly, which lets them stay on continuously even if the AVR is off. They generally include the coulomb counting algorithms which take into account the behavior of Li or LiPo cells,  and can compensate for temperature and cell degradation and keep track of charge cycles. 

You can look at the DS2780 for an example for such an IC,  although it's only for 1S and can be used for 2S. There are other chips of the same family which work for larger arrays. 

Note that if you want to be able to actually shut off the AVR entirely and prevent any leakage from the DS2780 via the 1 wire conection, you would need some sort of a level translating buffer sitting in between which you can tristate the output of. Ive used the TI SN74LVC1T45 for this (one in each direction) with success. . Opto isolation would also work but would be an unnecessary power consumer.

This is, however, not a DIP solution. Further, its generally best practice to keep this thing as close to the cell as possible -  generally touching it - to make the temperature compensation work well.