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.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
7 Comments
oldest
newest
Abdullbasit
Abdullbasit
9 years ago

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
Simos
9 years ago

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.

Boardcon Rockchip and Allwinner SoM and SBC products