Thermistor
wiresalot
Posts: 40
Hello
I am using RCTIME with a thermistor to calculate temperature.
Is there a way i can skip the rc time code, so it only runs that part of the program every 1000 or so
loops? Running RCTIME every loop is causing the thermistor to heat it self.
Thanks,
wiresalot
I am using RCTIME with a thermistor to calculate temperature.
Is there a way i can skip the rc time code, so it only runs that part of the program every 1000 or so
loops? Running RCTIME every loop is causing the thermistor to heat it self.
Thanks,
wiresalot
Comments
'
Post your code and we can help you with the change.
This is just a test program, im still learning.
It works, but doesnt mean the code is correct.
The schematic is the same as in the "Whats a micro controller" book. just replaced the resitor with a thermistor.
Im just checking room temperature. I know it isnt linear.
Thanks
wiresalot
I like the screen name that you picked out.
You can try a A/D Converter TLC548, which takes the analog voltage from the thermistor and converts it into digital equivalent number that is read by the SHIFTIN instruction. The two things A/D Converters provide you is.
1. 8 bit resolution
2. 40,000samples per second
One drawback is it uses 3 I/O pins in stead of one pin like RCTIME does.
I seen that in my searching, dont like the fact that it does use three pins. I dont need alot of resolution just measuring
air temperature. Did some researching on J thermocouples, (we use them at work). That would be the sweetist solution.
Thanks for the replies!
wiresalot
'
Take a look at the DS2760 T/C reader. It will read type "k","J',and "T" T/Cs
Its very accurate as well.
http://www.parallax.com/tabid/768/txtSearch/DS2760/List/0/SortField/4/Default.aspx
Maybe its time to upgrade to the next micro controller
Thanks
wiresalot
I did my calibration, with an idustrial thermometer a cal3200.
I have figuered out my calculation to be : temp-236/27.5=a , 100-a= nbvar
this works on paper, I cant seem to get the math to work in my programing,
My code is for the math:
HIGH 10
PAUSE 1
RCTIME 10, 1, temp
nbvar = (temp - 236 / 27.5) = "a" , 100 - "a"
DEBUG HOME, "time= ", DEC4 nbvar
-temp is a Word
nbvar is a PINK variable
Thanks
wiresalot
nbvar = (temp - 236 / 27.5) = "a" , 100 - "a"
What are you trying to do?
You can acquire an R-T (Resistance Temperature) conversion table from the maker of this thermistor. What this table provides you with the resistance values that to the corresponds to temperature values of the thermistor you using, which should help you with the math that you need to do.
Take my RCTIME subtract 236, divide that answer by 27.5 = a
100-a= nbvar
Thanks
wiresalot