I've designed a custom PCB which uses the ESP32-WROOM-32 module. I'm using arduino to help validate the board, and I am able to run very simple programs on it successfully (ex. serial echo, Blink, etc...)

Where I'm having trouble is running any Wifi programs on it. For example, when I load the Wifi Scan example program, I receive the following output.

configsip: 0, SPIWP:0xee
mode:DIO, clock div:2
ho 0 tail 12 room 4
entry 0x400806b8
[W][esp32-hal-psram.c:30] psramInit(): PSRAM init failed!
[D][WiFiGeneric.cpp:332] _eventCallback(): Event: 0 - WIFI_READY
[D][WiFiGeneric.cpp:332] _eventCallback(): Event: 2 - STA_START

Most times it just stops here, sometimes it will restart and repeat a few times. Occasionally it will cause a kernel and my Mac will restart.

Here is my schematic: PCB Schematic

U1 is the ESP32-WROOM-32 U4 is a CH340C USB to serial chip IC1 is a HT7833 LDO

Lat thing, I've looked at the logic levels on the bootstrapping pins and don't see anything out of the ordinary: GPIO 0: High GPIO 2: Low GPIO 4: Low GPIO 5: High GPIO 12: Low GPIO 15: High

I've been trying to troubleshoot this problem for the past three days and I'm stumped. Any help would be appreciated.

EDIT 1: Here's a picture of the o-scope on VCC. The voltage variance I see is 2.8v on the low end and 3.8v on the high end. enter image description here

EDIT 2: Capacitor shown on the output of IC1 are positioned extremely closely to U1. See picture: enter image description here

  • \$\begingroup\$ Attach an oscilloscope to the 3.3V at the WROOM32 and see what it does when you access the WiFi. \$\endgroup\$
    – JRE
    Sep 28, 2020 at 7:54
  • \$\begingroup\$ Thanks for the tip @JRE. I just added a photo to my question. It doesn't seem like this voltage spike would cause a problem, no? \$\endgroup\$
    – MikeJWms
    Sep 28, 2020 at 8:36
  • \$\begingroup\$ Decoupling caps ? I can't see if you properly decoupled your IC with decoupling capacitors ? It seems you have some output capacitors on your VCC. But where are they on the layout ? they MUST be extremely close to each VCC pins of every IC. \$\endgroup\$
    – Blup1980
    Sep 28, 2020 at 9:01
  • \$\begingroup\$ @Blup1980 good question. I just edited my original post with a screenshot of that section of the board layout. The capacitors on the output of IC1 are actually positioned right next to the VCC input pin of U1 (esp-32 module). \$\endgroup\$
    – MikeJWms
    Sep 28, 2020 at 9:14
  • 1
    \$\begingroup\$ In my experience, 50-100uF are necessary for stable operation. \$\endgroup\$
    – asdfex
    Sep 28, 2020 at 9:26

1 Answer 1


Thank you for all of the suggestions. I found that adding a 100uF electrolytic capacitor between gnd and VCC solved the problem. I'm also going to test some more powerful LDO's, but until they come in, the cap will work nicely.

  • 1
    \$\begingroup\$ Regardless of the LDO, you'll likely need a good output capacitor. \$\endgroup\$
    – Passerby
    Nov 22, 2020 at 8:07
  • \$\begingroup\$ @Passerby I will keep that in mind, thanks! \$\endgroup\$
    – MikeJWms
    Nov 23, 2020 at 21:33

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.