I made a voltage divider for my project. A 22k and 3.3k resistor with the AD tap across the 3.3k into RA0. The supply varies from 0v to 25.15v. When the math is run, 3.37v across the 3.3k resistor has to equal 25.15v read out on the LCD. This is where I'm hitting the brickwall. How do I scale this to work correctly? I can get a proper readout if I keep the input to the AD at or below 5V. (no voltage divider) I can't go above this because of the voltage limit of the AD. Is this a matter of a equating something to something else using PBP?
Bookmarks