Connect Hardware as shown above
Check serial adapter
Plugin Adapter (without ESP connected) to USB and check in Windows (with device manager) that you can see the new COM port
If the device is not recognized, you will need to install a driver for your USB-to-serial adapter
You can use Putty to test the COM port with RXD and TXD connected together. This will give you an echo on the terminal: everything you type is immediately visible in the terminal.
-
-
Open Arduino “Tools” → “Board:xxxxxxx” → “Board Manager”
Change the “Type” in the upper left to “Contributed”
Type “esp8266” in the filter box
Select “NodeMCU 1.0 (ESP-12E Module)” and press the “Install” button
-
In “Tools” → PORT:“xxx” select the correct COM port for your serial adapter
Open “File” → “Examples” → “Examples for NodeMCU 1.0 (ESP-12E Module)” → “ESP8266” → “BlinkWithoutDelay”
Add the following Line on top of the example:
#define LED_BUILTIN 2
This is needed because the example is written for a ESP-01 module and not for ESP-12. The blue LED is on internal PIN 2 not on PIN 1.
There seems to be some confusion on Port numbering. On the board this pin is labeled TXD0.
Turn on the program switch on the board or on the adapter and push reset.
In Arduino push the upload button (Blue arrow →) and wait until 100% is reached. While uploading the blue LED on the board is flashing.
Turn the program switch off and push reset - you might need to cycle the power off and on
If everything worked correctly, the blue LED should be flashing fast - Congratulations! Unfortunately the blue Led is also flashing slower if something went wrong.
You also can watch the serial output on the Terminal within Arduino:
go to “Tools” → “Serial Monitor” change to 74880 Baud do a reset again.
Output message from the ESP-12E should appear just one time and not repeated like this:
If repeated output happens the board is rebooting, and something is wrong with the program or wiring.
Adapter can be removed now and programmed module can be used with an external 3.3V supply.