⚙️ Installing ESP32 Board in Arduino IDE
🎯 Lesson Objective
In this lesson, students will understand:
• Why the ESP32 board package needs to be installed
• How Arduino IDE supports multiple microcontroller boards
• How to install the ESP32 board package inside Arduino IDE
• How to verify that the ESP32 board has been installed successfully
This lesson prepares the development environment so the Arduino IDE can recognize and program the ESP32 microcontroller.
1️⃣ Why We Need to Install the ESP32 Board Package
By default, the Arduino IDE only supports official Arduino boards such as:
• Arduino Uno
• Arduino Nano
• Arduino Mega
However, the ESP32 is not an official Arduino board, so the Arduino IDE needs additional files to support it.
These files are called a Board Support Package (BSP).
The board package includes:
🧠 Configuration files for the ESP32
⚙️ Compiler settings
📡 Communication protocols
📚 Libraries required for ESP32 programming
Installing this package allows the Arduino IDE to understand how to compile and upload programs to the ESP32 board.
2️⃣ Adding the ESP32 Board URL
Before installing the ESP32 board package, we must first add the ESP32 board manager URL in the Arduino IDE.
Follow these steps:
1️⃣ Open the Arduino IDE.
2️⃣ Go to the File menu.
3️⃣ Select Preferences.
A settings window will appear.
4️⃣ Find the field called Additional Boards Manager URLs.
5️⃣ Add the following URL into this field:
https://dl.espressif.com/dl/package_esp32_index.json
6️⃣ Click OK to save the settings.
This URL tells the Arduino IDE where to download the ESP32 board package.
3️⃣ Installing the ESP32 Board Package
Once the board manager URL has been added, the next step is to install the ESP32 package.
Follow these steps:
1️⃣ Open the Tools menu in the Arduino IDE.
2️⃣ Click on Board.
3️⃣ Select Boards Manager.
The Boards Manager window will open.
4️⃣ In the search bar, type:
ESP32
5️⃣ You will see the package called:
ESP32 by Espressif Systems
6️⃣ Click the Install button.
The Arduino IDE will begin downloading and installing the required files.
This process may take a few minutes depending on your internet speed.
4️⃣ Selecting the ESP32 Board
After installing the ESP32 board package, the next step is to select the correct board type.
Follow these steps:
1️⃣ Go to the Tools menu.
2️⃣ Click on Board.
3️⃣ Scroll through the list of available boards.
4️⃣ Select the board named:
ESP32 Dev Module
This board configuration works for most ESP32 development boards.
Selecting the correct board ensures that the Arduino IDE uses the proper settings when compiling and uploading code.
5️⃣ Connecting the ESP32 to the Computer
Now we need to connect the ESP32 board to the computer.
Steps:
1️⃣ Use a USB cable to connect the ESP32 board to your computer.
2️⃣ Once connected, the computer will detect the board and assign it a COM port.
3️⃣ Open the Tools menu in Arduino IDE.
4️⃣ Select Port.
5️⃣ Choose the COM port corresponding to your ESP32 board.
Selecting the correct port allows the Arduino IDE to communicate with the ESP32.
6️⃣ Verifying the Installation
To verify that everything is working correctly, check the following:
✔ The ESP32 board appears in the Board list
✔ The correct COM port is visible
✔ The ESP32 is connected through USB
If all these steps are completed successfully, the Arduino IDE is now ready to upload programs to the ESP32 board.
🚀 What Happens Next
Now that the Arduino IDE is fully configured to support ESP32, the next step is to upload the first program to the ESP32 board.