What you need:
Arduino Board
LCD Display
LM35 temperature sensor
resistor (for backlight)
Remove these ads by
Signing UpStep 1:
#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 PMReply

















Not Nice


















Visit Our Store »
Go Pro Today »



