How to flash ESP-12-E/ESP8266 Module

ESP8266 is a small powerful wifi chip that has so many features. Ever since its launch so many companies have produces their own variant of boards. I tried a couple of them and they were cool but some manufacturer do not produce it for certification that directly reflects in defective pieces. that means If something is not working after hours of debugging you will come to know that the module was defective. I was tired of this and wanted to get to a standard always working wifi module (atleast 99%). Then came this module under my search radar ESP-12E.

esp8266

 

 

 

 

 

 

 

 

 

 

 

Its a FCC certificed esp8266 module developed by I guess Ai-Thinker. I quickly got the module in hands and realised that there is no simple way to flash unless you know what you are doing. For people who want to use the module in to a product or application has to either get a development board which contains this module or make their own board.  Since I already had got a couple of esp-12e and was not interested in any development board as I have to again find a solution to flash the module in a later timeline. I went ahead to find a solution to flash the module. After many trial and error I found these sites leading me to the right direction.

http://www.instructables.com/id/Getting-Started-with-the-ESP8266-ESP-12/

http://electronictechaddict.blogspot.de/2015/10/esp8266-esp-12-esp-12e-how-to-flash.html

These links advised to power the module with an external power supply, but I was interested in powering it with just USB 5V 500mA power supply just like any other development board offered.

Again after doing some more research I settled with the following configuration which works best for me.

You need the following things

  1. ESP-12E module – http://www.exp-tech.de/esp8266-smt-mobule-esp-12?___SID=U
  2. Sparkfun FTDI BasicBreakout  3v-  http://www.exp-tech.de/sparkfun-ftdi-basic-breakout-3-3v
  3. 2X Jumper – https://en.wikipedia.org/wiki/Jumper_%28computing%29
  4. Male Pin Header – https://en.wikipedia.org/wiki/Pin_header
  5. 3X 10K resistor – https://www.conrad.de/de/metallschicht-widerstand-10-k-axial-bedrahtet-0207-06-w-yageo-mf0207fte52-10k-1-st-1417569.html
  6. Lot of connecting wires
  7. Perfboard – https://en.wikipedia.org/wiki/Perfboard

Now I built my circuit based on the following direction,

20160830_134019-300x225

 

 

20160830_133747-1024x768

 

 

 

 

 

If you see the schematic I drew  it in such a way that the right side of the circuit resembles the Sparkfun FTDI Basic pinout. The final prototype of the board looks like this

20160830_123847-1024x768

Use your favourite SDK either from ESP8266 or from Arduino, I used Arduino IDE. To flash put the jumpers, connect the USB cable to the PC and configure the Arduino to recognize and “Upload”. To run the code, unplug the jumpers and power it thats all :).

 

 

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *