Why ESP32 brownout happens
Brownout occurs when the ESP32 supply voltage drops below a safe operating level. This often happens during WiFi peaks because current rises quickly.
Common causes
Weak USB cables, small breadboard wires, poor regulators, insufficient bulk capacitance and battery voltage sag are common brownout causes.
How to debug
Measure voltage at the ESP32 3.3 V pin during WiFi activity. Do not rely only on the voltage at the power adapter.
Practical fixes
Use a better regulator, shorter wires, a low-ESR bulk capacitor and a ceramic capacitor close to the ESP32 power pins.