PIC-WEB thermistor code - hi res

Started by eagleeye, December 02, 2012, 05:07:49 PM

Previous topic - Next topic

eagleeye

Hi
I am not familar with the thermistor on the pic-web.
Can anyone share code that can get more resolution out of
this thermistor?

Regds
Allan

LubOlimex

Hello Allan,

We have used the standard B equation found here: http://en.wikipedia.org/wiki/Thermistor. The only parameter unknown is the temperature. Over the course of time we have used different thermistors with PIC-WEB each with a bit different B. The last revision use thermistors with B=4000 but previous ones have used thermistors with B=3900 and B=4200.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

eagleeye

Hi Ok, Just to clarify.. I looked at the thermistor code in stack 5.42, the code implements
a very accurate sampling as opposed to Stack 5.31 code.

However the temperature variable should be a FLOAT and not an int.
The developer must also provide their own ftoa function so that
the temperature has decimal points shown.

Allan

LubOlimex

Hey eagleeye,

Thank you for clarifying.

The example provided doesn't aim at accuracy. Every developer (who agreed with the license agreement) is free to modify the demo programs to fit his needs.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

eagleeye

Quote from: LubOlimex on December 17, 2012, 01:02:27 PM
Hey eagleeye,

Thank you for clarifying.

The example provided doesn't aim at accuracy. Every developer (who agreed with the license agreement) is free to modify the demo programs to fit his needs.

Best regards,
Lub/OLIMEX

Sure, not everyone are experts, so I am looking to Olimex to lead the way for the best
way to utilize their boards. The new code in  Stack 5.42 is very comprehensive.
This is excellent.

ALlan



LubOlimex

Thank you Eagle,

Please check the updated manual of PIC-WEB - it features new first steps section updated to this date:
https://www.olimex.com/Products/PIC/Development/PIC-WEB/resources/PIC-WEB-C.pdf

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex