Page 1 of 1

measuring battery voltage

Posted: Tue Nov 13, 2012 5:41 pm
by Ondra
Good day All.
I want to use the PIC to measure battery voltage up to 7.4 volts. Can someone point me in the direction where I can find
a circuit and code example? Thanks in advance.

Ondra

Re: measuring battery voltage

Posted: Tue Nov 13, 2012 7:54 pm
by Enamul
Here is a voltmeter that can be used up to 10.2V..I forgot to mention one thing..you have adjust adc voltage such a way that when your input voltage is 10.2; the voltage at adc pin should be 5v. Bcz voltage at PIC input can't be greater than 5V.