Electronic – Arduino ESP8266: Connecting external power supply and USB from PC at the same time

esp8266power supplyusb device

I am using a ESP8266 esp-12e NodeMCU development board. The board has 1117 regulator to generate the 3.3V required by the module. It takes input from USB cable.

When i connect the NodeMCU to my desktop computer via USB cable, i am able to upload and run the programs into it from ArduinoIDE.

But when i connect the same NodeMCU(using the same USB cable) to my laptop, i get the following errors when i try to run programs using ArduinoIDE:-

espcomm_sync failed

espcomm_open failed

I tried searching the internet and found some threads explaining that insufficient power is the cause of these errors. Which means the NodeMCU is not getting sufficient power from the laptop(i guess!!).

So i have ordered an external 3.3Volt power supply meant for Arduino based devices.

But i am not sure whether to connect the NodeMCU to my laptop as well as the external power supply at the same time??

Is it safe to do so or will it cause any harm to the NodeMCU/Laptop ??

Best Answer

According to the schematics of the board, there is a diode (D1) between the VDD5V and the VDDUSB net to prevent any current flowing back, towards the laptop's USB port.

enter image description here

Just make sure that you connect your external power supply's GND to your board's GND, and the 3.3 V to the board's 3.3 V pin.