1. Arduino Environment Setup
Arduino is an open-source hardware and software platform used to build and control various physical devices and interactive projects. It includes an open-source software development environment. The Arduino programming language is an easy-to-understand language based on C/C++. Because Arduino is simple, flexible, rich in resources, and widely applicable, it has become a popular and widely used development platform. Both beginners and professional developers can use it for rapid development and innovation.
1.1 Install Arduino IDE
- Open the Arduino IDE official website at , then select the version that matches your operating system and system architecture. Here, the latest Windows 10 64-bit environment is selected.
- On the new page that appears, you can choose either direct download or donate and download.
- Run the installer and keep clicking Next. It is recommended not to install it on the C drive when setting the installation path.
1.2 Install the ESP32 Package
There are two ways to install ESP32 chip support in Arduino: online installation and offline installation. The main difference is whether an internet connection is required during installation.
- Online installation: This method requires your computer to be connected to the internet. Add the ESP32 board manager URL in Arduino Preferences, then search for ESP32 in Board Manager and install it. This is the easiest method. It automatically downloads and installs the required files and tools, and can update to the latest support package version automatically. However, it requires network bandwidth and may be slow in some regions.
- Offline installation: This method downloads the ESP32 chip support package from GitHub or another source first, then extracts it locally and places it under the
hardwaresubdirectory in the Arduino installation directory. The advantage is that it can be installed without a network connection, or prepared in advance for slower network environments. The disadvantage is that downloading and placing the files must be done manually, and the process must be repeated when updating the support package version.
1.2.1 Online Installation
- Open Arduino IDE and select
File->Preferences.
- Add the ESP32 board manager URL and update Additional boards manager URLs.
Paste the following URL into the URLs field.
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json2
Click OK to save. 3. Open Boards Manager, search for ESP32, and find esp32 by Espressif Systems. Click INSTALL to install it.
Wait until the download completes successfully.
📌 If downloads keep failing or are too slow, use the offline installation method.
- After installation, close all Arduino windows and make sure Arduino has exited.
- Reopen Arduino and open Boards Manager. You should see that ESP32 has been installed.
1.2.2 Offline Installation
Download the ESP32 offline installation tool.
Link: https://pan.baidu.com/s/1zocFRBlMveMA00QhmzkKKA?pwd=1234
Extraction code: 1234
Select the installation path. Note: place it in the Arduino package directory for the corresponding user. The following is the installation path for Arduino IDE V2.2.1:
C:\Users\{username}\AppData\Local\Arduino15\packages\1Note that AppData is a hidden folder. To find it, enable
Hidden itemsin the folderViewoptions.
Example path when the username is win:
C:\Users\win\AppData\Local\Arduino15\packages2
3
- After installation, close all Arduino windows and make sure Arduino has exited.
- Reopen Arduino and open
Boards Manager. You should see that esp32-arduino has been installed.
1.3 Change the Display Language to Chinese
- Open Arduino IDE Preferences:
File->Preferences.
- In Preferences, select Chinese (Simplified) in the language option.
- If the IDE does not update, close it and reopen it.
1.4 Run an Example Test
Select the board as ESP32S3 Dev Module.
Select an example. Here, choose the example that obtains the chip ID.
Select the port number. Here, CH340K COM36 is selected.
Port numbers may be different on each computer. You can plug and unplug the development board to determine which port belongs to the ESP32S3 board.
If the port cannot be recognized, install the CH340 driver.
File Download
Download it from the Development Tools section in the Baidu Netdisk link in the Download Center.
Click the download button. The sketch will be compiled and downloaded automatically.