Prerequisites
Required Dependencies
| Dependency | Version |
|---|---|
| arduino-esp32 | >= v2.0.14 |
Installation Methods
- Arduino IDE Library Manager
- Manual Installation
Install via Library Manager (Recommended)
Open Library Manager
In Arduino IDE, navigate to Sketch → Include Library → Manage LibrariesOr press
Ctrl+Shift+I (Windows/Linux) or Cmd+Shift+I (macOS)Search for ESP32_USB_STREAM
In the Library Manager search box, type
ESP32_USB_STREAMMake sure you have the ESP32 board package installed first. Go to Tools → Board → Boards Manager and install esp32 by Espressif Systems if you haven’t already.
Install the Library
Click the Install button next to the ESP32_USB_STREAM library entryWait for the installation to complete. The status will change to “INSTALLED”
Arduino IDE Version Compatibility
- Arduino IDE v2.x.x: Follow the official guide
- Arduino IDE v1.x.x: Follow the official guide
Verify Installation
After installation, verify that everything is working correctly:Select Your Board
Go to Tools → Board and select your ESP32 board:
- ESP32S2 Dev Module
- ESP32S3 Dev Module
Verify Compilation
Click the Verify button (checkmark icon) or press
Ctrl+RThe sketch should compile without errors. You should see:If you encounter compilation errors, ensure you have the correct arduino-esp32 version (>= v2.0.14) installed.
Updating the Library
Via Library Manager
- Open Sketch → Include Library → Manage Libraries
- Search for
ESP32_USB_STREAM - If an update is available, click the Update button
Manual Update
- Delete the existing
ESP32_USB_Streamfolder from your Arduino libraries directory - Follow the manual installation steps above with the latest version
Troubleshooting
Library not found in Library Manager
Library not found in Library Manager
Make sure you have the ESP32 board package installed. The library may only appear when ESP32 boards are available.Update your Library Manager index: File → Preferences → Additional Boards Manager URLs should include:
Compilation errors about missing dependencies
Compilation errors about missing dependencies
Ensure your arduino-esp32 version is >= v2.0.14:
- Go to Tools → Board → Boards Manager
- Search for
esp32 - Check the installed version
- Update if necessary
Examples not showing up
Examples not showing up
Restart Arduino IDE completely. If the issue persists, try reinstalling the library.
Next Steps
Quick Start Guide
Now that you have the library installed, let’s create your first USB streaming application