Sometimes you just need a handy device that you can use to program your ESP8266MOD ESP-12 module. Typically, you would put your ESP8266MOD ESP-12 module on a breadboard and wire the USB to UART on to it. Most uploads fail because of insufficient power that is supplied by the USB to UART device. That necessitates the use of an external power source typically 5V with a 3.3 V converter.

But there is a solution, and the solution does not involve a $15 FTDI, all it takes is a CH340 USB to UART device with a payload of a 3.3V power regulator.

In this instructable I will demonstrate the construction of a self-contained dongle that has enough power at 3.3V, with enough output wires to flash your ESP8266MOD ESP-12 module without the need of a breadboard.

If you are getting the following error, then you want to build this:

warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_sync failed error:
espcomm_open failed error:
espcomm_upload_mem failed error:
espcomm_upload_mem failed

Step 1: Things Needed

USB to TTL converter UART module CH340G CH340 3.3V 5V switch ($0.65)

AMS1117 5V to 3.3V DC-DC Step down Power Supply ($0.22)

Piece of shrink wrap or electrical tape.

Piece of plastic sheet – thickness of a credit card.

Step 2: Preparing the AMS1117 5V to 3.3V DC-DC Step Down Power Supply

Start of by breaking the plastic at the bottom of the input pins and slide the pieces out. Then heat the pins one pin at a time with a soldering Iron and slide them to the back side of the board and solder them back. Then bend the pins as shown in the picture. Clip them to align with the +ve and -ve pins on the USB to TTL converter UART module

Step 3: Preparing the USB to TTL Converter UART Module

Cut and remove the transparent shrink wrap. Cut it from the side to prevent cutting connections on the PCB. I learned it the hard way.

Reheat and prepare the +ve and -ve pins on the USB to TTL converter UART module.

If the six output and jumpers pins are sticking out excessively from the surface then clip them with a wire cutter or file them down. If you file them down then be sure to clean off the filings from the surface.

Step 4: Putting It Together

Solder the positives and negatives of the power supply and the USB to TTL converter UART module together. Cut the plastic as shown and insert it in between to prevent shorting.

Shrink wrap or put a tape over it. Be sure to set the jumper to 3.3V.

Step 5: Connecting to ESP8266MOD ESP-12

The +ve and -ve from the 3.3V power supply pins go to the +ve and -ve on the ESP8266MOD ESP-12.

Additionally connect:

Rx on USB to UART -> Tx on ESP8266MOD

Tx on USB to UART -> Rx on ESP8266MOD

Ground on USB to UART -> GPIO0 on ESP8266MOD

It is ready to flash.

Step 6: Settings on the Arduino IDE

This image provides the settings I used to flash the ESP8266MOD ESP-12 module. Your COM port could be different. Be sure to manage that.and change it to what you discover. Be sure to remove the -ve from GPIO0 and restart the ESP8266MOD ESP-12 after flashing is complete.

<p>Hi Again.. I made it.. and the picture where is the connected esp is WRONG.. You have connected green line to gpio14 NOT to GPIO0 how it should be.. I spent quite a lot of time to figure out the problem.. please can You fix it for others?<br>Description is correct but the picture is missleading for me..</p>
I shall replace it with a correct picture. Thanks for point it out.
<p>Hi, why do you use the external regulator? it can be soldered easily directly to the white board from bottom side - its ready for it..</p>
The same is not the case when you want to program the ESP8266MOD module directly without attaching it to the white board. I had thought about leaving the 5V input pin on the regulator board available, in case one needed a 5V power source for the white board with a regulator.<br> Even if you have a regulator you can still use the 3V3 from the dongle. Depending on the regulator you could connect it to VCC pin on the white board or to the small PTH (plated through hole) next to the vcc pin of the ESP8266MOD module using a male jumper. <br>DO NOT CONNECT 5V INTO THE PTH. YOU WILL FRY THE ESP8266MOD MODULE.
<p>Nice. Good Idea!!</p>
Nice project for ESP8266 hackers.

About This Instructable




More by jainrk:ESP8266: I2C PORT and Address Scanner $1 USB to UART-serial flashing device (dongle) with 3.3 V power supply for ESP8266MOD ESP-12 module Program/Flash the ESP8266MOD ESP-12 module using the Witty Board and Arduino IDE 
Add instructable to: