Step 3: Connect Your ESP32 to Your Computer
Now that you have the Arduino IDE set up with ESP32 support, it's time to connect your ESP32 board.
Physical Connection
- Use the USB programming cable included in your kit
- Connect the USB end to your computer
- Connect the micro-USB end to your ESP32 board
Install USB-to-Serial Driver (if necessary)
Some computers may not recognize the ESP32 immediately. If this happens, you may need to install a driver.
Check if You Need a Driver
- Connect your ESP32 to your computer
- Open the Arduino IDE
- Go to Tools > Port
- If you see a COM port (Windows) or /dev/tty.* port (macOS/Linux) that wasn't there before, you don't need a driver
- If no new port appears, you need to install a driver
Install CP210x Driver (for most ESP32 boards)
Most ESP32 boards use the CP210x USB-to-serial chip. Download the driver from:
https://drive.google.com/drive/folders/11AcB2xkQ5Xnx9VCZ0H-NXeFUSXAc_zY7?usp=drive_link
Windows: 1. Download the Windows driver 2. Run the installer 3. Restart your computer if prompted
macOS: 1. Download the macOS driver 2. Open the .dmg file 3. Run the installer package 4. You may need to allow the driver in System Preferences > Security & Privacy
Linux: Most Linux distributions include the CP210x driver by default. If not, install it via your package manager:
Select the Correct COM Port
- Open the Arduino IDE
- Go to Tools > Port
- Select the port that corresponds to your ESP32
Finding the Correct Port
If you're not sure which port is your ESP32:
- Note all available COM ports
- Unplug your ESP32
- Check which port disappears from the list
- Plug the ESP32 back in
- The port that reappears is your ESP32
Select the ESP32 Board
- Go to Tools > Board > ESP32 Arduino
- Select "ESP32 Dev Module"
Note: If you encounter errors with "ESP32 Dev Module", try selecting "DOIT ESP32 DEVKIT V1" instead.
Verify Connection
The ESP32 should now: - Have a red power LED lit - Be recognized by your computer - Appear in the Arduino IDE port list
Next Step
Now you're ready to Upload Your First Program.