Getting Started with an ESP32 Dev Kit
This is a quick beginner guide for setting up an ESP32 development board, installing the required software, and uploading your first program. This follows the familiar Arduino workflow used by many makers and hobbyists.
Most ESP32 dev boards use a USB-to-serial chip such as the CP2102 or CH340. Your computer will need the proper driver installed before it can communicate with the board over USB.
- Silicon Labs CP210x driver for CP2102-based boards
- WCH CH340 driver for CH340-based boards
After downloading the driver, run the installer and restart your computer if needed. Once complete, plug the ESP32 into your computer with a USB cable and check whether the board appears in the device manager or serial port list.
Arduino IDE is the easiest way to write sketches and program an ESP32. Download the latest version from the official Arduino website.
Install Arduino IDE and launch it once the install is complete. If prompted, accept the default options unless you know you need a custom setup.
To program an ESP32 in Arduino IDE, you must add the ESP32 board package from Espressif.
Open Arduino IDE and go to File > Preferences.
In the Additional Boards Manager URLs field, paste:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Then click OK.
Next, open Tools > Board > Boards Manager. Search for “ESP32,” then install the package labeled “esp32 by Espressif Systems.”
This may take a few minutes, depending on your internet speed.
Once the package is installed, select the correct board from the menu:
- Tools > Board > ESP32 Arduino > ESP32 Dev Module
Then choose the matching COM or serial port:
- Tools > Port > select the port associated with your ESP32
Open the built-in Blink example:
- File > Examples > 01.Basics > Blink
The sketch should compile and upload to the board. After the upload completes, the built-in LED on the ESP32 will begin blinking on and off.
If your sketch does not upload, try the following:
- Press and hold the BOOT button while uploading, then release it when the upload begins.
- Try a different USB cable or USB port.
- Make sure the correct serial port is selected.
- Verify that the installer finished successfully and that the board package is installed.
On many boards, the BOOT button is the easiest fix when the upload fails or the board appears stuck in reset mode.
If the Blink sketch uploads and the LED starts flashing, your ESP32 setup is working correctly.
From here, you can begin building more advanced projects with sensors, displays, Wi-Fi, and internet-connected devices.