This thermistor-based analog temperature sensor can be used with an Arduino to return the ambient temperature value in Celsius. Uses a 10K Ohm resistor in series with a thermistor to give an analog output.
Test Code
void loop () {
Serial.print (Thermister (analogRead (0))); // display Fahrenheit
ARD2-2213Serial.println ("c");
ARD2-2213delay (500);
}
# 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 Celsius
return Temp;
}
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 Celsius
return Temp;
}
void setup () {
Serial.begin (9600);
}
Serial.begin (9600);
}
Features
- Thermistor-based analog temperature sensor
- Accurately measure temperature without calibration
- Applications include gardening & home alarm systems
Specifications
Temperature Range
-55°C - +125°C
Resolution
9-12 bits (configurable)
Protocol
Dallas 1-Wire
Accuracy
±5°C
Software
Arduino library available
Colour
Black
Material
PCB
Dimensions
Length (mm)
20
Width (mm)
15
Height (mm)
5


0 Reviews:
Post Your Review