Good Morning. I have made a project of a fellow Internet user, which consists of a pet feeder, with two hours scheduled to dispense the food. The problem is that when the food is given, according to the first programming that is at 8:00 am, the clock is reset and set to 0: 00h. I do not know which is the flaw in the program, since I am a novice in this matter. I would like someone to tell me the error to correct it and get the time is constantly maintained. The correct operation should be as follows: there must be a clock that sets the time at all times, for when the time of the 2 shots is programmed, I acted according to this programming and also that the shot is always the same amount, as long as it is not Indicate otherwise through the menu.
Programa_comedero.ino (13.4 KB)