temperature shield

This module connect with Arduino Special Sensor Shield.
http://www.arduino.cc/playground/ComponentLib/Thermistor2

#include
double Thermister(int RawADC) {
double Temp;
Temp = log(((10240000/RawADC) - 10000));
Temp = 1 / (0.001129148 + (0.000234125 * Temp) + (0.0000000876741 * Temp * Temp * Temp));
Temp = Temp - 273.15; // Convert Kelvin to Celcius
return Temp;
}
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.println(int(Thermister(analogRead(0)))); // display Fahrenheit
delay(100);
}

http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=270669450328&ssPageName=ADME:L:OU:US:1123

29 views and 0 responses