Temperature Sensor Using Thermistor With Arduino Uno

by Utsource in Circuits > Arduino

5366 Views, 2 Favorites, 0 Comments

Temperature Sensor Using Thermistor With Arduino Uno

20190913_085526.jpg
Hi Guys in this instructables we will learn how to use Thermistor with Arduino.
Thermistor is basically a resistor whose resistance varies with variation in temperature.
So we can read its resistance and get the temperature from it & Thermistor is very cheap compared to other temperature sensors in market.

Things You Need

Screenshot_20190913-084924__01.jpg
Km5Zu-2RIncAUweU7uG7IhyWPySZ0SqIgAI0-vk9w7767_IkthCPCcsirj2GGmXF4IdQDg8UVpHVLVM6CXnzFsG1hnAdSkK7BIhIOtEldXoZiDsvzsPo-6o0rD6Mda7UyOE=w456-h323-nc.png

For this tutorial you will need following things :

1x Arduino uno : https://www.utsource.net/itm/p/9221687.html





1x Thermistor (10k or 100k : i am using 10k here ) :


https://www.utsource.net/itm/p/1273468.html


1x 10k resistor :

https://www.utsource.net/itm/p/8166799.html

1x breadboard :. : https://www.utsource.net/itm/p/8031572.html

Few jumpers : https://www.utsource.net/itm/p/9221310.html

Schmatics

Screenshot_20190913-085008__01.jpg
Screenshot_20190913-084947__01.jpg
The circuit is very simple so please connect everything According to shown in the schmatics and you will fine.
You can also refer the image i attached of my breadboard connections.

Code

Screenshot_20190913-085024__01.jpg
Copy the following code & upload it to arduino :



#include

double Thermister(int data)
{
double temp;
temp=log(10000.0*((1024.0/data-1)));
temp=1/(0.001129148+(0.000234125+(0.0000000876741*temp*temp))*temp);
temp=temp-273.15;
Serial.println(" ");
Serial.print(temp);
Serial.print(" Celcius");
temp=(temp*9.0)/5.0+32.0;
Serial.println(" ");
Serial.print(temp);
Serial.print(" Fahrenheit");
Serial.println(" ");
Serial.println("..................................");
}

void setup()
{
Serial.begin(9600);

}
int i;
void loop()
{
i=analogRead(A0);
Thermister(i);
delay(1000);
}

Get Temperature on Serial Monitor

Screenshot_20190913-085108__01__01.jpg
After uploading the code, then open the serial monitor and you can get your Thermistor's temperature on your serial monitor as i am getting, refer image provided and you will fine.

Have fun reading temperature with Thermistor.