jam digital arduino tanpa rtc
bikinnya mudah tanpa modul rtc hanya modul dht11 dan lcd 16x2. sketch : #include <LiquidCrystal.h> // Setting LCD RS E D4 D5 D6 D7 LiquidCrystal lcd(7, 6, 9, 10, 11,12); #include<Time.h> void setup() { dht.begin(); //memulai komunikasi dengan sensor lcd.begin(16,2); lcd.clear(); lcd.print("SUHU DAN "); lcd.setCursor(0,1); lcd.print("KELEMBABAN"); delay(3000); //atur waktu default, jadi bila daya mati mesti setting waktu setTime(16,46,00,1,5,20); } void loop() { //Kelender Tahun 2020 if(day() >= 29 && month() == 2 && year() == 20){ setTime(0,0,0,1,3,20); } else if(day() >= 30 && month() == 4 && year() == 20){ setTime(0,0,0,1,5,20); } else if(day() >= 30 && month() == 6 && year() == 20){ setTime(0,0,0,1,7,20); } else if(day() >= 30 && month() == 9 && year() == 20){ setTime(0,0,0,1,10,...