Introduction: Arduino IDE for Building Compiling Environment of ESP8266

Wifi Bee ESP shall also support arduino programming and customization of wifi Bee communication module.

Required hardware:

ESP8266 Wifi Bee (Arduino Compatible)

Xbee USB adapter (FTDI ready)

Step 1: Add the Board URL to Arduino IDE

Open Arduino IDE (I am using version 1.8.0).

An installation tutorial for Arduino IDE can be found here.

Navigate to File > Preferences and click the circled button as shown below:

Step 2:

Enter the following URL in the new pop-up window.

https://raw.githubusercontent.com/DFRobot/FireBeet...

You should see this progress window:

Step 3:

After the input is completed, click OK.

Step 4: Update the Board List

After adding the mainboard URL of ESP8266 (FireBeetle-ESP8266) to Arduino IDE, we need to update the board list, and use Arduino IDE to download ESP8266 libraries.

Open (Tools)-> (Development board)-> (Development board manager), as shown below:

Step 5:

After opening the Development board manager, the board list will automatically be updated, as can be seen below:

Step 6:

Step 7: Install ESP8266

After completing the update, you should find FireBeetle-ESP8266 Mainboard options which you can then edit

Step 8:

Select “FireBeetle-ESP8266” and click “Install” (I have installed). The manager will automatically download the relevant libraries.

Step 9:

Wait for the install process to complete

Step 10:

After installation, you should see INSTALLED displayed in the Development board manager. You may now close it.

Step 11:

Close Development board manager, and the whole installation is completed.

Step 12: Compiling a Serial Debugging Program

Now that our compilation environment is set up, we can upload a test program.

Open(Tools)->(Development board),select FireBeetle-ESP8266 mainboard, as shown in the following:

Navigate to Tools > Board and Select FireBeetle-ESP8266 from the list.

Step 13:

Please Note: If you haven’t installed FireBeetle-ESP8266 mainboard you will not see the board in the list, so be sure you follow the steps above to install it first!

Entering following code:

void setup() { // put your setup code here, to run once: Serial.begin(115200); }

void loop() { // put your main code here, to run repeatedly: Serial.println("Serial Test"): delay(500);}

Step 14: Hardware Connection

Switch Wifi Bee ESP module to UART end which is the update firmware end, and insert the module on Xbee USB Adapter as shown below:

Step 15:

Please note the plug direction of two boards.

Set the Baud rate of download as 115200. I tried download at high Baud rate, but it always failed. Maybe FTDI chip does not support high Baud rate communication:

Step 16:

Step 17: Program Download

Connect FTDI with computer, select corresponding port number and click “Download”.

Step 18:

Wait for the downloading to complete:

Step 19:

After downloading is completed, switch the Wifi Bee ESP module to BOOT end, and then re-power off and on.

Open the “Serial debugging assistant” of Arduino IDE, and you may will see the serial debugging information which is the printing information in the code as shown below:

Step 20:

Now we can see the print information correspond to the code.

This concludes installation of ESP8266 Arduino IDE compiling environment. You can now use it for your own projects!