ESP8266 Support WIKI

User Tools

Site Tools


start-with-esp-12-arduino

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
start-with-esp-12-arduino [2018/04/01 07:11]
jpascher [Setup an start test program blink]
start-with-esp-12-arduino [2018/04/01 11:12]
jpascher [Setup and start test program blink]
Line 25: Line 25:
   * [[https://​github.com/​esp8266/​Arduino|Arduino esp8266 platform]]   * [[https://​github.com/​esp8266/​Arduino|Arduino esp8266 platform]]
  
-===== Setup an start test program blink =====+===== Setup and start test program blink =====
  
   * Connect Hardware as shown in description Hardware on top here.    * Connect Hardware as shown in description Hardware on top here. 
   * Plugin Adapter (without ESP connected) to USB and check in Windows with Hardware manager that the added COM port ist working. And verify the COM"​XX"​ in use. You may use Putty to test the COM port with RXD and TXD connected toggelter. This will give you an echo on the Terminal all you type comes back to the display. ​   * Plugin Adapter (without ESP connected) to USB and check in Windows with Hardware manager that the added COM port ist working. And verify the COM"​XX"​ in use. You may use Putty to test the COM port with RXD and TXD connected toggelter. This will give you an echo on the Terminal all you type comes back to the display. ​
   * Install Arduino form "​https://​www.arduino.cc/​en/​Main/​Donate" ​   * Install Arduino form "​https://​www.arduino.cc/​en/​Main/​Donate" ​
-  * Open in Arduino "​File"​ -> "​Preferences"​ window and add in an additional Board Manager URL: http://​arduino.esp8266.com/​versions/​2.3.0/​package_esp8266com_index.json  +  * Open in Arduino "​File"​ -> "​Preferences"​ window and add in an additional Board Manager URL:​http://​arduino.esp8266.com/​versions/​2.4.1/​package_esp8266com_index.json 
-  * Type in "​esp8266"​ and select the correct chip in the popup window. ​  +  * Type in "​esp8266"​ and select the correct chip in the popup window. And select the latest version 2.4.1 and push putten for install.   
-  * Open in Arduino "​Tools"​ -> Board:"​xxxxxxx"​ Board manager window and find Board name: "​NodeMCU 1.0 (ESP-12E Module)"​+  * Open in Arduino "​Tools"​ -> Board:"​xxxxxxx"​ Board manager window and find Board name: "​NodeMCU 1.0 (ESP-12E Module)"​(Alternativ one can install the latest Master version from Git as explained here: https://​github.com/​esp8266/​Arduino)
   * Open in Arduino "​Tools"​ -> PORT:"​xxx"​ the port your Adapter is on.    * Open in Arduino "​Tools"​ -> PORT:"​xxx"​ the port your Adapter is on. 
   * Open in Arduino "​File"​ -> "​Examples"​ and find -> "​Examples for NodeMCU 1.0 (ESP-12E Module)"​ ->  and then "​ESP8266"​ -> then"​BlinkWithoutDelay"​ Example.   * Open in Arduino "​File"​ -> "​Examples"​ and find -> "​Examples for NodeMCU 1.0 (ESP-12E Module)"​ ->  and then "​ESP8266"​ -> then"​BlinkWithoutDelay"​ Example.
-  * Turn on the program swish on on the board or an the adapter. -> Push reset. ​+  ​* 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 seams to be some confusion on Port numbering. On the board is written TXD0 for this pin.)  
 +  ​* Turn on the program swish on the board or on the adapter. -> Push reset. ​
   * In Arduino push the upload (Blue error ->) and wait until 100% is reached. While uploading the blue LED on the board is flashing.   * In Arduino push the upload (Blue error ->) and wait until 100% is reached. While uploading the blue LED on the board is flashing.
   * Turn the program swish off on the board or on the adapter. ​   * Turn the program swish off on the board or on the adapter. ​
Line 42: Line 43:
   * You also can watsch the output on the Terminal within Arduino got to Tools - serial Monitor change to 74880 Baud do a reset again.   * You also can watsch the output on the Terminal within Arduino got to Tools - serial Monitor change to 74880 Baud do a reset again.
   * Output should be just one time and not repeated like this:    * Output should be just one time and not repeated like this: 
 +{{:​terminal-log.png?​100|}} If repeated output happens the board is rebooting, something wrong with the program or wiering.
   * Adapter can be removed now and programmed module can be used with external 3.3V supply. ​   * Adapter can be removed now and programmed module can be used with external 3.3V supply. ​
start-with-esp-12-arduino.txt · Last modified: 2018/08/26 17:47 by rudy