@LILI Please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```
Copy and paste these if you can’t find the correct symbol on your keyboard.
Then add this line of code at the beginning of your void setup…
Serial.begin(115200);
Once uploaded, open your serial monitor, set the baud rate to 115200 baud and see what it’s telling you.
If you plan on sharing your serial monitor output then copy/paste the text and use triple backticks again.
In future, you’d be better using the Blynk examples that are installed as part of the library, rather than taking a shotgun approach to installing every conceivable liberty without knowing which ones are needed.
Here it’s trying to connect to your WiFi, but before it is able to do that the brownout detector is triggered and the device reboots.
A brownout is when the supply voltage drops below an acceptable level, or the power supply can’t supply enough current.
This could be caused by a bad power source, poor quality or bad USB cable, or having too many peripherals (sensors, relays etc) being powered from the board.
Hai Pete
Thank You for your answer.
I tried to use adaptor and power bank but its still failed. In the ESP32 board, I just use one servo motor with the pin:
VCC to 3v3
GND to GND
OUT to D22
my friend said to use Vin pin for the VCC on the servo motor. So, what do you think? which one that I should use?
The 3.3v pin is intended to be the 3.3v input for your ESP32 board, but it can also be used as a 3.3v supply for peripherals if you’re supplying the board with 5v via the USB connector or 5v pin.
In this situation the 5v supply is converted to 3.3v by the onboard voltage regulator, and this 3.3v supply is used to power the ESP32 chip. If you draw too much current from the 3.3v pin then it will overload the onboard voltage regulator and may damage it, or cause the ESP32 chip to give a brownout alert because it’s not getting enough power.
I would suggest that you remove all the connections from the board apart from the USB cable and try running a simple Blynk ESP32 standalone sketch to ensure that you can get your board online.
Once you have that working then try adding-in your servo code and connecting-up your servo to see what causes the board to stop working.
I would expect that you’d need to either power your service from the 5v pin, or if it needs 3.3v then power it from a separate supply, but ensure you have a common ground between the ESP32 and this additional power supply.
What EXACTLY does this mean?
Is it not compiling, not producing any serial output, not connecting to Blynk, not producing the results you’re expecting, or something else?
In addition, you need to read this…
And you should also redact sensitive information such as your Blynk Auth token, WiFi credentials etc, when posting code to a public forum.
Thank you Pete.
So I tried to write another program, and its working but then I upload to ESP32 and it do nothing
Please help me to check it.
The code: