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.
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.
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.
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.
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.
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.
Shows voltage, current and power of a battery bank (INA219) so you know the real charge and load during outages.
Switch only low-voltage loads yourself. For mains loads use a certified isolated module in a box or call an electrician.
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.
Comments
No comments yet. Share your experience or ask a question.