Hi,
I am trying to find an example code that show how to monitor a battery voltage using the internal 1.1v ref. I have a standalone Atmega328-AU on a PCB running at 8MHz using a 3.7v lipo battery.
Since the batter voltage is changing (from 4.2v fully charged, to 2.8v "empty") I would like to monitor this voltage and to get a series of five LED to light up according to the battery voltage.
Any tips or examples on how to do this?
Thanks