Thank u 4 ur response (short enough :-).
You are hilarious. And I dont mean that in a bad way.
Well so let me answer your question:
1. I bought this sensor kit:
http://www.physicalcomputing.at/shop/article_A-1107500/Sensor-Kit-Basic.html?shop_param=cid%3D5%26aid%3DA-1107500%26
In there is this sensor:
http://www.physicalcomputing.at/shop/article_A-1101400/Temperatursensor.html?shop_param=cid%3D5%26aid%3DA-1101400%26back%3Dparent%26
If you click on Datenbatt (Datasheet in German) you get the pdf I posted here.
I would be happy to know myself which one is mine.
Do Thermistor have the same colorcode as regular resistors?
If so from top to bottom (gold-orange-red)
I thought the whole concept is that the resistance changes with temperature.
2. Code: As mentioned above. Simple Code from the page I indicated. But here it is.
I commented out Celsius to Fahrenheit:
Code:
#include <math.h>
double Thermister(int RawADC) {
double Temp;
Temp = log(((10240000/RawADC) - 10000));
Temp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp ))* Temp );
Temp = Temp - 273.15; // Convert Kelvin to Celcius
// Temp = (Temp * 9.0)/ 5.0 + 32.0; // Convert Celcius to Fahrenheit
return Temp;
}
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println(int(Thermister(analogRead(0)))); // display Celsius
delay(1000);
}
double Thermister(int RawADC) {
double Temp;
Temp = log(((10240000/RawADC) - 10000));
Temp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp ))* Temp );
Temp = Temp - 273.15; // Convert Kelvin to Celcius
// Temp = (Temp * 9.0)/ 5.0 + 32.0; // Convert Celcius to Fahrenheit
return Temp;
}
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println(int(Thermister(analogRead(0)))); // display Celsius
delay(1000);
}
3. "Do long cables behave differently in these circumstances?"
Dont know. You tell me.
4. "As someone said in another thread-- a glass of water with ice gives you 0 deg. C or 32F deg. -- then you can calibrate your readings as you see fit."
How does the calibration work. After I stick the sensor in a glass of icewater it gets "reset" to zero and then works.
Or is this to know what I am measuring. I am sure that my room did not have 5 degrees.
Thanks a little :-)
