Items needed(total cost of all the components is based on the prices from aliexpress)1)1x ESP-12F module(pre programmed with tasmota firmware) 2)1x 10k SMD resistor 3)1x 10K thru-hole resistor. 4)2x 4001 SMD diode 5)1x USB male connector(PCB mount - smd).
1)Ensure that ESP-12F module is programmed with tasmota firmware(here you can find the details on ESP-12F module programming)2)mount 10k smd resistor between GND and IO15 pad of the ESP-12F module.
4)Stick a piece of insulation tape on the right side of the ESP-12F module so that USB connector doesnt short any pads.
5)Place USB connector as shown below and smd pins of the USB connector shall be placed over the insulation tape.
6)on the backside of the board, fix the USB connector to the ESP-12F using hot-glue(dont apply hot glue on the smd pin side of the USB connector yet, this will be done at later stage)
7)solder two SMD diodes in series between Plus(+) line of the USB connector and VCC pad of the ESP-12F module.
8) Connect Minus(-) line of USB connecotr to the GND pad of ESP-12F module
9)Apply Hot glue on both the sides of the USB connector and ESP-12F for stability.