1. Kondisi [Kembali]
2. Rangkaian Simulasi [Kembali]
3.Flowchart [Kembali]
4. Listing Program [Kembali]
#include <LiquidCrystal.h>
#define LM35 A0
LiquidCrystal lcd(2,3,4,5,6,7);
int nilaiSuhu;
int LED = 9;
void setup() {
pinMode(A0, INPUT);
lcd.begin(16,2);
pinMode (LED,OUTPUT);
}
void loop()
{
nilaiSuhu=((5*analogRead(LM35)*100.00)/1024);
if (nilaiSuhu > 19 && nilaiSuhu <26) {
digitalWrite (LED,HIGH);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("LM35 Sensor Suhu");
lcd.setCursor(0,1);
lcd.print(nilaiSuhu);
delay(100);
}
else {
digitalWrite (LED,LOW);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("LM35 Sensor Suhu");
lcd.setCursor(0,1);
lcd.print(nilaiSuhu);
delay(100);
}
}
5. Video [Kembali]
6. Link Download [Kembali]
Download Video disini
Download Rangkaian disini
Download HTML disini
Download Library Arduino disini
Download Data Sheet LM35 disini
Download Listing Program disini
Tidak ada komentar:
Posting Komentar