Quote Originally Posted by Darrel Taylor View Post
Here's a different way to do it that should be a little more accurate.

https://www.picbasic.co.uk/forum/showthread.php?p=2010

Just change the Res1 and Res2 variables to match your voltage divider.
<br>
Thank you for the help,
I tested his/her program but it presents the same problems of mine. With the increase of the tension of the source, 0-25V, the mistake is going increasing, that it begins with 1mV for 10V of the source and it arrives to 8mV with 24V of the source.

Thank you,
LLEEDD