Setting Up Arduino IDE for ESP32
Download and Install the Arduino IDE
1.1 Download the Installer
Go to the official Arduino website.
Choose your operating system (Windows, macOS, or Linux) and download the most recent stable version of the Arduino IDE.
1.2 Installation on Different Operating Systems
Windows
- Double-click the downloaded .exe file.
- Allow changes if prompted (User Account Control window).
- Follow the on-screen prompts and click “Install.”
- Once finished, launch the Arduino IDE from the Start menu.
macOS
- Open the downloaded .dmg file.
- Drag the Arduino IDE into the “Applications” folder.
- If prompted, allow installation via System Preferences → Security & Privacy.
Linux
- Download the .tar.xz file.
- Extract it and navigate to the folder in the terminal.
- Run: sudo ./install.sh
- If not added to the application menu, launch using: ./arduino
2. Configure the Arduino IDE for ESP32
Since ESP32 is not included by default, additional setup is required.
2.1 Open Arduino Preferences
- Open the Arduino IDE.
- Click File (Windows/Linux) or Arduino (macOS) → Preferences.
2.2 Add the ESP32 Board Manager URL
- Locate the field labeled “Additional Board Manager URLs.”
- Add this URL:
https://dl.espressif.com/dl/package_esp32_index.json
- Click OK to save.
2.3 Install the ESP32 Board Definition
- Go to Tools → Board → Boards Manager.
- Search for “ESP32.”
- Find “ESP32 by Espressif Systems” and click Install.
- Once installed, ESP32 boards will appear under Tools → Board → ESP32 Arduino.