ESP8266 - Operating voltage range and sleep current


(Eyal Lebedinsky) #81

Following yesterday’s “Things Night” discussion I checked the misbehaving esp-07 setup. I have two deployed, one has stable power (around 3.3v at all times) while the other sees 3.3v in deep sleep but only 2.9v (or below) when it wakes up. Both use the same type of LDO.

I replaced some hookup wires and also provided direct connection from the LDO to the esp (bypassing the power rails). This made a (positive) difference and I now see around 3.3v reported instead of the 2.9v. I hope it will now stay stable.


(Eyal Lebedinsky) #82

People here may be interested in our group buy of electronic items.


(David Lyon) #83

I’ve been working on a web gui for managing multiple devices. I wonder if we can get your code to link in with this:

Last time @Eyal, you mentioned you were sending UDP packets. I’ve worked out a way to display the values from such packets in the top-left-corner of the device tiles in a web interface.


(Eyal Lebedinsky) #84

Sure you can link my code. Whatever that means.

The data sent (using UDP or TCP) is a simple text string. Most of it is debug and stats but the last field is the reading (temperature). The server does not care what the text includes so any device sending text is catered for.

The app itself is not really production ready as it includes too much configuration and test fluff. I will trim it down once I am done with it but I am waiting for the v1.2.0 release of the fw which is in early development.

For example, this message

store esp-12e 17908 times=L4.570,T30177,s0.617,u0.323,r0.709,w1.885,F0.000,S0.016,d0.934,t3.924 stats=fs5,fh0,fr0 adc=1.176 vdd=2.854 21.5000,21.8125

tells the server (a simple python script) to store, from device ‘esp-12e’, the provided text. The server writes to a per-device file with an added time-stamp. This device has two ds18b20 sensors reading 21.5000,21.8125 (yes, I keep my workroom warm, the ouside facing sensor is reading 5.7500 now). Right now there are nine devices being tested around the house.

This is all in our github (my app_v1). Has it been two months really? maybe I should update it… But in my defence, one of my tests has been running for two months now on 3xAA so it is running this old code.


(David Lyon) #85

I’ll have to package up the program and finish off the documentation so that it’s a bit easier to install. I will be doing that at work today. I will post back a download link when that’s done.


(Eyal Lebedinsky) #86

It as been a while but I am still experimenting. I now selected the MCP1700 as the LDO and so far it works well. It is specified for max 250mA and I see current peaking at over 400mA but only for very short periods. So far so good, I will let it run for a few months to see how it handles. The attraction here is that it has a low dropout and a very low Iq of 1.5uA. It is also in an easy to solder through-hole package.


(thakshak gudimetla) #87

esp-12f

http://www.aliexpress.com/item/2015-New-version-1PCS-ESP-12F-ESP-12E-upgrade-ESP8266-remote-serial-Port-WIFI-wireless-module/32472991296.html

esp-14

http://www.aliexpress.com/item/Large-capacity-ESP8266-flash-4M-serial-WIFI-industry-milepost-type-ESD-12/32264809287.html?spm=2114.031010208.3.2.tpyGb3&ws_ab_test=201556_7,201527_3_71_72_73_74_75,0_0


(Eyal Lebedinsky) #88

@thakshak, what are you saying about these modules?

esp-12f looks like another revision of the esp-12 (last was esp-12e). It is supposed to use only 10uA in deep sleep. I will try it, but what I really want is an updated esp-07 with lower deep sleep current and more RAM. Rumour has it that these are planned for later this year.

esp-14 is a very different animal, I gather that it has a second processor on-board. See here.


(David Lyon) #89

Anyone in interested in getting a pcb design for this happening?

I’m actually working in Europe now and could put the boards on ebay.de and ebay.co.uk - I’m sure that we could sell some and post profits back to MHV.

Any interest?


(David Lyon) #90

bump. Any further interest in this? or is it dead?


(Eyal Lebedinsky) #91

I am still interested. In the meantime I am playing with other boards, like this (got some)
https://www.tindie.com/products/iron/esp8266-vertical-adapter-ezy-ad5-with-5v-support
and this (still waiting)
http://www.aliexpress.com/item/-/32692235739.html

