Oh well, there's some voltage divider and ohm law that i'm not going to explain on a friday
But to me, when at all possible, i try to avoid any kind of trim pot, software calibration is interesting... but there's alway extra work to be done... and the PIC Vdd, and voltage source have their own error margin as well. So i stick to the simple 2 resistor voltage divider
If you really want to stick with a Trim Pot, i would suggest something like...
<img SRC="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2493&stc=1&d=120795014 3">
Bookmarks