Adding ESP32 Support to Arduino IDE
Last updated
Last updated
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.
Ensure you are using Arduino IDE version 1.8.5 or later. Here's how to set up ESP32 in the IDE:
Go to File > Preferences in the Arduino IDE.
In the "Additional Boards Manager URLs" field, paste the following URL:
https://dl.espressif.com/dl/package_esp32_index.json
Then, click OK.
Next, go to Tools > Board > Board Manager.
In the search bar, type "esp32" and select the "esp32 by Espressif Systems" option. Click Install.
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:
For this example, we'll use GPIO23 to blink an LED. Connect the LED to GPIO23 and upload the following code: