Spring Sale: 5% OFF Over $89, Code: Elephant5; 10% OFF Over $149, Code:Elephant10



Arduino Project: Analog Temperature (Thermistor)

Posted by Fiona Su on

thumb

Introduction:
Thermistor is a temperature measuring component based on the principle that a conductor changes in resistance with a change in its body temperature. As a result, it requires the temperature coefficient and the resistivity of the conductor to be as large and stable as possible. It is best that the resistance is in linear relationship with temperature. And it should also have stable physical and chemical properties in a wide range. Currently, the most used thermal resistance materials are platinum, nickel and copper.

Hardware Required:

  • Arduino Board *1
  • USB Cable *1
  • Thermistor *1
  • 10KΩ Resistor *1
  • Breadboard *1
  • Breadboard Jumper Wire*3

Schematic Diagram

thumb

Connection for REV4:

thumb

Connection for Arduino Mega 2560 R3:

thumb

Sample Code:

 
void setup()
{
  Serial.begin(9600); //Set serial baud rate to 9600 bps
}
void loop()
{
int val;
val=analogRead(0);//Read rotation sensor value from analog 0
Serial.println(val,DEC);//Print the value to serial port
delay(100);
}

Result:
Shown in pic 1 is data displayed by serial port monitor in room temperature. After the temperature is changed ( a bag with hot water close to thermistor ), the data changes as shown in pic 2.

thumb

Pic 1

thumb

Pic 2

0 comments

Leave a comment

Please note, comments must be approved before they are published