Hi, I have bought a 3000Mah lipo battery that I run my arduino mega with.. (because of my fear of blowing up myself and my batteries I decided to buy a powerbank and just hack it instead). I am using my mega with a touchscreen and for my project I want to show how much juice there is left on the battery, maybe showing warnings when the battery gets low. Anyways I have no idea how to do this... ( I do not want to show it in percent, I was thinking more like showing four blocks that indicate 1/4, 2/4, 3/4 and 4/4ths. as percent is not necessary)
Currently the battery is connected to a protection and charging circuit, from there it goes to GND and VIN. Should I take a wire directly from + on the battery to an analog pin, or should I take it from the protection circuit?
is there any library for this, do I need one?
Any information regarding this will be appriciated alot as I need my project done in two weeks! :P