Shashwat Raj
Published © GPL3+

How to make digital temperature measurement device

In this tutorial, I will show you how to make digital temperature measurement device or digital thermometer with thermistor and arduino.

IntermediateFull instructions provided1,804
How to make digital temperature measurement device

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Alphanumeric LCD, 16 x 2
Alphanumeric LCD, 16 x 2
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1
Resistor 10k ohm
Resistor 10k ohm
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Circuit Diagram

Code

Arduino Code

Arduino
#include <math.h>
#include "LiquidCrystal.h"
LiquidCrystal lcd(2,3,4,5,6,7);
float A = 1.009249522e-03, B = 2.378405444e-04, C = 2.019202697e-07;
float T,logRt,Tf,Tc;
float Thermistor(int Vo) {
 logRt = log(10000.0*((1024.0/Vo-1))); 
 T = (1.0 / (A + B*logRt + C*logRt*logRt*logRt)); 
 Tc = T - 273.15;                     // Convert Kelvin to Celcius
 Tf = (Tc * 1.8) + 32.0;              // Convert Kelvin to Fahrenheit
 return T;
}

void setup(){
 lcd.begin(16,2);
 lcd.setCursor(0,0);
 lcd.print(" Digital");
 lcd.setCursor(0,1);
 lcd.print(" Temperature");
 delay(8000);
 lcd.clear();
 lcd.print(" Shashwat__Raj");
 delay(8000);
 lcd.clear();
}

void loop() 
{
 lcd.setCursor(0,0);
  lcd.print("Temp:");
  lcd.print((Thermistor(analogRead(0))));
  lcd.print("k ");
 
 lcd.setCursor(0,1);
  lcd.print((Tc));
  lcd.print(" C ;");

 lcd.setCursor(9,1);
  lcd.print((Tf));
  lcd.print(" F");
 delay(800);
}

Credits

Shashwat Raj
7 projects • 12 followers
My name is Shashwat Raj. I love doing projects with arduino and Raspberry Pi. You want to view more please subscribe to my YouTube Channel.
Contact

Comments

Please log in or sign up to comment.