Hi,
Dear All,
I have used 7.4V ,5200mAh battery ,i have interfaced with my controller(lpc2148) ,my battery is connected to controller's ADC input pin via Voltage divider and my divider is R1=10K and R2=4.7K.
As per calculation im getting 2.36V at divider's((R2/R1+R2)xVin) output.and my ADC Highest count is nearly 780 ;so i wanted to calculate percentage of battery .
can you guys please help me out .
Dear All,
I have used 7.4V ,5200mAh battery ,i have interfaced with my controller(lpc2148) ,my battery is connected to controller's ADC input pin via Voltage divider and my divider is R1=10K and R2=4.7K.
As per calculation im getting 2.36V at divider's((R2/R1+R2)xVin) output.and my ADC Highest count is nearly 780 ;so i wanted to calculate percentage of battery .
can you guys please help me out .