ESP32 keeps resetting: "Brownout detector was triggered"

Why an ESP32 reboots when Wi-Fi or a relay switches on, how to find the weak spot in the power path and what actually fixes it.

The message means the chip saw its supply voltage dip below a safe level for a moment and restarted itself on purpose. The dip is almost always real: the radio draws short current peaks of several hundred milliamps when it starts transmitting, and anything in the path that cannot deliver them will sag.

Look at the power path, in this order

  • The USB cable. Thin, long or worn cables have enough resistance to drop half a volt at the board. Try the shortest cable you own, and a different one.
  • The port or supply. A laptop port that is shared with other devices, or a 500 mA charger, is a common culprit. Use a supply rated for at least 1 A.
  • The wires between the supply and the board, if you power it through the 5 V or 3.3 V pin. Long breadboard jumpers add resistance too.
  • The load you switch. Relay coils, motors and LED strips cause dips and noise when they turn on. Give them their own supply and join only the grounds.
  • A battery that is nearly empty. A lithium cell that reads fine at rest can fall under 3.3 V while the radio transmits.

What helps

A capacitor of 100–470 µF close to the board’s supply pins smooths short peaks, and a 100 nF ceramic next to it handles fast noise. A better cable and a stronger supply fix most cases before you touch a capacitor.

Should I switch the detector off?

You can disable it in software, but that only hides the symptom: the chip may then crash in less obvious ways or corrupt data. Use it as a measuring tool instead. If the message disappears after you change the cable, you have found the cause.

A multimeter shows the average voltage but not the dips. If the problem stays, an oscilloscope on the 3.3 V rail while the board connects to Wi-Fi shows exactly how deep and how long the dips are.

Tools that help

  • Reference — Searchable ESP32 error guide (Brownout, Failed to connect, Guru Meditation), 3.3 V vs 5 V cheat sheet and ESP32 module comparison table.
  • Battery calculator — Estimate how long an ESP32 runs on a battery: capacity, deep sleep current, Wi-Fi activity time and wake interval, with saving tips.

Projects related to this guide

Fix random resets and brownouts

A short power recipe for boards that reboot when Wi-Fi or a relay kicks in: a proper supply, a bulk capacitor, a good cable and where to measure.

  • Board ESP32 DevKit V1 (WROOM-32)
  • Level ●○○ Beginner
  • Build time 1 h
Pick parts / kit
⛔ High risk

High-current battery: a short circuit can start a fire. Put a fuse next to the battery plus, use thick enough wires and respect the BMS limits.

LiFePO4 / battery monitor

Shows voltage, current and power of a battery bank (INA219) so you know the real charge and load during outages.

  • Board ESP32 DevKit V1 (WROOM-32)
  • Level ●●○ Intermediate
  • Build time 1–2 h
Pick parts / kit
⚠ Caution

Switch only low-voltage loads yourself. For mains loads use a certified isolated module in a box or call an electrician.

Telegram remote control and status

A Telegram bot on the ESP32 reports status on request and switches a relay with commands from your phone, with no server and no port forwarding.

  • Board ESP32-C3 SuperMini
  • Level ●○○ Beginner
  • Build time 1–2 h
Pick parts / kit

Read next

← All guides

Comments

No comments yet. Share your experience or ask a question.

Comments are moderated.