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

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

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

https://raw.githubusercontent.com/DFRobot/FireBeet...
You should see this progress window:

After the input is completed, click OK.

Step 2: ​Update the Board List

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

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

Step 3: ​Install ESP8266

Picture of ​Install ESP8266

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

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

Wait for the install process to complete.

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

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

Step 4: ​Compiling a Serial Debugging Program

Picture of ​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.

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 5: ​Hardware Connection

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

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 6: ​Program Download

Picture of ​Program Download

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

Wait for the downloading to complete:

After downloading is completed, switch the Wifi Bee ESP8266 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:

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

271views

7favorites

License:

Bio: I'm from DFRobot.com, we will often make some interesting applications and share with you all. If you have any questions, welcome to comment.
More by Jaychouu:DIY Deer ClockDIY a Formaldehyde DetectorHow to Make a Small Measuring Wheel
Add instructable to: