VJZ
Published © GPL3+

LCD Thermometer using TMP36 Sensor

A LCD thermometer that gets its information from a TMP36 Sensor. Can read in Fahrenheit and Celsius.

IntermediateFull instructions provided1,208
LCD Thermometer using TMP36 Sensor

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1
Resistor 220 ohm
Resistor 220 ohm
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Alphanumeric LCD, 16 x 2
Alphanumeric LCD, 16 x 2
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematic

Code

Code

Arduino
Paste in arduino IDE.
#include <LiquidCrystal.h>

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

int sensorPin = 0; 
 

void setup()
{
  lcd.begin(16, 2);                         
}
 
void loop()                     
{
 
lcd.clear();
int reading = analogRead(sensorPin);  
float voltage = reading * 5.0;
voltage /= 1024.0; 
float temperatureC = (voltage - 0.5) * 100 ; 
float temperatureF = (temperatureC * 9.0 / 5.0) + 32.0;
lcd.print(temperatureF); 
lcd.println(" degrees F ");
lcd.setCursor(0,1);
lcd.print(temperatureC);
lcd.println(" degrees C ");
delay(1000);

}
 

Credits

VJZ

VJZ

1 project • 0 followers

Comments