TP MICRO MODUL 2





1. KONDISI [KEMBALI]

Bila suhu yang terbaca 18 celcius maka motor hidup 5 s lalu led merah hidup


2. GAMBAR RANGKAIAN SIMULASI
[KEMBALI]




3. FLOWCHART [KEMBALI]


4. LIST PROGRAM [KEMBALI]

  • #include<LiquidCrystal.h>
  • #define LM35 A0
  • LiquidCrystal lcd(2,3,4,5,6,7);
  • int nilaiSuhu;
  • void setup() {
  •   // put your setup code here, to run once:
  • pinMode(A0,INPUT);
  • lcd.begin(16,2);
  • pinMode(1,OUTPUT);
  • pinMode(0,OUTPUT);
  •    
  • }

  • void loop() {
  •   // put your main code here, to run repeatedly:
  • nilaiSuhu=((5*analogRead(LM35)*100.00)/1024/3);
  • lcd.clear();
  • lcd.setCursor(0,0);
  • lcd.print("LM35 Sensor Suhu");
  • lcd.setCursor(0,1);
  • lcd.print(nilaiSuhu);
  • delay(100);
  • if (nilaiSuhu == 18)
  • {
  •   digitalWrite(1,HIGH);
  •   delay(5000);
  •   digitalWrite(0,HIGH);
  •  digitalWrite(1,LOW);
  • }
  • else{
  •   digitalWrite(1,LOW);
  •   digitalWrite(0,LOW);
  • }
  • }


5. VIDEO [KEMBALI]






6. LINK DOWNLOAD [KEMBALI]  
     Rangkaian Simulasi Proteus  (Download)
     Program Arduino                   (Download)
     Video Rangkaian                    (Download)

Tidak ada komentar:

Posting Komentar