Today I have made a pcb with ESP-12F module with minimum components for battery powered application, for a door sensor. The module has only two resistors of 1k used for CH_PD pull up (high) and GPIO 15 (low). There is a button tied to gpio 4 , to make the chip not to go into deep sleep mode so that I can update program using HTTP. There is additional circuit for door sensor purpose and this will consume some current in micro amp range.
Code used for deep sleep
if (donotsleep == 0) { ESP.deepSleep(0); }
}
if you are wondering how much power is consumed in deep sleep, this thread is for you, am powering it by 2xAAA battery alkaline battery IKEA brand.
The chip takes 14 micro amps and able to reproduce on second pcb, bit less than the datasheet or may be error percent on my multimeter.
When near to the base station, the chip takes 76ma to send a quick update to mqtt server before going to sleep mode. In case of long range, it will take more current, this I have not tested yet.
Thank you