Neither one is what I want but I now have a better idea of what works for me. On board I want:

  • suitable LDO (I use MCP1700)
  • reset button/pin
  • pins for programmer
  • program button/pin (not critical)
  • power connection
  • spare GND/3.3v pins for device connection. I use DS18B20 (one-wire)
  • some projects will benefit from a good clock, should it be on-board?
  • maybe some battery/solar-charging management?

Any NodeMCU kind of board is good for the development phase, but for the commissioned boards I will prefer to have as little as is actually needed. I also will prefer stable connections so instead of pins I use screw blocks.

When a board is finally produced we should design a 3d-printable case to hold the board and a battery (or three).

Here is a prototype I use, this board has a few buses on the back

The two rows of pins expose Tx/Rx/GPIO0/GPIO5 and extra GND (top row). There is a 470uF cap and two extra 3.3v pins above it.


(Nishikawa Kenichi) #92

I tested by the following environment.
An interval in DeepSleep is every 5 seconds.

case1 USB-5V Power+ESP-12+MCP1700+100microF Electrolytic capacitor.
ESP-12 can’t be started.

case2 USB-5V Power+ESP-12+MCP1700+220microF Electrolytic capacitor.
ESP-12 can’t be started.

case3 USB-5V Power+ESP-12+MCP1700+470microF Electrolytic capacitor.
It continued 1255 times, but so DeepSleep stopped.

case4 USB-5V Power+ESP-12+MCP1700+1000microF Electrolytic capacitor.
It continued 1269 times, but so DeepSleep stopped.

case5 USB-5V Power+ESP-12+MCP1700+1500microF Electrolytic capacitor.
It continued 3310 times, but so DeepSleep stopped.

I can’t work stably using MCP1700.

I’m planning to exchange it for a regulator of 500ma and try again.


(Eyal Lebedinsky) #93

@nopnop2002 Interesting tests.

The first thing to note is that the cap should have a low ESR in order to respond quickly, and I have it on the 3.3v side.

Examining the supply voltage (3.3v) should show (on a DSO) if it sags too much when current peaks arrive. As I recall, the early modules regularly consumed around 400mA for short periods (a few ms) which would stress the MCP1700 if there is no good cap. Later ones (12D/F) use less (some internal tuning or adjusted parameters?) and usually do not exceed the 250mA limit. I would also look at the wake-up signal to ensure it is strong enough as I remember cases where the failure mode was no wake-up.

I use 470uF electrolytic, but also used a 100uF Ceramic SMD.

And also important is the build quality. Circuits on breadboards work, for a while, but the ones I soldered (as in the earlier picture) perform rather well: an average run is 3 months (or longer, until the 3*AA NiMH batteries drain) with a 1m cycle, so about 130,000 cycles.


(Nishikawa Kenichi) #94

Thank you very much for your answer.
Is it right by the following circuit?


(Eyal Lebedinsky) #95

The MCP1700 datasheet suggests 1uF ceramic on the input (C1) and output (C2) and this is what I have, very close to the LDO.

I have a 470uF electrolytic (C3) between Vcc and GND close to the ESP. On some boards I have a ceramic 100uF SMD instead.


(Nishikawa Kenichi) #96

OK Thank you.


(ek) #97

I am getting exactly same errors from my esp12f modules. I tried too many firmwares but did’nt change anything. Do you have any suggestion to solve it?


(ajinkya wankhede) #98

Hi Guys, After Reading all of the replies , i tried to apply them in my case but didn’t get the results.
I hope i will get it here.
Well the problem i am facing is
I am using ESP8266-12E with the rough circuit diagram shown here.

the esp8266-12e does not start in first attempt, I have to reset the module (or power on/off) multiple times and then it starts after number of attempts. The voltage reading in multi-meter shows appropriate all the times, even the voltage in ESP8266-12e module shows perfect. but the module does not start.

The Power 3.3 v is through AMS1117 3.3 V regulator.

thanks in advance , hope i will get guidance.


(Eyal Lebedinsky) #99

Depending on your power source (the input to the AMS1117), it may help to have a large (440uF?) cap across the ESP power (probably where your C1 is). This will help if there is a very short voltage drop at boot time.

I notice that the i2c extender runs off 5v so you need to take care with SDA/SCL or run the extender at 3.3v.

Some relays (4/5) are driven directly from the esp (at 3.3v) and the others (1/2/3) from the extender (at 5v). Is this necessary?

In short, I do not think the issue is the ESP but rather the other parts disturbing the power.