Pages: [1]   Go Down
Author Topic: 2 pin temp censor  (Read 823 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 71
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

so ive ben searching for a library for an 2 pin temp censor the censor is like an variable resistor that reakts on temp so if some one could  help it would be nice:)
Logged

France
Offline Offline
God Member
*****
Karma: 34
Posts: 978
Scientia potentia est.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A thermistor? I don't think you need a library for that smiley

http://bildr.org/2012/11/thermistor-arduino/
« Last Edit: May 04, 2013, 02:26:05 pm by guix » Logged

California
Offline Offline
Faraday Member
**
Karma: 88
Posts: 3354
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You don't need a library, you simply need to put the device in a voltage division circuit and use analogRead().
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 71
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

but i still do need the values for what the resistens is at what temp
Logged

France
Offline Offline
God Member
*****
Karma: 34
Posts: 978
Scientia potentia est.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I never tried thermistors but from what I've read, they aren't accurate, even 2 thermistors of the same model, could show different values at the same temperature. So you have to make your own lookup table by using a thermometer (or 2, to be more accurate) and measure the resistance at different temperatures. You could use a sensor such as the DHT22 (they are accurate, I have 2 of them and they show the same temp.) to automatically build a lookup table smiley
Logged

Brussels
Offline Offline
Newbie
*
Karma: 0
Posts: 19
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey i would use a tmp36 or LM35 temperature sensor instead. They barely cst 1$ and give reliable temperature readings.
you also dont need a library for them since all you have to do is times the voltage by 100 (for the LM35, but you can find datasheets all over the internet anyway)
lots easier than thermistors smiley-wink

E

PS: careful not to connect these the wrong way around or they become scorching hot (personal experience)

Logged

Dee Why NSW
Offline Offline
Edison Member
*
Karma: 47
Posts: 2173
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

but i still do need the values for what the resistens is at what temp


You are referring to a lookup table. You don't need a library.

Check here anyway

http://arduino.cc/forum/index.php/topic,164447.0.html

It shows what the lookup is about.
« Last Edit: May 04, 2013, 08:28:27 pm by Nick_Pyner » Logged

Pages: [1]   Go Up
Jump to: