Introduction: Arduino IDE for Building Compiling Environment of ESP8266

Picture of 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:

Picture of

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

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

You should see this progress window:

Step 3:

Picture of

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:

Picture of

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

Step 6:

Picture of

Step 7: Install ESP8266

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

Step 8:

Picture of

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

Step 9:

Picture of

Wait for the install process to complete

Step 10:

Picture of

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

Step 11:

Picture of

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:

Picture of

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:

Picture of

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:

Picture of

Step 17: Program Download

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

Step 18:

Picture of

Wait for the downloading to complete:

Step 19:

Picture of

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:

Picture of

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!

Comments

About This Instructable

54views

2favorites

License:

More by JFJAVENUE:LASER ALARM DEVICE MODELSMART BLIND LEADING STICKSIMPLE GESTURE LANGUAGE VOICE DEVICE MODEL
Add instructable to: