You may get all kinds of misleading readings without a battery connected, depending on the technology used, the one I built some time ago requires to see a battery voltage/load before you see any reading.
Max.
Dear Sir/Mam.,
We are using the LTC2941 IC for the Li-ion battery level indication(3.6v) and also use the charging IC(LTC4057)with AT32UC3A3 controller.
Just now i made the hardware connection based on this.
Then i need to connect the LED for the battery level charging and discharging based on percentage.
How can i made the code for the above concept.