I am implementing an IOT Project where sensor readings are transmitted online through wifi module (ESP8266).
The project works perfectly, and I was able to read DHT11 readings in (thingspeak.com) through ESP8266 module and a small atmega328p circuit (with arduino uno bootloader).
Now the most critical point is power consumption, it drives me crazy that I think of a small solar cell, but that's not preferable.
Even when using the deep sleep mode of atmega328p (and then ESP Module will be disabled), the regulator still have quiescent current of 5ma which will kill my battery in a week (if i use 900mah battery), and unfortunately in my country I cant find some low power regulators (draws micro Amperes).
Now Im thinking if I could attach a battery directly to my atmega328p and control the ESP and DHT through a transistor, so that the modules are completely disabled (the transistor is switched off) when the atmega328p is in power-down mode, and are enabled (the transistor is switched on) when the atmega328p wakes up.