Measure the temperature and show it on a LCD display

 by knuppel
fertich-300x225.jpg
Temp-LM35_Steckplatine.jpg
I made a little arduino sketch, that displays the temperature on a LCD display measured by a LM35. I used a 16X1 LCD Display. The Code is quite easy and can send the value via serial connection, too.

What you need:

Arduino Board
LCD Display
LM35 temperature sensor
resistor (for backlight)
 
Remove these adsRemove these ads by Signing Up

Step 1:

Temp-LM35_Steckplatine.jpg
Here’s my source coude (based on the example LCD code on arduino.cc):



#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
#define LCD_CLEAR 0b00000001 // 0×01
float temp;
int tempPin = 0;

void setup() {
Serial.begin(9600);
lcd.begin(16, 2);
//lcd.print(“”);
}

void loop() {
temp = analogRead(tempPin);
temp = temp * 0.48828125;
lcd.setCursor(0, 0);
lcd.print(temp);
lcd.print(” C”);
delay(1000);
lcd.clear();

Serial.println(temp);

}
EET1982 says: Feb 13, 2013. 4:29 PM
Hi. Very cool project. I will be making this soon. May I ask why the 5v is pulled to the outer rail if nothing connects to the rail?
amandaghassaei says: Nov 14, 2012. 11:51 AM
very nice, are you going to use this for a larger project?
knuppel (author) in reply to amandaghassaeiNov 16, 2012. 10:37 AM
i did something like this: http://www.opensketches.org/temperatur-messen-mit-einem-lm35-und-anzeige-auf-einem-lcd-display-processing-anzeige-mysql/
knuppel (author) in reply to amandaghassaeiNov 15, 2012. 8:56 AM
In used it to display the temperature on the computer (via processing) and then, when the computer is online it sends the temperature to a webserver,and the temperature can be seen in the internet.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!