Electronics > Beginners

First non tutorial pic project thermistor question

(1/2) > >>

blewisjr:
Hello guys I am getting ready to develop my first solo pic uC project to test what I have learned.

I will be documenting it on my new blog when I get it up and running.  So on to my question.

Essentially I am going to have a thermistor hooked into an analog input and use the adc to calculate the voltage passing through it.  If the temperature is below 100 degree F I want to set an les low when the temp goes 100 or above I want to set the led high to light up. 

The issue I am having is how to figure out the temp without the thermistor data sheet.  The component came in a kit and I don't have the model info.  I can figure out the room temp resistance with a multimeter any suggestions?

SeanB:
Simple, take resistance with it in an ice/water mixture ( half cup of water and half cup of crushed ice, left to stand for 5 minutes) and then measure at 25C ( room temp give or take) and again at 100C (vigorously boiling water in a pot or kettle).

more info at

http://www.digikey.com/Web%20Export/Supplier%20Content/api-technologies-1171/pdf/api-ntc-engineering-notes.pdf?redirected=1

Updated, looked further at the google results for thermistor curve and foun a better explanation for you.

http://www.mstarlabs.com/sensors/thermistor-calibration.html



mariush:
Get a multimeter with temperature reading.
Connect a lcd screen or serial output to your pic to get the ADC values.

Measure at room temperature.
Put it in the fridge with the multimeter to get a value at colder temperature.
Put it under a desk lamp to get it slightly up, to about 30,40c

Basically get several measurements and draw a pretty graph to figure out what the ADC should report for the missing temperature values.

blewisjr:
Awesome never thought of doing those things.  Really helpful thanks a bunch.

dimlow:
If its only ever going to be 100 deg, then great, just measure the resistance of the thermistor at 100 deg and use that in a simple voltage divider to the ADC of your pic. But if you are going to be measuring the Temp,or be using the temp for anything else, your going to have to do a lot more work. Thermistors are not linear, and you will have to use the  Steinhart Hart equation in the pic to get the correct temp from the curve. Looking at the  Steinhart Hart it looks complicated, but when you come to use it, its not that bad. You just need 3 points on the curve as reference. These are mostly given on the data sheet, but you can measure the three points. You then pump these into the equation along with your reading from the ADC and you get your temp. The problem doing it this way is that you will need floating point math in the pic, this is slow and can take a lot of space. Another way would be to pre-calculate a table and use that in the pic, then no math is needed, except for maybe interpolation. There are many examples on the net and many different ways of calculating the curve, Google is your friend here.

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod