Various video and tutorials for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By mialee
#65286 Wifi Bee ESP shall also support arduino programming and customization of wifi Bee communication module.
posting.php?mode=post&f=30#
Required hardware:

ESP8266 Wifi Bee (Arduino Compatible)
Xbee USB adapter (FTDI ready)


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:
Image
Enter the following URL in the new pop-up window.
https://raw.githubusercontent.com/DFRob ... index.json

You should see this progress window:
Image

After the input is completed, click OK.


2. 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:
Image
After opening the Development board manager, the board list will automatically be updated, as can be seen below:
Image

3. Install ESP8266
After completing the update, you should find FireBeetle-ESP8266 Mainboard options which you can then edit
Image
Select “FireBeetle-ESP8266” and click “Install” (I have installed). The manager will automatically download the relevant libraries.
Image
Wait for the install process to complete
Image
Image

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

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



4. 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.
Image

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:
Code: Select allvoid 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);
}


5. 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:
Image
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:
Image

6. Program Download
Connect FTDI with computer, select corresponding port number and click “Download”.
Image
Wait for the downloading to complete:
Image

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:
Image
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!
Read the original ESP8266 Tutorial