ESP32 Brownout Detector Triggered
Complete guide to diagnosing and fixing brownout detector issues on ESP32. Learn about voltage thresholds, power supply requirements, and permanent solutions.
Last updated: April 22, 2026 | 8 min read
Symptoms
- Serial Monitor shows "Brownout detector was triggered" message
- ESP32 resets or reboots during WiFi connection or relay activation
- Device works fine on USB power but fails on battery or external supply
- Voltage drops below 3.0V when measured at 3.3V pin
- LEDs dim or flicker when relays activate
- ESP32 enters boot loop when high-current devices are activated
Common Causes
- Inadequate power supply Supply cannot provide enough current
- Poor USB cable quality Thin wires cause voltage drop under load
- Relay modules drawing too much current Each relay coil draws ~70mA
- Long or thin power wires Resistance causes voltage drop
- Brownout threshold too high ESP32 resets at 3.0V or 3.3V depending on model
- Capacitor missing or undersized No buffer for current spikes
Brownout Thresholds by ESP32 Model
| ESP32 Model | Brownout Threshold | Minimum Operating Voltage |
|---|---|---|
| ESP32-D0WD (original) | 3.0V | 2.7V |
| ESP32-D0WD-V3 | 3.0V | 2.7V |
| ESP32-S3 | 3.3V | 3.0V |
| ESP32-C3 | 3.0V | 2.7V |
ESP32 Current Draw by Operation
| Operation | Current Draw | Notes |
|---|---|---|
| Deep sleep | 5-10 A | Minimum power consumption |
| Light sleep | 0.8-1.5 mA | ULP coprocessor active |
| Idle | 50-80 mA | CPU running |
| WiFi scanning | 120-150 mA | Short bursts |
| WiFi connected | 80-120 mA | Average consumption |
| WiFi transmitting | 180-240 mA | Peaks during transmission |
| Relay | 50-80 mA | When activated |
Step-by-Step Fixes
1. Upgrade Power Supply
The most common fix. ESP32 needs stable power, especially during WiFi transmission.
- Use 5V 2A power supply minimum
- For multiple relays, use 5V 3A or higher
- Avoid computer USB ports
- Use quality USB cable with thick wires
2. Add Bulk Capacitor
A capacitor acts as a temporary battery during current spikes.
// Wiring diagram:
// ESP32 5V pin ---(+)--- 470-1000F capacitor --- 5V power supply
// ESP32 GND pin ---(-)--- capacitor GND --- power supply GND
// Place capacitor as close to ESP32 as possible
- Use 470-1000F electrolytic capacitor
- Connect (+) to 5V and (-) to GND
- Add a 0.1F ceramic capacitor in parallel for high-frequency noise
3. Check Voltage Drop
Use a multimeter to measure voltage at ESP32 pins during operation.
- Measure between 3.3V pin and GND during WiFi connection
- Voltage should stay above 3.0V at all times
- If voltage drops below 3.0V, power supply is inadequate
- Measure at ESP32 pins, not at power supply output
4. Power Relays Separately
Relay coils draw significant current. Power them from a separate supply.
- Connect relay VCC to separate 5V supply
- Connect relay GND to ESP32 GND
- Signal pins connect directly to ESP32 GPIO
- Use optocoupler-isolated relay modules for best isolation
5. Reduce Brownout Threshold
For testing only not recommended for production.
#include "soc/soc.h"
#include "soc/rtc_cntl_reg.h"
void setup() {
// Disable brownout detector
WRITE_PERI_REG;
// Your code here
}
6. Use Shorter/Thicker Wires
Long thin wires cause voltage drop under load.
- Keep power wires under 2 meters
- Use 22 AWG or thicker for power lines
- For long runs, use higher voltage with voltage regulator at ESP32
7. Check for Short Circuits
A partial short can pull voltage down.
- Measure resistance between 5V and GND
- Measure between 3.3V and GND
- Check for solder bridges or stray wire strands
- Test each component individually
Diagnostic Commands
- Monitor brownout events: Add to setup():
Serial.println); - Check brownout threshold:
Serial.println); - Monitor voltage: Use external multimeter
- Test power supply: Measure voltage at ESP32 pins while activating WiFi and relays
Prevention Tips
- Always use 5V 2A minimum power supply for ESP32 projects
- Add 470-1000F capacitor between 5V and GND
- Power relays and motors from separate supply
- Use thick, short wires for power connections
- For battery-powered projects, use boost converter to maintain 5V
- Monitor battery voltage and enter low-power mode before brownout
Related Issues
Frequently Asked Questions
Q: What does "Brownout detector was triggered" mean?
A: The ESP32's internal voltage dropped below its safe operating threshold . This triggers an automatic reset to prevent corrupted operation.
Q: Can I disable the brownout detector permanently?
A: Yes, but it's not recommended. Disabling it masks the real problem and can lead to corrupted flash or unpredictable behavior.
Q: What size capacitor do I need?
A: 470-1000F is typical. Larger capacitor = more energy storage, but too large can stress the power supply at startup. Start with 470F.
Q: Why does brownout happen only when WiFi connects?
A: WiFi transmission draws the most current . This peak current causes voltage drop on weak power supplies. Add capacitor or upgrade power supply.
Still having brownout issues? Contact Support or return to the Troubleshooting Hub.