Hello everyone,
I am struggling to understand how to run a pro-mini for 30 days through the use of a battery.
I was thinking to use a PRO Mini 3.3V and 3xAA batteries.
3xAA batteries should give me 4.5V and 2000mAh capacity (?)
Arduino Pro mini powered through the RAW pin in active state should consume 4.74mAh and 0.9mAh in sleep mode (reference)
If these data are correct, without any modification (e.g. remove the LED) I can run the microcontroller for
2000/4.74 = 17.58 days in full active state and 2000/(23*0.9+4.74)=79 days 1hr active per day
So so far, it seems good without much effort (I did not count that in active state, it is driving a mosfet, but it is for few minutes per day).
Now, in order to wake up the Pro Mini once per day, I am using a Ds3231 RTC module which should be powered by the microcontroller and it drains quite a lot.
I have read Gammon guidance and if I have understood well, I need to use a digital pin to power the RTC and set it as OUTPUT when it is not required.
What I do not get is, if the RTC is not powered, the alarm to wake up Arduino will not work.
Hence, how Arduino knows when it is time to power the RTC that in turn, should wake up Arduino?
I am lost...