- Wed Oct 21, 2015 5:26 pm
Vincent Lê wrote:Hi,
I have read your posts with a great attention since I am working on a coin cells based project.
My project will run on two CR2032 during 1 year and some months, using deep sleep mode.
As the deepsleep current is still arount 30uA, your RTC solution would extend my barrety life to 4 years !
Now I have one question: how do your circuit shut down?
I understand that the RTC will trigger the power source as its alarm will be ringed. at the end of the operations (say after 3s), what causes the power shut down of the ESP?
The power is shut down by resetting the RTC interrupt flag in sofware. This is the last function of the ESP8266 code - to disconnect itself and all power....until the next time the RTC wakes up the unit.
The actual code is:
// Reset interrupt flag IF for alarm #1
status=status & 0xf7;
BTW: The project is continuing on and I recently moved the circuit from the breadboard to a prototype see below).
I changed R1 to 4.7K and added some pins for easy I2C access, terminals for battery and regulated output and a shorting block jumper for testing. Now, I am moving on to the software. So far, still so good...I wish I had more time to devote to these projects but that is not the case at the present.