ESP8266 are widely available low cost Wi-Fi modules. They consist of single chip CPU with GPIO, Analog channel, Serial channels, I2C, SPI, and most importantly on chip Wi-Fi. Initially marketed as a low cost Wi-Fi modules for Arduino, and Raspberry Pi boards, they also can be programmed as stand alone boards with the Arduino IDE. To do this, you need first to install the ESP8266 libraries and tools in the Arduino IDE.
The libraries and tools are available on gighub here:
- From the Menu select |File|Preferences| :
- For the “Additional Boards Manager URLs”, in the "Preferences" dialog set one of the following:
- If you want to use the stable release of the ESP8266 libraries:
- If you want to use the latest staging version of the ESP8266 libraries: http://arduino.esp8266.com/staging/package_esp8266com_index.json
- Click the OK button
- From the Arduino IDE Menu select |Tools|Board:......|Boards Manager...| :
- In the text box of the Boards Manager dialog type ESP, then select the “esp8266 by ESP8266 Community” and click on the Install button:
- When the installation finishes, clock on the “Close” button:
- Connect with USB cable your ESP8266 module to the computer.
- You can test with an empty sketch or a small sketch such as Blink.
- In the Arduino IDE from the menu select the type of the board type that you have. In my case this is “NodeMCU 0.9 (ESP-12 Module)” :
- Also from the Arduino IDE menu, select the Serial Port to which the module is connected :
- Click on the Upload button to compile and upload the sketch :
Congratulations! Your Arduino IDE is ready to support ESP8266 modules.