
ESP32 Arduino IDE Setup: Install, Connect & Program ESP32 Boards
Complete guide to install ESP32 in Arduino IDE. Learn how to add ESP32 board manager, connect your ESP32 DevKit/WROOM to Arduino IDE, and upload your first program. Works with ESP32-C3, S3, WROOM-32, and all variants.
Arduino IDE is the quickest way to start programming an ESP32: one install, one board package, and you are uploading code. This guide covers the full setup - installing the IDE, adding ESP32 board support, and flashing a first program - and it applies to every ESP32 variant, from the classic WROOM-32 DevKit to the newer C3 and S3 boards.
https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json
What you need
Hardware
Any ESP32 development board - DevKit V1, DevKitC, WROOM-32, NodeMCU-32S, a C3 Super Mini or C3 Zero, an S3 Super Mini, ESP32-CAM... the steps are identical. Not sure what you have? Find your board among 270+ pages →
A USB data cable - many bundled micro-USB cables are charge-only and will waste your afternoon.
Software
Windows, macOS or Linux - Arduino IDE runs on all three, and the ESP32 steps are the same.
USB drivers - usually installed automatically. If your board never shows up as a port, you may need the CP210x or CH340 driver.
1Install Arduino IDE
Download Arduino IDE from the official Arduino website. Version 2.x is what you want - it is the current IDE and what every screenshot in this guide shows.

Windows
Download the .exe installer, run it, and launch Arduino IDE from the Start menu.
macOS
With Homebrew:
Or download the .dmg and drag it to Applications.
Linux
Download the AppImage from the website, or install via your package manager.

2Add ESP32 board support
Out of the box, Arduino IDE only knows official Arduino boards. One package from Espressif teaches it every ESP32 variant:
Click the Boards Manager icon in the left sidebar.
Search for
esp32.Install "esp32 by Espressif Systems".
Wait a few minutes - the package downloads the full toolchain.

To verify: open Tools → Board - you should now see an esp32 section with dozens of board entries.

3Connect and upload
Plug your board into the computer with a USB data cable, then point Arduino IDE at it: pick the board under Tools → Board and the port under Tools → Port.
Windows
Tools → Port lists COM ports - usually somewhere between COM3 and COM10.
macOS
Look for a /dev/cu.usbserial-... or /dev/cu.SLAB_USBtoUART entry, depending on your board's USB chip.
Linux
Shows up as /dev/ttyUSB0 or /dev/ttyACM0. Nothing listed? Add your user to the dialout group and log back in.
This blink sketch works on any classic ESP32 board - GPIO2 is the built-in LED on most devkits. If your board uses a different pin, its board page has the right number.
// ESP32 blink - GPIO2 is the built-in LED on most classic devkits
int ledPin = 2;
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
}Click the checkmark to compile, then the arrow to upload:
- Verify
click the checkmark button (or Sketch → Verify/Compile) and wait for "Compilation successful".
- Upload
click the arrow button and wait for "Done uploading".
- Watch
the onboard LED should blink on and off once a second.

Troubleshooting
Managing board versions
Sometimes you need a different esp32 package version - to pick up a new chip, or to match an older project that expects specific APIs. Open Tools → Board → Boards Manager, search for esp32, then use the dropdown next to the installed version to pick another one and click Install.

