TinyWifiDongle: ESP32-S3 & Pico 2 W USB WiFi Adapter

TinyWifiDongle: ESP32-S3 & Pico 2 W USB WiFi Adapter

Most "WiFi on a microcontroller" projects go in this direction: The board joins your network as a client, running its own TCP/IP stack, and the PC on the other end of the cable is just used to program it. TinyWifiDongle, an open-source Arduino library from Phil Schatzmann, goes the other way. It turns an ESP32-S3 or a Raspberry Pi Pico 2 W into a plug-and-play USB WiFi adapter that hands your computer network access with no drivers to install. CNX Software covered the project on November 24, 2026, and it is a useful tool for anyone who wants a customizable WiFi dongle.

TinyWifiDongle: ESP32-S3 and Raspberry Pi Pico 2 W boards acting as USB WiFi adapters

How it works: a transparent USB to WiFi bridge

The library presents the board to the host computer as a USB CDC-NCM (Network Control Model) device, using TinyUSB on the ESP32 side or the Arduino-Pico USB stack on the Raspberry Pi side. It then acts as a transparent Layer-2 bridge, forwarding Ethernet frames unchanged between the WiFi radio and the USB port. The microcontroller does not run its own IP stack during normal operation: there is no NAT, no second network, and no router tricks. Your computer simply appears as another client on your WiFi network and gets its address straight from your router's DHCP server.

Because CDC-NCM is a standard USB class, Linux, macOS, and Windows 11 all recognize the adapter with their built-in drivers. Windows 10 is the odd one out and requires an additional driver. Flash the board, plug it into a USB port, and it shows up as a normal network adapter.

Getting started: four lines of code

The entire setup example is this:

#include "TinyWifiDongle.h"

TinyWifiDongle dongle;

void setup() {
  dongle.begin("ssid", "password");
}

void loop() {}

On ESP32-S2/S3 boards, select the USB-OTG (TinyUSB) option in the Arduino IDE and plug your PC into the board's native USB-OTG port. On the Pico W and Pico 2 W, the library uses the Arduino-Pico core with its default Pico SDK USB stack. If you do not want to hard-code credentials, the TinyWifiDongleSetup class (via the WifiManager example) opens a temporary "TinyWifiDongle-Setup" access point with a browser-based configuration page and WiFi scanner, then stores the credentials in flash. That setup flow has been tested on the Pico 2 W but not yet on ESP32-S3 hardware. The library is header-only, MIT licensed, and supports pluggable logging to any Arduino Print object.

Supported hardware

  • ESP32-S3 (tested) and ESP32-S2, which have native USB-OTG support
  • Raspberry Pi Pico 2 W (RP2350, tested) and Pico W (RP2040)
  • ESP32-P4 (+ESP32-C6) is experimental, with USB networking not yet tested

The original ESP32, ESP32-C3, and ESP32-C6 are not supported, because they lack the required USB device functionality. All supported boards run USB full-speed (12 Mbps), which sets the ceiling for what the adapter can deliver.

Real-world speed and stability

In the developer's tests, the ESP32-S3 sustained 530 to 615 KB/s (roughly 5 Mbps) and the Pico 2 W averaged around 110 to 325 KB/s (about 2 Mbps). That is plenty for web browsing, downloads, and SSH sessions, but do not expect gigabit numbers. The developer is candid about stability: the ESP32-S3 occasionally experiences USB stalls after transferring 100 to 200 MB of data, and the Pico 2 W showed one unexplained reboot during testing. Both boards were tested on Linux, while Windows 11 and macOS have built-in CDC-NCM driver support.

Boards you can buy at ameriDroid

We carry a number of ESP32-S3 boards that are good candidates for dongle duty. Two stand out.

 

XIAO ESP32-S3 Plus - $12.95

Seeed Studio XIAO ESP32-S3 Plus development board

The XIAO ESP32-S3 Plus is the cleanest fit for this project. Its 21 x 17.8 mm board carries an ESP32-S3R8 (dual-core Xtensa LX7 at up to 240 MHz) with 8 MB of PSRAM and 16 MB of flash, WiFi, BLE 5.0, and a USB-C port wired to the chip's native USB, so the CDC-NCM adapter works straight out of the standard port. The onboard lithium battery charging management and 14 uA deep-sleep current also make it a sensible base for a standalone, battery-powered adapter. It is in stock at $12.95.

 

Heltec WiFi Kit 32 (V3) - $19.95

Heltec WiFi Kit 32 V3 ESP32-S3 development board with OLED display

The Heltec WiFi Kit 32 (V3) at $19.95 is another in-stock ESP32-S3 option, with an ESP32-S3FN8, 0.96 inch OLED (handy for showing connection status), Li-Po battery management, and a USB Type-C connector. One caveat: its USB-C port routes through the onboard CP2102 USB-UART bridge for download and serial debug, so you may need to bring out the ESP32-S3's native USB-OTG signals from the pin headers to use the CDC-NCM adapter. Verify that wiring before committing this board to dongle duty.

How it compares to earlier projects

TinyWifiDongle is not the first firmware to do this. The pico-usb-wifi firmware (July 2026) turned the Pico W into a driverless USB WiFi adapter with the same CDC-NCM and Layer-2 bridging approach, reporting an average of 4.75 Mbps. An ESP32-S3 port of that firmware has since appeared, reporting around 5.7 Mbps, but it is built on the ESP-IDF framework. TinyWifiDongle's difference is packaging: One reusable, header-only Arduino library that covers both the ESP32 and Raspberry Pi families, with a browser-based WiFi setup portal instead of a USB serial management console.

Bottom line

For a board that costs between $5 and $20, TinyWifiDongle is a remarkably low-effort way to add or replace WiFi on a PC. It is well suited to headless boxes, flaky or missing WiFi cards, travel setups, and experiments like Wake-on-LAN, custom packet filtering, and logging, all of which the transparent bridge makes easier. The trade-offs are the full-speed USB ceiling, throughput in the 2 to 5 Mbps range, and stability that is still maturing after long transfers. The code is MIT licensed, and the GitHub repository has installation instructions, examples, and documentation.

Source: CNX Software by Debashis Das. Library by Phil Schatzmann, with his own writeup at pschatzmann.ch.

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.