On my own PCB an ESP32-WROOM module is powered from 5 V through a small 3.3 V regulator. The board runs simple code perfectly, but as soon as WiFi.begin() is called it restarts, and the serial log shows "Brownout detector was triggered". On USB power from my PC it sometimes connects; from a phone charger with a long cable it usually does not.
How much current does the module really need, and what should the supply and decoupling look like?




