ESP8266 Wi-Fi Module is Now Supported in Arduino IDE

ESP8266 revolutionized the IoT world by offering an ultra low cost Wi-Fi solution either standalone or connected to a micro-controller board via SPI or UART. There are plenty of tutorials on the web to play with the Wi-Fi module, but it’s only recently an Arduino IDE has added support for ESP8266.

ESP8266 Board in Arduino IDE (Click to Enlarge)
ESP8266 Board in Arduino IDE (Click to Enlarge)

If you want to try it, you can download the binary for Linux, Windows, or Mac OS X. Since my computer is running Ubuntu 14.04, I download and extracted arduino-1.6.1-linux64.tar.xz to install it in my PC. Now simply run the arduino script to start the IDE, and select to Tools->Board->Generic ESP8266 board. I don’t own an ESP8266 module myself, but Olimex tried it on their ESP8266-EVB:

  1. They connected a serial debug board and selected Tools->Port->/dev/ttyUSB0 in the IDE
  2. Selected Tools-> Programmer->esptool
  3. Loaded Blink example, and modified it to turn on and off the relay on their evaluation board.

If you don’t find turning on/off an LED or a relay, there are also a few ESP8266 samples to run a Web Server, an mDNS responder, as well as Wi-Fi client, Wi-Fi scan, and a Wi-Fi server that controls GPIOs.

Development is not complete yet, and there are plans to allow sketch uploading via Wi-Fi, I2C slave support, hardware PWM, and so on.

Support CNX Software - Donate via PayPal or become a Patron on Patreon

7
Leave a Reply

avatar
7 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
3 Comment authors
$9 ESP8266 D1 Board Features Arduino UNO HeadersIoT Wi-Fi Modules Comparison Table – ESP8622 vs CC3300 vs RN131 vs HDG204Cisma Arduino$10 Digistump Oak ESP8266EX Board is Arduino Compatible, Connects to the Cloud, and More (Crowdfunding)Simos Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Abdullbasit
Guest
Abdullbasit

Is this support for Arduino for interfacing with ESP8266 via serial or for ESP8266 itself (standalone) ?
and how can one runs his own program on ESP8266 ?

Simos
Guest

Apart from using the .tar.xz package, it is quite easy to compile source on Ubuntu 14.04.
I tried the IDE with the ESP-201 and it worked well.
The most tricky issue is to switch the board between the two modes; boot from SPI flash or download code from UART.
At https://github.com/esp8266/esp8266-wiki/wiki/Boot-Process it explains how to use specific GPIO pins in order to guide the board what to do.

trackback

[…] to add Bluetooth, RF, GPS, sensors to the board relatively easily. Programming can be done with the Arduino IDE, or RootCloud IDE, a web based development environment that allows to write code from any browser, […]

trackback

[…] cabeza visible del proyecto. Aún más ya están apareciendo varios spinoff como ESP8266 con soporte para Arduino 1.6.1 y no olvidemos el proyecto NodeMCU que es una laternativa muy interesante para el IoT. […]

trackback

[…] an edge, for example if you need an Arduino shield, although ESP8622 can be programmed with the Arduino IDE, and some ESP8266 based shields are available, but probably not as well supported (yet?) as the […]

trackback

[…] already seen the Arduino IDE supports ESP8266(-EX) WiFi SoC, and some companies have designed Arduino shields for ESP8266 modules, but so far I had […]