Call Us Now
0242159130 | 0546096840
Up to 2% reward

For new all Customers

Delevery schedule

We deliver  the same day through VIP bus parcel Service in Ghana

Discount on order gift

Save ¢10.00 when you spend ¢600+! 

Measuring Temperature by a Thermistor

Measuring Temperature by a Thermistor

In this tutorial, we will learn how to use a thermistor to collect the temperature data by programming Arduino. The information what a thermistor collects is displayed on the LCD1602. 

Hardware required

1 * Arduino UNO

1 * USB Cable 

1 * LCD1602

1 * 10kΩ Potentiometer

1 * 10kΩ Resistor

1 * Thermistor 

1* Breadboard

Several jumper wires 1

Principle of operation

A thermistor is a type of resistor whose resistance varies significantly with temperature,moresothaninstandardresistors.Inthisexperimentweusean MF52 NTC-type thermistor, and it is usually used as a temperature sensor. The key parameters of an MF52 thermistor: B-parameter: 3470. 25℃ resistance: 10kΩ.

note that there is a calculation  in relationship between the resistance of thermistor and temperature 

Experiment  code

//File name:   Experiment 16

/********************************

Description: The information which a thermistor collects 

             temperature is displayed on the LCD1602.The information which a thermistor collects 

             temperature is displayed on the LCD1602.

*******************************/

//Website: www.okuelectronics.com

//E-mail: support@okuelectronics.com

//Author: Okudzeto osei prince

//Date: 2019/08/18

#include <LiquidCrystal.h>


int tim = 50;                       //the value of delay time

// initialize the library with the numbers of the interface pins

LiquidCrystal lcd(4, 6, 10, 11, 12, 13);

int thermistorPin = 0;           // thermistor connected to analog pin 3


void setup()

{

  lcd.begin(16, 2);    // set up the LCD's number of columns and rows: 

  lcd.clear();         //Clears the LCD screen and positions the cursor in the upper-left corner 

}


void loop() 

{

   float a = analogRead(thermistorPin);

  //the calculating formula of temperature

  float resistor = (1023.0*10000)/a-10000;

  float tempC = (3435.0/(log(resistor/10000)+(3435.0/(273.15+25)))) - 273.15;

  

  lcd.setCursor(0, 0); // set the cursor to column 0, line 0

  lcd.print("     adeept     ");// Print a message of "Temp: "to the LCD.

 

  lcd.setCursor(0, 1); // set the cursor to column 0, line 0

  lcd.print("  Temp: ");// Print a message of "Temp: "to the LCD.

  lcd.print(tempC);// Print a centigrade temperature to the LCD. 

  lcd.print(" C  "); // Print the unit of the centigrade temperature to the LCD.

  delay(500);

}

Compile the program and upload to Arduino UNO board Now, you can see the temperature collected by thermistor on the LCD1602.

Add Comment