
In this post, you will find an easy way of programming ESP modules by converting wemos-D1-mini development board as a pogo-pin based docking station.

1)Wemos-D1-Mini board
2)8 pogo pins
3)ESP-12F module
4)USB-to-micro-USB cable
5)clip for holding the ESP module on pogo-pin dock.
Preperation:
1)de-solder existing ESP module from the wemos-D1-mini board(this is the most difficult part, you need good soldering skills).
2)carefully solder 8 pogo pins on the exposed ESP pads on the wemos-D1-Mini(TXD0,RXD0,IO0,IO15,GND,VCC,EN,RST)
3)place a fresh ESP module on the newly prepared wemos-D1-dock
4) On your Linux-Host-PC, run following commands to prepare the programming setup.
- cd ~
- git clone https://github.com/espressif/esptool
- cd esptool
- wget http://thehackbox.org/tasmota/release/sonoff.bin
- ./esptool.py --port /dev/ttyUSB0 erase_flash
- ./esptool.py --port /dev/ttyUSB0 write_flash -fs 1MB -fm dout 0x0 sonoff.bin