i found a solution for current off issue, no need for eeprom, just replace the hour and min like this example: i want to set up my microwave oven from 23:10 to 23:40. if(t.hour == 23 && t.min 10){ digitalWrite(Relay,HIGH); digitalWrite(Led,HIGH); Serial.println("LIGHT ON"); } else { digitalWrite(Relay,LOW); digitalWrite(Led,LOW); Serial.println("LIGHT OFF"); }
Sir suppose mera light on hai and current chalagaya after 5 min se current aagaya to kiya light on hoga ya nahi .? Pl revert me this project is awesome....if its work as same
use for and while instead of using const int for miin and hours if(t.hour == 23 && t.min 10){ digitalWrite(Relay,HIGH); digitalWrite(Led,HIGH); Serial.println("LIGHT ON"); } else { digitalWrite(Relay,LOW); digitalWrite(Led,LOW); Serial.println("LIGHT OFF"); } worked for me, even if i unplug the device