Simple and Cheap Temperature Measuring Instrument Using Thermistor
by Niranjan_Niru in Circuits > Arduino
1764 Views, 6 Favorites, 0 Comments
Simple and Cheap Temperature Measuring Instrument Using Thermistor
simple and cheap temperature sensor using NTC thermistor
thermistor changes its resistance with change in time using this property we are building temperature sensor to know more about thermistor
Components Required
Arduino uno (or) any arduino will work
some jumper wires and bread board
1 X 10 k resistor
1X NTC 10k thermistor
Connections
(Ground) ---- (10k-Resistor) -------|------- (Thermistor) ---- (+5v)
| Analog Pin 0
Code for Fahrenheit
#include
double Thermistor(int RawADC) { double Temp; Temp = log(10000.0*((1024.0/RawADC-1))); // =log(10000.0/(1024.0/RawADC-1)) // for pull-up configuration 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; // Convert Celcius to Fahrenheit return Temp; }
void setup() { Serial.begin(115200); }
void loop() { Serial.println(int(Thermistor(analogRead(0)))); // display Fahrenheit delay(1000); }
Downloads
Code for Celsius
#include
double Thermistor(int RawADC) { double Temp; Temp = log(10000.0*((1024.0/RawADC-1))); // =log(10000.0/(1024.0/RawADC-1)) // for pull-up configuration Temp = 1 / (0.001129148 + (0.000234125 + (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(Thermistor(analogRead(0)))); // display Fahrenheit delay(1000); }
Downloads
Conclusion
after completing all the steps now open the serial monitor and set the baud to 115200 you can see the temperature readings
Further developments you can add lcd to this
thank you :)
if you have any doubts feel free to ask