Adding ESP32 Support to Arduino IDE

Here's how to program the ESP32 using the Arduino IDE.

Step 1: Connect your ESP32 to your computer

You'll need a USB micro B cable to connect your ESP32 to your computer. Once connected, the power LED will light up on the board. If your computer doesn't automatically recognize the ESP32, you may need to install the CP2102 driver from this link.

Step 2: Open Arduino IDE

Ensure you are using Arduino IDE version 1.8.5 or later. Here's how to set up ESP32 in the IDE:

  1. Go to File > Preferences in the Arduino IDE.

  2. In the "Additional Boards Manager URLs" field, paste the following URL: https://dl.espressif.com/dl/package_esp32_index.json Then, click OK.

    Preferences
  3. Next, go to Tools > Board > Board Manager.

  4. In the search bar, type "esp32" and select the "esp32 by Espressif Systems" option. Click Install.

    Board Manager

Now that your IDE is ready, let's upload a simple blink program.

Just like NodeMCU, the ESP32 has multiple GPIO pins. Refer to the ESP32 pinout below for pin naming conventions:

ESP32 Pinout

For this example, we'll use GPIO23 to blink an LED. Connect the LED to GPIO23 and upload the following code:

Last updated

Was this helpful?