I'm not so good with the code you linked, but I have
worked with these thermistors in LabVIEW.
Have you seen this page already?
or
At AeroVironment, we used lots and lots of this very
thermistor. They are rock solid and work very well.
I'm way down on the learning curve here, so pardon me
if I am repeating the obvious.
Yours,
Forbes Bagatelle-Black
- Forbes Bagatelle-Black, Santa Clarita, CA
650B Tires, Leather Saddles, Classic Roadster Bikes and Parts at:
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
So each number that the A/D converter gives you represents 0.00488
volts. So in this case, 771 would be:
771 * 0.00488 = 3.76 volts
So 3.76 volts is what is present at the PIC's analog input pin.
The other way you can think of this is that the A/D converter is giving
you a percentage of the reference voltage. So:
771 / 1024 = 0.752, so multiply that percentage by the reference voltage:
0.752 * 5 volts = 3.76 volts
I'm not sure about the rest of the equation though.
Chris