Skip to main content

Install and Configure Arduino IDE

Important: About board compatibility

The core logic of this tutorial applies to all ESP32 boards, but all the operation steps are explained using the example of the Waveshare ESP32-S3-Zero mini development board. If you are using a development board of another model, please modify the corresponding settings according to the actual situation.

The Arduino IDE is an open-source development environment that supports Arduino microcontrollers and is compatible with a variety of third-party development boards, including the ESP32, allowing developers to easily write and upload code to these powerful Wi-Fi and Bluetooth integrated chips to implement IoT projects. It has rich libraries and sample code, widely used in prototype development and education fields, and is the preferred platform for beginners. This series of tutorials will use the Arduino IDE as the development environment.

1. Download and Install Arduino IDE

  1. Go to Arduino official website to download the Arduino IDE installer.

    DownloadArduinoIDE

  2. Run the installer to install the Arduino IDE. It is recommended to use the default settings during installation and choose a path containing only English characters.

    warning

    An installation path containing special characters may cause exceptions.

2. Set up Arduino IDE

  1. After installation is complete, launch the Arduino IDE.

  2. Upon the first launch, the IDE may automatically download and install core library files and drivers. If the operating system prompts for driver installation or network security permissions, it is recommended to allow them. The output window information shown in the figure below indicates the installation process and is normal; no action is required.

  3. The Arduino IDE displays the English interface by default, but supports switching to other languages. Click “File -> Preferences” to open the settings.

    In the settings interface, find the "Language" option, select your preferred language, and then click "OK". The Arduino IDE will automatically restart and switch to the selected language interface.

  4. In addition, you can also adjust the interface scale, font size, theme style, and default save location of sketches(program files) in "Preferences".

3. Install ESP32 Development Board Library

To develop for the ESP32 using the Arduino IDE, you need to add the ESP32 board configuration and install the relevant libraries.

  • Open "File" -> "Preferences", find "Additional Board Manager Address" in the Settings screen, paste the following link and click OK:

    info

    This step can be skipped because the Arduino IDE has already indexed the ESP32 in the Board Manager, but it may not be up-to-date. Manually adding it ensures you get the latest ESP32 library first.

    https://espressif.github.io/arduino-esp32/package_esp32_index.json
  • Open the "Board Manager", search for "ESP32" and install it. After installation, restart the Arduino IDE to use it

4. Install Libraries (As Needed)

In the Arduino ecosystem, a "Library" is a pre-written code package designed to simplify programming for specific tasks, such as driving sensors, controlling displays, network connections, or data processing. Using libraries avoids the need to write code from scratch, allowing developers to focus on the core logic of their projects and improving development efficiency.

Depending on the source and distribution method of the library, there are several common installation methods:

Most libraries can be installed through the Arduino IDE's library manager.

  1. Select "Tools > Manage Library..." in the menu bar, or click the Library Manager icon in the sidebar.

  2. Enter the target library name in the search bar and the search results will be displayed in alphabetical order. You can view the library's description and author information. Once you find the library you need, click the "Install" button, and the system will install the latest version by default.

    Install via library manager

  3. Wait for the installation to complete.

5. Arduino IDE Interface Introduction

Arduino IDE Interface Introduction