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/03/23 19:10]
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 1: Line 1:
 ====== Start with the ESP-12 and the Arduino tools ====== ====== Start with the ESP-12 and the Arduino tools ======
 ===== Hardware ===== ===== Hardware =====
-* {{::​usb-to-esp8266-serial-wireless-wifi-module-developent-board-8266-wifi-module.jpg_640x640.jpg?​100}}{{:​esp8266_flash_prog_board_sch.png?​300|}}{{:​12-01.jpg?​200|}}+* {{::​usb-to-esp8266-serial-wireless-wifi-module-developent-board-8266-wifi-module.jpg_640x640.jpg?​100}}{{:​verbindungen-8266.png?​300|}}{{:​12-01.jpg?​100|}}{{:​esp-8266-belegung.png?200|}}
   * [[esp8266-module-family#​esp-12|ESP-12E module]] depending on module type additional wiring with resistors may vary. A few resistors have to be added to module 12E. On modules on next generation 12S or newer resistors may be on board or if the withe breakout board (http://​thethingofinternets.com/?​p=4) is used two resistors are on the board. ​   * [[esp8266-module-family#​esp-12|ESP-12E module]] depending on module type additional wiring with resistors may vary. A few resistors have to be added to module 12E. On modules on next generation 12S or newer resistors may be on board or if the withe breakout board (http://​thethingofinternets.com/?​p=4) is used two resistors are on the board. ​
   * 12E needs: ​   * 12E needs: ​
Line 7: Line 7:
   * one 10k from EN (or labeled CH_PD) to VCC,    * one 10k from EN (or labeled CH_PD) to VCC, 
   * one 10k from GPIO0 to VCC,    * one 10k from GPIO0 to VCC, 
-  * one 4k7 from RST to GPIO16.+  * one 10k from GPIO2 to VCC.
   * 3.3V power supply or supply from adapter   * 3.3V power supply or supply from adapter
-  * USB-serial adapter ( ESP8266 ​ESP Serial ​WiFi Adaptor ​Module ​CH340G Driver ​) this one has swish for programming on board. USB zu (ESP8266 seriell Adapter ESP01 Programmierer ESP UART Arduino) also can be used is nearly the same sure others also will work, just make sure the have a lever changer on board.+  * USB-serial adapter (CH340G USB to ESP8266 Serial ​Wifi Module ​Development Board Adapter) this one has no switch ​for programming on board. USB zu (ESP8266 seriell Adapter ESP01 Programmierer ESP UART Arduino) also can be used is nearly the same sure others also will work, just make sure the have a lever changer on board.
   * If programming swish is missing one has to add the two jumpers or the switch.   * If programming swish is missing one has to add the two jumpers or the switch.
-  * Connect adapter ​+  * Wire up Reset and Programming switch
   * RXD from adapter to TX on ESP12E and    * RXD from adapter to TX on ESP12E and 
   * TXD from adapter to RX on ESP12E, ​   * TXD from adapter to RX on ESP12E, ​
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 to USB and check in Windows with Hardware manager that the added COM port ist working. And verify the COM"​XX" ​it is using.+  * 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. ​+  ​* 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 on the program swish off on the board or on the adapter.  +  * Turn the program swish off on the board or on the adapter.  
-  * Push reset on the Board or an the Adapter. Maybe a additional power of an on is also needed. +  * Push reset on the Board or on the Adapter. Maybe a additional power of and on is also needed. 
-  * Now the on board Led should be flashing.+  * Now the on board Led should be flashing ​fast. Unfortunately the blue Led is also flashing slower if something did go wrong. 
 +  * 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:  
 +{{:​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