
ESP32 Brownout Reset and Boot Loop: Causes and Fixes
An ESP32 brownout reset means the 3.3 V supply dipped too low, so the chip reset itself. The fix is better power: a USB cable with 500 mA or more, a 5 V 1 A supply, and a 100 uF to 470 uF capacitor across 3V3 and ground. Do not disable the brownout detector to hide the fault.
Quick facts
- Serial message: Brownout detector was triggered, with rst:0xf (BROWNOUT_RST).
- Rated supply range: 3.0 V to 3.6 V on the 3.3 V rail. Default brownout level on classic ESP32: about 2.43 V.
- WiFi transmit draws about 240 mA in short bursts. Espressif recommends a supply that can deliver 500 mA or more.
- First fix: a 5 V 1 A wall adapter or a bench supply, with a short, thick USB cable.
- Never power motors or servos from the ESP32 pins. Give them a separate supply and a common ground.
What is a brownout reset?
A brownout is a short dip in the supply voltage. The ESP32 has a built-in detector that watches the 3.3 V rail. When the rail falls below the trigger level, the chip prints Brownout detector was triggered and resets. On a classic ESP32, the default trigger level is about 2.43 V. The chip is rated for 3.0 V to 3.6 V, so a dip below 3.0 V is already outside the rated range. The detector catches a collapse, not a small sag. Between 3.0 V and the trigger level, the chip can misbehave without ever printing the message. A clean reset is safer than running on a dying rail, because a low voltage can corrupt flash writes.
The Serial Monitor at 115200 baud shows the loop. The boot log prints, the program starts, WiFi begins, and the board resets again. The message reads rst:0xf (BROWNOUT_RST), boot:0x13, followed by Brownout detector was triggered. The cycle repeats until the supply improves. A boot loop with no brownout message is a different fault, such as a crash in setup or a bad flash. Read the first line of the log before you change anything. The reset reason tells you which fault to chase.
Why does the voltage dip?
WiFi transmit is the most common trigger. The radio draws about 240 mA in short bursts when it transmits. A USB port, a thin cable, or a weak regulator cannot deliver that burst fast enough, so the rail sags. The dip lasts milliseconds, but the detector catches it. The ESP32-CAM is worse, because the camera adds its own current draw on top of WiFi. A servo or a motor that starts at the same moment adds another burst. A long USB cable adds resistance, and the voltage drop across the cable grows with current. A laptop USB port on battery power can limit current without warning.
The on-board regulator also matters. Many DevKit boards use an AMS1117-3.3 regulator, which needs about 1.1 V of headroom. It wants about 4.4 V or more at its input to hold 3.3 V out. A USB port that delivers 4.6 V under load leaves little margin. A regulator that runs hot will throttle and drop the output. Touch the regulator after a reset loop. If it is too hot to touch, it is part of the problem. A separate 5 V supply into the VIN pin bypasses the USB fuse and gives the regulator a cleaner input. A 3.3 V pin feed bypasses the regulator entirely, but it must be a clean, regulated 3.3 V source. Never apply 5 V to the 3V3 pin. That pin connects straight to the chip, and 5 V will destroy it.
How do you find the cause in order?
Work the power chain in order: cable, port, load, capacitor, then board. Swap the cable first. Use a short, thick USB cable, ideally under 3 feet, with 24 AWG power wires. A thin charging cable is the most common cause. Next, change the USB port. Use a port directly on the computer, not an unpowered hub. Then try a 5 V wall adapter rated for at least 1 A, or a bench supply set to 5 V. If the resets stop on the wall adapter, the USB port was the limit. If they stop when you unplug a servo, the servo was the load. If they stop only when WiFi is off, the radio burst was the trigger.
Measure the rail if you have a multimeter. Read the voltage between the 3V3 pin and ground while the board runs. A reading below 3.0 V under load is outside the rated range. A reading that drops when WiFi starts confirms a supply fault. An oscilloscope shows the dip in detail, but a multimeter is enough to confirm the fault. Do not measure the rail by touching the meter probes to the chip pins. Use the header pins. A slip of the probe can short 3.3 V to ground and damage the board.
What fixes work, and in what order?
Use a regulated 5 V supply rated for at least 1 A. A wall adapter or a bench supply beats a laptop USB port for a WiFi project. Feed it through the USB port or the VIN pin. Keep the cable short and thick. Add a bulk capacitor across the 3V3 pin and ground, as close to the board as possible. A 100 uF to 470 uF low-ESR electrolytic capacitor absorbs the WiFi burst. Add a 0.1 uF ceramic capacitor in parallel to filter high-frequency noise. The capacitor is a buffer, not a power supply. It helps a good supply ride out a burst, but it cannot fix a supply that is too weak.
Power motors, servos, and LED strips from their own supply. Connect the grounds together, but do not share the power rail with the ESP32. A servo that starts can pull the shared rail down in milliseconds. The ESP32-CAM needs the same treatment. Power the camera board from a 5 V 1 A supply, not from a laptop port. Keep the WiFi and camera code on the ESP32, and keep the heavy load on its own regulator. If the board still resets after the supply, cable, and capacitor fixes, try a second board with the same sketch. A damaged regulator on one board can mimic a supply fault.
When is it a boot loop and not a brownout?
A boot loop with no brownout message has a different cause. A crash in setup can reset the chip before it prints anything useful. A bad flash or a wrong partition table can loop at the bootloader. A watchdog reset prints rst:0x8 or a task watchdog message, not a brownout message. Read the reset reason in the log. The code rst:0xf means brownout. The code rst:0xc means a software CPU reset. The code rst:0x8 means a watchdog reset. Each code points at a different fix. A software reset loop needs a code fix. A brownout loop needs a power fix. Do not chase a code bug when the log says brownout, and do not buy a bigger supply when the log says watchdog.
A sketch that worked yesterday and loops today may have a new library or a larger buffer. A WiFi plus Bluetooth plus display sketch can pass the power budget that a Blink sketch never reached. Check what changed. Remove the newest library or the newest peripheral and test again. The partition guide in this series covers a sketch that is too big for flash. The upload guide covers a board that will not enter download mode. Each guide starts from the exact message, and the brownout guide starts from Brownout detector was triggered.
Should you disable the brownout detector?
No, not as a fix. Disabling the detector hides the symptom and leaves the dip in place. The chip then runs below its rated supply, and it can corrupt flash writes or behave in ways that are hard to debug. Espressif documents the detector as a protection feature. Turn it off only as a last resort on a board you understand, and only after you have fixed the supply as far as you can. On ESP32-C3 and ESP32-S3 boards, you can raise the trigger level above 3.0 V instead, so the chip resets before it leaves its rated range. Do that only after the supply holds, or every small dip becomes a reset.
The right order is supply first, capacitor second, separate load third, and detector settings last. A 5 V 1 A supply and a short cable fix most brownout loops in minutes. A capacitor fixes the rest. A separate supply for motors fixes the stubborn cases. A detector change fixes none of them. It only changes when the chip admits the fault. Keep the detector on, fix the power, and the log will stay clean.
Step-by-step: Fix an ESP32 brownout reset loop
- Open the Serial Monitor at 115200 baud and confirm the message Brownout detector was triggered with rst:0xf (BROWNOUT_RST).
- Swap in a short, thick USB data cable, under 3 feet if you can.
- Move the board to a USB port directly on the computer, away from an unpowered hub.
- Try a regulated 5 V wall adapter rated for at least 1 A, or a bench supply set to 5 V.
- Unplug motors, servos, and LED strips from the ESP32 supply and power them separately with a common ground.
- Add a 100 uF to 470 uF low-ESR electrolytic capacitor across 3V3 and ground, close to the board, plus a 0.1 uF ceramic capacitor in parallel.
- Retest with WiFi on. The resets should stop when the supply holds above 3.0 V under load.
- If the board still resets, try the same sketch on a second board to rule out a damaged regulator.
- Keep the brownout detector on. Do not disable it to hide the fault.
Cause, test, and fix for brownout resets
| Likely cause | How to confirm | Fix |
|---|---|---|
| Thin or long USB cable | Resets stop with a shorter, thicker cable | Short, good-quality data cable |
| Weak USB port or unpowered hub | Resets stop on a wall adapter | 5 V 1 A adapter or bench supply |
| Servo, motor, or LED strip on the same supply | Resets happen when the load switches on | Separate supply, common ground |
| Not enough local capacitance | Resets only when WiFi starts | 100 uF to 470 uF across 3V3 and ground |
| Damaged regulator or board | Same setup works on a second board | Replace the board |
First code to run
Upload this sketch after you fix the supply. It prints the reset reason, starts WiFi, and prints the uptime each second. A brownout loop restarts the uptime counter.
// Brownout test sketch for ESP32
// Board: ESP32 Dev Module (DevKit V1)
// Library: none. Uses only the Arduino core.
// This sketch prints the reset reason, then starts WiFi to test the supply.
#include <WiFi.h>
void setup() {
Serial.begin(115200);
delay(1000);
// Print the reset reason code. 0xF means brownout on classic ESP32.
Serial.print("Reset reason code: ");
Serial.println(esp_reset_reason());
Serial.println("Starting WiFi. Watch for a reset.");
WiFi.begin("test-network", "test-password"); // Replace with your network
}
void loop() {
Serial.print("Uptime seconds: ");
Serial.println(millis() / 1000);
delay(1000);
}
Replace the network name and password with your own. The sketch does not need to connect. Starting WiFi is enough to test the supply under load.
Frequently asked questions
Why does my ESP32 reset when WiFi starts?
WiFi transmit draws about 240 mA in short bursts. A weak USB port, a thin cable, or a small regulator cannot deliver that burst, so the 3.3 V rail dips and the brownout detector resets the chip. Use a 5 V 1 A supply and a short cable.
What does rst:0xf mean on ESP32?
It means a brownout reset. The chip detected a supply dip below its trigger level and reset itself. On classic ESP32, the default trigger level is about 2.43 V, and the rated range starts at 3.0 V.
Can I power an ESP32-CAM from a laptop USB port?
Often no, not reliably. The camera plus WiFi draws more current than many laptop ports deliver under load. Power the ESP32-CAM from a 5 V 1 A wall adapter or a bench supply for a stable test.
Will a bigger capacitor fix a brownout?
A 100 uF to 470 uF capacitor helps a good supply ride out a WiFi burst. It cannot fix a supply that is too weak. Fix the supply first, then add the capacitor as a buffer.
Should I disable the brownout detector?
No. Disabling it hides the fault and lets the chip run below its rated supply. That can corrupt flash writes. Fix the power instead and keep the detector on.
Parts used in this guide
This guide fixes brownouts on the ESP32 DevKit V1 board and the ESP32-CAM board linked below. Power the ESP32-CAM from a 5 V 1 A supply, not from a laptop USB port.
- ESP32 DevKit V1 Development Board, 30-Pin WROOM-32, WiFi + Bluetooth, Dual-Core
- ESP32-CAM Development Board with OV2640 Camera Module, 4MB PSRAM
Related guides
- ESP32 vs ESP32-S3 vs ESP32-C3 vs ESP32-C6: Which Chip for Your Project
- ESP32 Upload Failed: Timed Out Waiting for Packet Header
- ESP32 Flash and Partition Errors: Not Enough Space Fix
Sources
- ESP32 brownout reset error
- ESP32 brownout detector was triggered: how to fix it
- ESP32 brownout resets: causes and fixes
Last updated: 2026-11-21
