aip06
Published © GPL3+

LCD Portable Temp Station

Shows the temp using a thermistor and a LCD display and Arduino Uno.

BeginnerShowcase (no instructions)841
LCD Portable Temp Station

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
thermistor
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×40
Resistor 10k ohm
Resistor 10k ohm
×1
resistor (yellow, blue, red)
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE
Arduino Web Editor
Arduino Web Editor

Hand tools and fabrication machines

scissor

Story

Read more

Schematics

screen

thermistor

Code

Untitled file

C/C++
#include <LiquidCrystal.h>

int ThermistorPin = 0;
int Vo;
float R1 = 10000;
float logR2, R2, T;
float c1 = 1.009249522e-03, c2 = 2.378405444e-04, c3 = 2.019202697e-07;

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

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

}

void loop() {
lcd.print("Alexander's");
delay(2000);
lcd.clear();
lcd.print("Average air temp.");
delay(2000);
lcd.clear();
//_________________________
  Vo = analogRead(ThermistorPin);
  R2 = R1 * (1023.0 / (float)Vo - 1.0);
  logR2 = log(R2);
  T = (1.0 / (c1 + c2*logR2 + c3*logR2*logR2*logR2));
  T = T - 273.15;
  T = (T * 9.0)/ 5.0 + 32.0; 

  lcd.print("Temp = ");
  lcd.print(T);   
  lcd.print(" F");
  
  delay(4000);            
  lcd.clear();
}

Credits

aip06

aip06

2 projects • 10 followers
Thanks to AIP06.

Comments