Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By gicho
#7225 You are right, this is important point to keep in mind. My plans are to use non-rechargable batteries, here is my list of preffered ones:
- CR123A
- lithium AA variants (15-20 years shelf life, > 2500mAh)
- SAFT batteries (if I convince myself about the price)
- and why not "regular" alkaline - like energizer max, with 10 years shelf life?

Rechargable batteries that have low enough self discharge are rare. Currently I don't see a good use case of them.

Another thing to keep in mind is the filtering capacitor - electrolitic (Al) might get higher leakage than the ESP idle current (at some extreme temperatures).

But I logged in to give some results from my tests of the current consumption. My setup uses 5V/3.3V switching DC/DC supply (chinese one with MP1584 chip) to feed the ESP module from Olimex.
In line with the 3.3V I put parallel group of one resistor (1K) and one shottky diode. The purpose of the 1K is to allow me to measure the ESP idle consumption, it gives me easy way to read out values down to 1uA with generic multimeter. The purpose of the shottky diode is to bypass large current spikes that appear while ESP is active.
This seems to work fine for deep sleep measurement, but it is not suitable for active currents ( > 1mA, 70-150mA typical).

The results: first trials were made with 1000uF capacitor on the supply pins of the ESP (after the measurement group). This way I got 150-160mV readings that corresponds to 150-160uA. I think that slow ramp down of the supply voltage tricks the ESP to behave bad and leads to this high readings.

Update: too good to be true ... when I disconnected the usb-uart converter my consumption climbed to 40uA, steady. Not happy.
.
User avatar
By gwizz
#7243
gicho wrote:Rechargable batteries that have low enough self discharge are rare. Currently I don't see a good use case of them.


If the consumption is around the 200uA mark - even if deep sleep were 1uA then this would still only drop to ~150uA - any device needs to plan to get recharged rarely. At 200uA a pair of AA's with 2800mAh capacity would last 2800/.2=14000h!! that's nearly 2 years!!

So I'm probably making another late night maths error - but if not - then I think low self-discharge rechargeables would be useful in this case.

Is it the enerloop type that you are referring to as low self discharge rechargeable type? They are quite expensive ....
User avatar
By EUA
#7322 Does anyone know how to put this chip into standby or other low power modes instead of deep sleep?
Modes are
Standby 0.9mA (how to archive this mode???)
Deep sleep 10uA (I think function system_deep_sleep put chip into this state)
Saving mode DTIM 1 1.2mA (I think those are set via WiFi network.)
Saving mode DTIM 3 0.86mA

Thanks
User avatar
By rahaman
#7441 Hi,

Is there a way to put the ESP8266 in infinite-sleep mode (except switching of the power)?
I could make it sleep only for 70mins approx.. Is there a way to extend it to forever until it Resets?