Dear all
my name is Filippo.
I am building a stand-alone chicken coop door opener. I have a agm gel battery 12V 7.2Ah, in the future i will add, for sure, a solar panel to make the system totally independent.
But now, i need to run the system only with the battery. As you can imagine the motor that opens/closes the door consumes quite a lot, but I have only this one, then I cannot do really much about that.
Notice that the motor runs only for 20 sec in the morning, and 20 sec in the afternoon; the remaining time the Arduino and the other devices are running, waiting for the time to close/open.
I think that a good starting point will be working on the code of the Arduino. In particular i would like to insert some power-saving techniques, to put the Arduino in the sleep mode.
I found the LowPower library (GitHub - rocketscream/Low-Power: Low Power Library for Arduino) , and some tutorial about that.
The problem comes here: i found out that you can put the Arduino in the sleeping mode for only a previously-defined number of seconds (SLEEP_1S, SLEEP_2S,...,SLEEP_8S), or, maybe, also forever (SLEEP_FOREVER), 'until an interrupt arrives, because the WDT is disabled, in this case' (which one?!?).
-
Is there a way to specify a larger sleeping time? I need one that is almost 8-9 hours, maybe more (from the morning to the afternoon, and from the afternoon to the next morning).
-
Can I use sleep_forever? If yes, how can I trigger the interrupt that will wake up the Arduino?
Thank you really much for the infos.
Best regards to all of you
Filippo