hi all,
i have installed a solar system (for pump) to lower the electric bills.Now everyday i have to go to the pump and switch it from the electric provider to solar and vice versa. What i have done so far is that i have made the hardware and switched relays as they should. But due to load shedding in our part of the world, when the program restart, the relay wont start until the time that is written in the program comes. i cant rewrite the sketch and make it bulky by adding time for every second. is there a command to switch on the relay even if the Arduino restarts in between the times
(e.g if it is 7 am the relay starts and at 7:05 am electricity provider disconnects the power and resumes it after 10min i.e 7:15am. the relay will remain switched off until it is 7pm ((or 19 HRS)as in the program.
Summary
- i have two relays one relay switches on from 07-19 HRS. (24 hrs format)
- second relay works from 19.01 HRS to 06.59 HRS
- program attached below.
in short what i want is that when the electricity discontinued by the the electric company resumes, respective relay starts from that moment onwards and not wait for the program and rtc to strike 7am or 7pm .
(by the way i have installed 18650 battery to the project too but still want to add the command to be on the safe side)
i hope you all understand what i tried to explain.
thanks in advance
OLED_CLOCK_WITH_RELAY_SETTINGS_FINAL_FOR_RELAY.ino (5.67 KB)