I did use my ESP for some weeks now but suddenly yesterday it started to reset.
I assumes a flaw in my circuit and did put it on another Breadboard with its on power and minimal configuration.
It did reset also.
Then I did reflash the latest AT Firmware and test it. It worked fine.
But as soon as I now try to write any Arduino sketch it resets with:
What's the reason?
Tried with standard settings in Arduino that worked for me all the time and also with device specific setting. No matter all with the same result!
(As the resetting started I updated the ESP Lib to 2.3.0 but I assume that's not the problem else everyone must habe that issue).
Just in case someone stumbles upon this thread.
I have had the exact same problem. Flashing blink example and others did not work. However, CheckFlash example did work.
I added two Capacitors to solve the problem and now my sketches work. However, I've tried with blink example and my usual sketch, which is running and blinking on my ESP-01, and I cannot get the blue LED blinking. Maybe just the LED_BUILTIN macro is wrong? had no time to check it but the blue LED can be activated via GPIO2 (LOW == on, HIGH == off).
The ESP8266 can draw up to 800mA in a spike and will "idle" around 80mA to 100mA but if you are watching the current on an o'scope, strong current spikes are present but too fast for most digital meters. You must design the power for 3.3V @ 1A. The source input power impedance must be less than 1 Ohm.
The output currect is MAX of 12mA per pin. Your series current limiting resistor must be recalculated from Arduino values!
You CAN run the ESP8266 with the RF turned off: ESP8266 sans RF
I've been working with these things for well over 18 months: they are solid. But far more fragile than the Arduino 8-bit devices. You absolutely must design carefully and buffer any current over 12mA.
mrburnette:
The ESP8266 can draw up to 800mA in a spike
Is that from your own tests or did you read it somewhere? I remember reading the same thing(as well as 500mA) a while back but recently went to try to find it again and only found things(such as the datasheet) saying max was around 200mA. I don't have an o'scope but my experience with the ESP8266 is that it definitely needs a good power source to work reliably.
pert:
Is that from your own tests or did you read it somewhere? I remember reading the same thing(as well as 500mA) a while back but recently went to try to find it again and only found things(such as the datasheet) saying max was around 200mA. I don't have an o'scope but my experience with the ESP8266 is that it definitely needs a good power source to work reliably.
Own tests... 5.0V 2A feeding a DC-DC Chinese buck with output at 3.45V across a LiFePO4 cell.
Current measured using 0.1 Ohm resistor and digital storage o'scope (NIST traceability.)
ESP8266 antenna load intk rubber ducky.
Thanks for the info! I was starting to think I had imagined reading that. I'm working on a project with ESP8266 running an LED strip and I managed to solve some reset issues by adding a short delay to let the power stabilize between operating the LEDs and the WiFi
@mrburnette
Pretty interesting, thank you for the info.
I've ordered some HT7333 and MCP1700 to use 4 AA with my ESP modules. I'm curious to see if these will work because (peak) current is reported much lower for the MCP1700 (no info found for HT7333 in it's datasheet).
Any chance you use or know a Low Power Consumption LDO voltage regulator with your ESP modules that you can recommend?
Any chance you use or know a Low Power Consumption LDO voltage regulator with your ESP modules that you can recommend?
I ordered qty 50 of the DC-DC buck modules from China and that is all I am using with the ESP8266. It is critically important to have a very low Z output impedance on the power unit.
For batteries, I have found the LiFePO4 to be exceptional.
I do not run alkaline cells with my ESP'x but with the DC-DC buck being 92% - 96% efficient and under $1 cost, I believe I would use 3x or 4x alkaline pack to DC-DC to ESP8266.
Thanks for your answer.
Could you spare a link to the dc-dc modules? Some of what I found use the AMS1117, which burns 10mA while the MCU is sleeping
For the MP2307 that is used by other dc-dc buck modules I found, I was unable to identify the quiescent current while the MCU is sleeping/idle.
terraduino:
Thanks for your answer.
Could you spare a link to the dc-dc modules? Some of what I found use the AMS1117, which burns 10mA while the MCU is sleeping
For the MP2307 that is used by other dc-dc buck modules I found, I was unable to identify the quiescent current while the MCU is sleeping/idle.
Thanks again!
I generally set for 3.45V if I'm using LiFePO4 cellse or 3.4V if I am using just the ESP...
The above is not a recommendation ... I have several brands around in the parts boxes ... just a representation. Larger units are available if you need to handle more current (power.)
the voltage will be around 4.8-5.4 V (4 AA), maybe 7.4V (2 LiPo 3.7V) if the ESP does not run stable with a single LiPo.
Thanks & best
Are those the voltages you have going into your ESP8266 module?
I've been trying to find a concrete answer to the operating range, I have it in my notes as 2.5v to 4.7v.
Are those the voltages you have going into your ESP8266 module?
I've been trying to find a concrete answer to the operating range, I have it in my notes as 2.5v to 4.7v
The ESP8266 is generally specified to be a 3.3V module. The high-end and low-end voltages (max & min) are stated differently in many places. If you are using 3.3V peripherals, then the Vcc voltage from the DC-DC to the ESP8266 and the sensor/display/etc. must be in the 3.3V range more for the sensor needs than the ESP8266. I use 3.40 - 3.45 Volts simply because I float the LiFePO4 cell across the Vcc-Gnd (before the power switch which open-circuits the module(s) from the battery backup.)
Alternatively, if you have an external, regulated, supply you’d like to deliver directly to the ESP8266, you can supply that voltage through the 3V3 pin (on the I2C header). While this voltage doesn’t have to be 3.3V, it must be within the range of 1.7-3.6V.
Are those the voltages you have going into your ESP8266 module?
No, I want to feed power as close as possible to 3.3V. I bought some LDO voltage regulators which dissipate 28.8uA while idle. I bought TLV70033, I thought, but these provide more than 3.3V so I guess the seller sent the wrong version.
I've read an experiment that showed that above 3.8V the ESP starts to draw pretty much current.