what you need is a voltage divider made with 2 resistor, and then read the output of it. Once you have the reading, few maths to scale it in a readable mode.
have a look at Darrel's Pic voltage divider calculator
http://www.pbpgroup.com/modules/wfse...p?articleid=25
Bookmarks