Temperature Indicator is a simple easy to do project, which I did it in less than 10 minutes, If you want to build your own temperature display for your home, you can choose this project, or you can use this project to submit in your school too, to get some extra credit.
What are the components Used :
1.Arduino
2.LM35 (temperate sensor) very less cost compare to any other temperature sensor
3.LCD 16x2
4.10k Pot , breadboard and connecting wires.
You can check the above video to know How this circuit works
Arduino Program:
-----------------------------------------------------------------------------------------------------------------------------
#include<LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int Tempsensor = A0;
void setup() {
lcd.begin(16, 2);
pinMode(5, OUTPUT);
}
void loop() {
float temp = analogRead(Tempsensor);
temp = temp * 0.48828125; // (5*1000)/1024 = 0.48828125
delay(100);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print(" Temperature");
lcd.setCursor(0, 1);
lcd.print(temp);
lcd.print((char)223); // degree symbol for displaying temperature in arduino LCD
lcd.print("C");
delay(200);
}
-----------------------------------------------------------------------------------------------------------------------------
LM35 Pin diagram
0 comments :
Post a Comment