Tag Archives: ESP8266 tutorial


Tutorial 1: Setting up the Arduino IDE for EasyESP-1

One of the simplest way to program the ESP8266 chip on board EasyESP-1 is using the Arduino IDE. Following steps describe how to enable the ESP8266 support in the Arduino environment.

Step 1 : Install Arduino IDE
The first step toward setting up the Arduino platform for programming EasyESP-1 is to download and install the Arduino IDE. Go to the Arduino website and download Arduino IDE 1.6.11.

Step 2: Install ESP8266 core package
Next step is to install the ESP8266 core for Arduino IDE. It is an add-on that allows to write sketches for ESP8266 using the Arduino IDE  and its libraries. The easiest way to install the ESP8266 core is by typing in http://arduino.esp8266.com/stable/package_esp8266com_index.json
into Additional Board Manager URLs field in the Arduino-> Preferences window (see figure below).

Adding ESP8266 support to Arduino IDE using Preferences window

Adding ESP8266 support to Arduino IDE using Preferences window

Click OK and then go to Boards Manager and install the ESP8266 core. It appears at the end of the list as esp8266 by ESP8266 Community (see figure below). Select 2.3.0 version from the dropdown list.

Installing ESP8266 core from Boards Manager

Installing ESP8266 core from Boards Manager

Step 3: Select the right board
Next you need to select NodeMCU 1.0 (ESP-12E Module) from Board menu.

Select NodeMCU 1.0 (ESP-12E Module)

Select NodeMCU 1.0 (ESP-12E Module)

Go to Tools and make sure the CPU Frequency is set to 80 MHz and Upload Speed to 115200. If not, change them to correct options.

CPU clock should be set to 80 MHz and Upload Speed to 115200

CPU clock should be set to 80 MHz and Upload Speed to 115200

Step 4: COM Port selection
Finally, you need to select the right COM port that your EasyESP board is connected to. Obviously, you need to connect the EasyESP-1 to the computer through a USB cable. If the driver for SiLabs CP2102 USB-UART device is installed properly, it will show up in the Arduino IDE Tools->Port list as a new serial port. In Windows machines it shows up as a new COMx port. The following figure shows how it appears on a MAC computer. You should select the matching serial port for the CP2102 device on EasyESP from the Port list.

Select the right serial port (MAC computer)

Select the right serial port (MAC computer)

Now you are all set to write and upload your first ESP8266 program using the Arduino IDE.

ESP8266 experimenting made easy with EasyESp-1

ESP8266 experimenting made easy with EasyESP-1

Buy EasyESP-1 board

Setting up an ESP8266 web server

Rui Santos has written a short tutorial about creating a standalone web server using an ESP8266 module that can toggle two LEDs through a web interface. He first flashed the ESP-01 module with NodeMCU so that he could program the ESP8266 chip with LUA script. After that it gets pretty easy to modify the ESP8266 firmware for WiFi connection, controlling the GPIOs, etc.

ESP8266 web server

ESP8266 web server

And don’t forget to check out our breadboard friendly adapters for ESP-01 modules that provides clear pin labels printed on the board to make prototyping with the ESP-01 module easier.

ESP-01 breadboard adapter

Quick start-up guide for ESP8266

The ESP8266 Wifi-to-serial transceiver is the latest and most inexpensive way to get your project connected to the Internet. If you wonder how to setup up this thing in your project, this Start-Up PDF guide from rancidbacon.com will be very helpful to you.

Out of many ESP8266 modules available in the market, the ESP-01 version is the most popular one. While the headers are 0.1″ pitch, the pin arrangements are not breadboard friendly and are not labeled on board, which makes it little inconvenient for breadboarding. So you might be interested in our Breadboard Friendly Adapter  (shown below) with clear pin labels printed on the board to make prototyping with the ESP-01 module easier.

Buy ESP8266 Breadboard adapter