LM35 Temperature Sensor Using Arduino | Simulation

3 Просмотры
Размещено
************ | Arduino Code | *************
# include "LiquidCrystal.h"
const int rs = 2, en = 3, d4 = 4, d5 = 5, d6 = 6, d7 = 7;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
float temp; // to include LM 35 sensor
void setup() {
Serial.begin(9600);
analogReference("INTERNAL");
lcd.begin (16,2);
lcd.setCursor(0, 0);
lcd.print(" MADE BY ");
lcd.setCursor(0, 1);
delay(400);
lcd.print(" Wali TV ");
delay (700);
lcd.clear();
void loop() {
temp = analogRead(A0);
temp=temp*1100/(1024*10);
lcd.print("TEMP: ");
lcd.print(temp);
lcd.println("*C");
delay(500);
lcd.clear();
}

LED Sequential Control | Arduino
https://www.youtube.com/watch?v=UrnCjWI0VZE&t=24s
Категория
Ардуино
Комментариев нет.