0

I'm Using an ESP32 - NodeMCU. One of the MCU's is acting weird upon boot, while at start I thought it was something to do with its sleep cycle. But, it seems that even on a minimal code as shown below, I get this message at the Serial output: Brownout detector was triggered

void setup()
{
  Serial.begin(9600);
  Serial.println("\nBegin");
  Serial.println(bootCounter);

  WiFi.begin("Xiaomi", "guy");

  while (WiFi.status() != WL_CONNECTED && millis())
  {
    delay(200);
    Serial.print(".");
  }
}

Edit 1: attaching MCU picture.

ESP32 NodeMCUCan someone please explain ?

Edit 2: A workaround stop alerting

2
  • Can you link to the actual board you are using? – Majenko Jul 5 '20 at 8:36
  • @Majenko See edit 1 – Guy . D Jul 5 '20 at 10:29
4

Those boards have an inherent weakness in that they don't provide enough decoupling capacitance for the module.

Not all modules are quite the same, and some have more internal decoupling than others (not by design, just due to component tolerances).

I have found that unless you provide adequate decoupling of your own some modules work just fine and some don't. Some brown-out and some fail to flash.

For all my designs now I always provide both a 100nF and an 10uF capacitor right at the power pins of the module. However those boards don't provide anything like that.

You need to modify the board to add a capacitor (about 10uF) directly across the power and ground pins (pins 1[ground]-2 [3.3v]) of the ESP32 module. I like to use an 0805 MLCC capacitor as they fit nicely across the pins and are discrete, but they can be tricky for a novice to solder. So an electrolytic through-hole capacitor can be a simpler proposition (make sure you get the polarity right).

6
  • Since I was it with solar panel and a battery, those RTC variables are vital to survive a proper boot. Can you please add a diagram foradding capacitors? – Guy . D Jul 5 '20 at 12:11
  • Not really. You just connect one side to the GND pin (pin 1) and the other to the 3.3V pin (pin 2). – Majenko Jul 5 '20 at 12:18
  • 10uF and 100 nF in parallel ? – Guy . D Jul 5 '20 at 12:39
  • No, you just need the 10uF. – Majenko Jul 5 '20 at 12:51
  • 1
    I always add a cap when designing an ESP32 board. Adding it to all development boards can't hurt, that's for sure. For USB the on-board regulator may be a little weak, or your USB voltage may be a little reduced, maybe from a USB cable with too-thin wires. – Majenko Jul 5 '20 at 18:49
3

I came across the same issue on my experiments.

What sorted the issue for me was powering the ESP-32_CAM from the 5V pin on the programmer. Take the cable off the 3V and plug it into the 5V pin on the cam. Then use the jumper on the programmer to select the 5V.

I hope this makes sense and that it helps someone.

2

I had the same problem. I found that solution in a forum on Github, which helped at once:

#include "soc/soc.h"
#include "soc/rtc_cntl_reg.h"
void setup(){
WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector
1
  • Yes, I use it too now – Guy . D Jun 26 at 20:25
1

After some Tests i recognized, that the problem is between the miro-USB-connector to the Vin Pin. So i soldered a thin wire from Pin 5 of the USB-Connector (5V-Pin) to the Vin-Pin of The Dev-Board. And it works without Problems.

1
  • for me it happend using batteries for solar panel uses ( while it didn't happen some other boards on same setup ) – Guy . D Jun 27 at 14:46
0

It could even be a software issue, i.e Code, if you use LedCWrite without its setup then it causes this issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.