apache,
for a start I would recommend to use a 10 turn precision trimmer (10k) as a voltage divider.
(they are about 50 cent)
You don't have to worry about the temperature range.
The overall resistance of the trimmer may change with with the temperature, but this value does not really matter, the only thing that does matter is the ratio (R1:R2)
and that does not change.
Code:
+10-18 V -----------
|
-
\| |
|\|
| |\______ to PIC ADC
-
|
Ground -----------
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
Bookmarks