Temperature Monitor Using LM35 Sensor LCD Display Arduino Uno

Circuit Diagram :
Connections:
Connections:
connection to LM35 Temperature Sensor. Connect the 1st pin of LM35 to 5V of Arduino UNO and 3rd Pin to GND. Similarly connect the 2nd pin to Analog input pin A0 of Arduino UNO
Now we will connect the 16×2 LCD to the Arduino.
1. Connect pin 1,3,5,16 of LCD to the GND.
2. Connect pin 2,15 of LCD to the VCC (5V).
3. Connect pin 4 of LCD to pin D8 of Arduino.
3. Connect pin 6 of LCD to pin D9 of Arduino.
3. Connect pin 11 of LCD to pin D10 of Arduino.
3. Connect pin 12 of LCD to pin D11 of Arduino.
3. Connect pin 13 of LCD to pin D12 of Arduino.
3. Connect pin 14 of LCD to pin D13 of Arduino.
1. Connect pin 1,3,5,16 of LCD to the GND.
2. Connect pin 2,15 of LCD to the VCC (5V).
3. Connect pin 4 of LCD to pin D8 of Arduino.
3. Connect pin 6 of LCD to pin D9 of Arduino.
3. Connect pin 11 of LCD to pin D10 of Arduino.
3. Connect pin 12 of LCD to pin D11 of Arduino.
3. Connect pin 13 of LCD to pin D12 of Arduino.
3. Connect pin 14 of LCD to pin D13 of Arduino.
Program Code:-
| #include<LiquidCrystal.h> | |
| LiquidCrystal lcd(8,9,10,11,12,13); | |
| #define sensor A0 | |
| byte degree[8] = | |
| { | |
| 0b00011, | |
| 0b00011, | |
| 0b00000, | |
| 0b00000, | |
| 0b00000, | |
| 0b00000, | |
| 0b00000, | |
| 0b00000 | |
| }; | |
| void setup() | |
| { | |
| lcd.begin(16,2); | |
| lcd.createChar(1, degree); | |
| lcd.setCursor(0,0); | |
| lcd.print(" Digital "); | |
| lcd.setCursor(0,1); | |
| lcd.print(" Thermometer "); | |
| delay(2000); | |
| lcd.clear(); | |
| } | |
| void loop() | |
| { | |
| /*---------Temperature-------*/ | |
| float reading=analogRead(sensor); | |
| float temperature=reading*(5.0/1023.0)*100; | |
| delay(10); | |
| /*------Display Result------*/ | |
| lcd.clear(); | |
| lcd.setCursor(2,0); | |
| lcd.print("Temperature"); | |
| lcd.setCursor(4,1); | |
| lcd.print(temperature); | |
| lcd.write(1); | |
| lcd.print("C"); | |
| delay(1000); | |
| } |



I’m impressed, I have to admit. Rarely do I come across a blog that’s both educative and engaging, and let me tell you, you've hit the nail on the head. The issue is an issue that not enough folks are speaking intelligently about. Now i'm very happy that I came across this in my hunt for something relating to this.car shipping indiana
ReplyDelete