0

I am trying to power an ESP8266 with a 3.3V regulator (this one, can supply ~ 1A). I've been struggling for days to get the ESP to work – it will occasionally boot, occasionally connect, but then not work again for hours. What I mean by "not working" is that it will often have trouble communicating over UART; or, upload my code, but not run it; or, run my code and crash on an Exception 0.

Now I have noticed that my voltage rail is dipping severely, sometimes below 3V. If I press my reset button, the level returns to 3.3V, but then when the ESP "boots" (but often not running any code, or crashing), it dips back to 2.9V. It is also fine while programming.

Does this suggest my ESP is simply fried? It's possible I briefly misconnected a wire when I first got the unit.

12
  • power an ESP8266 - is this a bare esp8266 (which one, 01, 7, 12 etc) with nothing else connected to it? Commented Jan 4, 2019 at 0:09
  • Yeah, ESP-01, I think. Just have a 5/3.3V logic level converter and some decoupling caps.
    – baum
    Commented Jan 4, 2019 at 0:12
  • Are you just using a bare regulator, or do you have an actual module?
    – Majenko
    Commented Jan 4, 2019 at 0:12
  • Just have a 5/3.3V logic level converter with something connected to that? if not, remove that, see if that "helps" Commented Jan 4, 2019 at 0:13
  • Just the bare regulator, with the recommended caps. Main power supply is Arduino 5V via USB.
    – baum
    Commented Jan 4, 2019 at 0:13

2 Answers 2

2

The ESP8266 will do an analog calibration when it is running the user code. This will typically be the worst case power requirement. The peak current requirement can be as much as 1/2 an amp. While your regulator probably can supply that I would bet your interconnecting wiring, and maybe the power source, are causing too much voltage drop.

The fact that you can see the voltage go down to 2.9 volts makes me thin that you have serious problems.

Early on when I started with the ESP8266 I was getting flaky operation. I put it down to bad code. But eventually I ruled that out. I took my setup to work (where I design electronic products) and looked at the power connections with a digital scope at the module. Right at the last point before the traces run under the shield. (I use the ESP-12 modules) It dipped just under 3.0 volts for two microseconds, and that was enough to cause a reset.

These things are not tolerant to any power dips. And this is why I recommend anyone starting with the ESP8266 to buy a Nodemcu or a Wemos type module. Something that has the regulator right at the processor.

3
  • Yeah, I definitely played myself here. The $5 savings were not worth the hassle.
    – baum
    Commented Jan 4, 2019 at 4:39
  • You probably have not damage the module. It will probably work fine if all the rest of the circuitry is done well.
    – Rudy
    Commented Jan 5, 2019 at 1:49
  • It's working now with a powered USB hub. See answer below.
    – baum
    Commented Jan 5, 2019 at 1:51
1

It was a power issue. Everyone tells you the ESP8266 needs a lot of current, and I didn't believe them.

In case anyone else runs in to this issue, I was powering the ESP via a 3.3V regulator (fine), being fed from and Arduino's 5V (fine). However: I was plugging my Arduino directly into my MacBook. It seems that my Mac was limiting USB power. Using a powered USB hub (max current ~2A) worked fine, but you could probably also get away with directly powering VIN on the Arduino (or a standalone 3.3V supply).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.