Engineering note

ESP32 brownout on Wi-Fi start: board-level power margin

When association resets the chip, fix the 3.3 V rail under RF load before rewriting the Station example. Measure at the module pins, place bulk capacitance close, and leave headroom for TX current spikes.

Short checklist: ESP32 keeps brownout resetting on Wi-Fi start. What is wrong?

What you see

The board boots, UART prints a few lines, then Wi-Fi start triggers a brownout detector reset or a hard reboot. The Station example looks guilty. On a custom PCB the usual cause is power delivery that cannot hold 3.3 V through the TX current spike.

Association and the first probe frames are when the radio draws hardest. A cable, connector, or regulator that looks fine with a blink sketch can still collapse for a few hundred microseconds under Wi-Fi.

Measure where the chip drinks

Put the scope or meter on the ESP32 module 3.3 V and GND pins during association, not only on the bench supply output. A soft USB cable or a long 5 V run drops voltage only under load.

Watch for dips below the brownout threshold while the chip associates. If the supply rail at the PSU looks clean but the module pin dips, the loss is between the regulator and the package: trace resistance, connector, or missing local capacitance.

Repeat with a short, known-good data cable before changing firmware flags.

Bulk capacitance close to the package

RF pulses need charge sitting next to the power pins. A large electrolytic only at the USB connector does not help the radio. Place bulk and high-frequency decoupling near the ESP32 / module VIN and GND, with a short return path.

Module makers publish recommended caps for a reason. Skipping them on a dense layout is a common first-board miss. Reflow tombstoning of those caps shows up as random brownouts that move when you probe.

Regulator and USB headroom

Wi-Fi TX peaks are short but high. A regulator that is rated for average current can still brown out if input headroom, thermal derating, or dropout is tight.

Power-bank and laptop USB ports vary. A port that can charge a phone may still sag on a thin cable into an ESP32 board with a weak LDO. Prefer a firm 5 V source while debugging, then re-test on the product cable.

Battery designs need the same discipline on the 3.3 V switcher: inductor, feedback layout, and load transient. Deep-sleep current is a different problem; do not mix the two debug paths.

Firmware last

Only after the rail holds under association should you revisit Wi-Fi init order, modem sleep, or TX power tables. Rewriting the Station example first hides a board bug and burns a week.

If brownout disappears with Wi-Fi off and returns the moment STA starts, treat power as guilty until the scope says otherwise.

When to send the power section

If the dip is real at the module pins, or the regulator choice is unclear, send Leo a photo of the power tree (USB or battery → 3.3 V → module) or the schematic snippet. A short note of measured dip voltage and cable type is enough — no purchase order required.

Short checklist version of this topic: /answers/esp32-brownout-reset.html

中文

工程长文

ESP32 一开 Wi-Fi 就欠压复位:板级电源余量

关联时芯片复位,先查射频负载下的 3.3 V 轨,再改 Station 例程。在模组脚上测、大电容靠近封装,并为发射电流尖峰留余量。

短答清单: ESP32 一开 Wi-Fi 就欠压复位,先查什么?

你会看到什么

板上电,串口打几行,一开 Wi-Fi 就触发欠压检测复位或直接重启。Station 例程很像凶手。定制板上更常见的是:供电扛不住发射电流尖峰,3.3 V 撑不住。

关联和前几帧探测是射频电流最大的时候。对 Blink 看起来正常的线材、插座或稳压,仍可能在 Wi-Fi 下塌几百微秒。

在芯片喝电的地方测

示波器或表笔打在 ESP32 模组的 3.3 V 与 GND 脚上,在关联瞬间看,不要只看电源表头输出。软 USB 线、过长的 5 V 走线,只在负载时掉压。

看关联过程中是否掉到欠压阈值以下。若电源端干净、模组脚却掉,损耗在稳压到封装之间:铜阻、连接器或本地电容不够。

换一根短的、确认能传数据的线再测,再改固件参数。

大电容要靠近封装

射频脉冲需要电荷就在电源脚旁边。大电解只焊在 USB 口附近帮不上射频。体电容与高频去耦要靠近 ESP32/模组电源与地,回流路径要短。

模组手册推荐的电容有原因。密布局时省掉它们是第一版常见漏项。回流后这些电容立碑,会表现为乱跳的欠压,一探针又变。

稳压与 USB 余量

Wi-Fi 发射峰值短但高。按平均电流选型的稳压,在输入余量、温升降额或压差不够时仍会塌。

充电宝和笔记本 USB 口差异大。能给手机充电的口,经细线进弱 LDO 的 ESP32 板仍可能掉。调试时先用硬的 5 V 源,再回到产品线材复测。

电池方案在 3.3 V 开关电源上同样要看电感、反馈布局与负载瞬态。深睡电流是另一条问题,别和欠压调试混在一起。

固件放最后

确认关联时电源轨站得住,再去动 Wi-Fi 初始化顺序、modem sleep 或发射功率表。先改 Station 例程只会藏板级问题,再耗一周。

若关掉 Wi-Fi 就不欠压、一开 STA 就复现,在示波器洗清之前,先当电源有罪。

何时把电源段发过来

若模组脚上确实有掉压,或稳压选型拿不准,把电源树照片(USB/电池 → 3.3 V → 模组)或原理图片段发给 Leo。写清测到的掉压幅度和线材类型就够——不必先有采购单。

本话题短答清单:/answers/esp32-brownout-reset.html