Arduino IDE User Guide

Arduino IDE is a simple and easy-to-use open-source development environment that supports a variety of microcontrollers, including the ESP32. Here, you can unleash your creativity and write your own programs.

1. Install Arduino IDE

  1. Click here to visit the Arduino IDE website and download the installation package suitable for your computer version. This example will demonstrate using Windows.

_images/1.install.png
  1. Read and accept the License Agreement.

_images/2.install.png
  1. Select the desired installation options.

_images/3.install.png
  1. Choose the installation path. It is recommended to install the software on a non-system drive.

_images/4.install.png
  1. Click Install and wait for the process to complete. Finally, click Finish.

_images/5.install.png

2. Add ESP8266 Board Manager

  1. Open the Arduino IDE, click FilePreferences in the upper left corner, and copy and paste the following address into the Additional Board Manager URLs input box.

_images/6.esp.png
  1. After entering the URL, click OK.

  • https://www.arduino.me/package_esp32_index.json

  • http://arduino.esp8266.com/stable/package_esp8266com_index.json

_images/7.ESP1.png
_images/8.ESP1.png
  1. After completing this step, close and reopen the Arduino IDE.


3. Download ESP8266 Core Package

  1. Click on the BOARDS MANAGER icon on the right and search for “ESP8266”.

_images/19.ESP1.png
  1. Find the core package named esp8266 by ESP8266 Community, select version 2.4.2, and click the install button to install it.

_images/20.ESP1.png
  1. The prompt for successful installation indicates that the ESP32 core package has been successfully installed.

_images/22.ESP1.png

Note

  • It is recommended to install the core package version 2.4.2 for this package. Using other versions may cause program or functional abnormalities

  • During the download process of the core package, it may fail due to network failures. You can try several more times.


4. Add Libraries

  • The Arduino library simplifies development by encapsulating driver code, allowing users to quickly integrate sensors and modules without writing low-level functions and easily expand hardware functionality.

  • Most of the library files in this kit are included with the Arduino IDE; only the infrared library needs to be downloaded separately. The specific download method is described below.


  1. On the right side of the Arduino IDE interface, click the “Library Manager” icon.

_images/23.LIB1.png
  1. Enter keywords in the search box to find the required library, and then click “Install” to download it.

_images/24.LIB.png
  1. Just wait for the installation to complete.

_images/25.LIB.png

5. Install Serial Port Tool

  • After connecting the ESP8266 to the computer, a USB-to-serial driver needs to be installed to establish communication. For detailed installation steps, please click here. Install Serial Port Tool

  • If you have already successfully installed the driver, you can skip this step.


6. Upload Test Code

  • To verify that the Arduino IDE configuration is correct and that the ESP8266 development board is working properly, please use the following code to test.

//ESP8266 Development Board Test Code

void setup() {
 Serial.begin(115200);
 delay(1000);
}

void loop() {
 Serial.println("ESP8266 development board successfully tested");
 delay(2000);
}

  1. Copy the code above into the Arduino IDE.

  2. As shown in the image below, search for and select the corresponding development board and serial port.

_images/14.code1.png
_images/15.code1.png
  1. Click the Upload button to upload the code to the development board.

_images/16.CODE1.png
  1. After clicking upload, the upload progress will be displayed in the output window.

_images/17.CODE1.png
  1. Once the output display shows that the upload is complete, press the RST button on the ESP8266 development board to start the program.

  1. Open the serial monitor, set the baud rate to 115200, and you will see the serial port output “ESP8266 development board successfully tested” every 2 seconds.

_images/18.code2.png

Congratulations! Your Arduino IDE is ready! Now you can start writing your first program!