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.

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.

Getting Started
Last Updated:

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.

Time15-20 minutes
LevelBeginner friendly
Works withAll ESP32 variants
ESP32 boards manager URL - only needed for manual setup, step 2
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:

brew install --cask arduino-ide

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:

  1. Click the Boards Manager icon in the left sidebar.

  2. Search for esp32.

  3. Install "esp32 by Espressif Systems".

  4. 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.

blink.ino
// 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:

  1. Verify

    click the checkmark button (or Sketch → Verify/Compile) and wait for "Compilation successful".

  2. Upload

    click the arrow button and wait for "Done uploading".

  3. 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.

Frequently asked questions

7 questions

Can I use Arduino IDE for ESP32?

Yes. Arduino IDE fully supports ESP32 boards once you install the esp32 board package through Boards Manager. It works with every ESP32 variant, including WROOM-32, DevKit V1, ESP32-C3, and ESP32-S3.

What is the ESP32 board manager URL for Arduino IDE?

The official ESP32 board manager URL is https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json. Add it under File, Preferences, Additional Board Manager URLs, but only if ESP32 does not already appear in Boards Manager.

Which board should I select for ESP32 DevKit V1 in Arduino IDE?

Select ESP32 Dev Module from Tools, Board, esp32. It is the most compatible entry for most classic ESP32 development boards, including WROOM-32 variants.

Why is my ESP32 not showing up in Arduino IDE?

Four common causes: a charge-only USB cable instead of a data cable, a missing CP210x or CH340 driver, the wrong port selected under Tools, Port, or a flaky USB port on the computer.

Is ESP32 compatible with Arduino code?

Yes. The ESP32 Arduino core provides Arduino-compatible APIs, so functions like digitalWrite, analogRead, and Serial.print work as expected, and most Arduino libraries run with little or no changes.

How do I install ESP32 board in Arduino IDE 2.0?

Click the Boards Manager icon in the left sidebar, search for esp32, then install esp32 by Espressif Systems. It is the same package used in Arduino IDE 1.x, just with a redesigned interface.

How do I program ESP32 with Arduino IDE?

Install the esp32 board package through Boards Manager, connect the board over USB, select the board under Tools, Board and its port under Tools, Port, then click Upload. Arduino IDE compiles the sketch and flashes it automatically.

Where to next