A laptop, wireless router, and microcontroller boards are connected in a glowing electronics workshop setup.
If you have ever stared at a headless test rig, an offline mini-PC, or a desktop with a suddenly deceased wireless card while a drawer full of $5 development boards mocks you from across the desk, open-source developer Phil Schatzmann has built your weekend diversion. Covered by CNX Software on November 24, 2026, following Schatzmann’s earlier November 5 release notes, TinyWifiDongle is an MIT-licensed, header-only C++ Arduino library that persuades compatible ESP32 and Raspberry Pi Pico boards to masquerade as plug-and-play USB Wi-Fi adapters.

Before anyone tosses a retail USB 3.0 AX adapter into the e-waste bin, though, a reality check is in order. TinyWifiDongle is a clever Layer-2 engineering hack capped by 12 Mbps Full-Speed USB silicon and a handful of documented stability quirks—not a replacement for your laptop’s built-in wireless card. For makers, embedded developers, and Windows 11 tinkerers who want a programmable, driverless network bridge for basic connectivity or packet-level experimentation, however, it is remarkably neat.

A laptop, wireless router, and microcontroller boards are connected in a glowing electronics workshop setup. Why a Transparent Layer-2 Bridge Beats the Usual MCU Trick​

Most microcontroller Wi-Fi tutorials treat the chip as an independent network citizen: the MCU fires up its own TCP/IP stack, grabs an IP address, and serves a tiny webpage or pings an MQTT broker. As Schatzmann noted on his blog, that approach turns the board into a dead end when what you actually need is to get a host PC online.

TinyWifiDongle flips the architecture inside out. Instead of running Network Address Translation (NAT) or placing your PC behind an awkward double-routed subnet, the library turns the microcontroller into a transparent Layer-2 Ethernet bridge:

  • USB CDC-NCM Presentation: To the host computer, the microcontroller enumerates as a standard USB Communications Device Class Network Control Model (CDC-NCM) adapter—using TinyUSB on supported ESP32 chips and the arduino-pico USB stack on Raspberry Pi boards.
  • Direct Router DHCP: Ethernet frames are forwarded unchanged between the USB interface and the Wi-Fi radio. During normal bridged operation, the microcontroller holds no IP address of its own, and the connected PC requests its IP address directly from your Wi-Fi router’s DHCP server.
  • Hackable LAN Presence: Because the host PC appears on the network just like any native Wi-Fi client, Schatzmann points out that the setup unlocks low-level experiments such as Wake-on-LAN, custom traffic logging, or frame filtering right inside the firmware.

Windows 11 Driverless Support—and the Windows 10 Catch​

TinyWifiDongle’s headline convenience for PC users is native host compatibility across Linux, macOS, and Windows 11 without third-party drivers—while explicitly warning that Windows 10 requires an additional driver.

Microsoft’s own driver documentation helps explain both the plug-and-play appeal on Windows 11 and why Windows 10 gets an asterisk. Under Windows, devices adhering to USB class 02h and subclass 0Dh (NCM) are handled by Microsoft’s inbox UsbNcm.sys class driver (UsbNcm.inf, whose source Microsoft publishes under NCM-Driver-for-Windows). Microsoft actively recommends USB NCM over the aging Remote NDIS (Usb8023.sys) protocol because NCM is an open USB-IF standard with cleaner throughput behavior.

On paper, Microsoft added inbox UsbNcm.sys host support back in the Windows 10 May 2019 Update (build 18362). In practice, however, USB device developers have documented behavioral differences between the two operating systems on Microsoft Q&A—specifically noting that Windows 11’s UsbNcm.sys properly sends Zero-Length Packets (ZLPs) required by the NCM specification on max-packet-size transfers, whereas Windows 10’s older 10.0.19041.1 driver omitted them and broke compatibility with compact NCM implementations. If you are deploying TinyWifiDongle on Windows, treat Windows 11 as the supported out-of-the-box target and expect extra driver friction on Windows 10.

One more testing caveat applies: while CDC-NCM is standardized across Windows 11 and macOS, Schatzmann’s published throughput and endurance benchmarks in the project’s October 30, 2026 wiki notes were run exclusively on Linux using NetworkManager. Windows 11 users should treat the library as standards-compliant rather than soak-tested at scale on Microsoft’s stack.

Supported Hardware: What Works, What Compiles, and What Fails​

Not every Wi-Fi microcontroller can pull off this trick. Having a wireless radio is only half the battle; the chip also needs a native USB device controller capable of exposing a network class. That immediately disqualifies popular boards like the original ESP32, the ESP32-C3, and the ESP32-C6, as well as Wi-Fi-less Raspberry Pi Pico boards and Arduino mbed cores.

Here is how the TinyWifiDongle compatibility matrix breaks down according to the GitHub repository and status documentation:

Board / SoCArduino Core & VersionUSB Stack / ModeCurrent Status
ESP32-S3arduino-esp32 3.x (tested 3.3.12)TinyUSB (USB-OTG)Tested & Working (Linux/NetworkManager)
ESP32-S2arduino-esp32 3.xTinyUSB (USB-OTG)Supported by same code; not directly tested
Raspberry Pi Pico 2 W (RP2350)arduino-pico (tested 6.3.1)Default Pico SDKTested & Working (Linux/NetworkManager)
Raspberry Pi Pico W (RP2040)arduino-picoDefault Pico SDKSame code & CYW43 chip; untested
ESP32-P4 (+ ESP32-C6)arduino-esp32 3.xHigh-Speed USB-OTGExperimental: Wi-Fi compiles/tested; USB networking untested
Original ESP32, C3, C6N/ALacks required USB device controllerNot Supported

The ESP32-P4 entry deserves a closer look because it represents the project’s potential escape hatch from low-speed limits. Unlike the S2, S3, and RP2040/RP2350—all of which top out at 12 Mbps Full-Speed USB—the ESP32-P4 includes a 480 Mbps High-Speed USB controller, pairing with an ESP32-C6 companion chip over SDIO (esp_wifi_remote) for Wi-Fi. Schatzmann verified that the code compiles and that the P4’s Wi-Fi side receives raw frames on a Waveshare ESP32-P4-WIFI6 board (chip revision v3.2). However, because that board wires its lone USB-C port strictly to a USB-UART bridge, the P4’s USB-OTG lines remain physically untested for USB enumeration, bidirectional bridging, and SDIO throughput.

Setup and Usage: Four Lines of Code or a Browser Portal​

Getting a hard-coded dongle running in the Arduino IDE takes just four lines of code:

Code:
#include "TinyWifiDongle.h"

TinyWifiDongle dongle;

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

void loop() {}

There are two critical configuration rules before hitting upload:

  1. Include from the sketch only: The README stresses that #include "TinyWifiDongle.h" must appear only in the main sketch file, because the header defines the underlying USB driver callbacks for both platforms.
  2. Pick the right USB port and IDE mode: On ESP32-S2/S3 boards, set USB Mode to USB-OTG (TinyUSB) and plug your PC into the native USB-OTG port rather than a separate UART-bridge port. On Pico W and Pico 2 W boards, leave USB Stack at the default Pico SDK setting and use the board’s single USB port. Diagnostic logs can be directed to any Arduino Print target via TWD_LOGGER (such as Serial on Pico or Serial0 on ESP32-P4).

For scenarios where hard-coding credentials into flash is impractical, the library includes an optional TinyWifiDongleSetup.h header. Keeping it separate ensures minimal sketches do not pull in extra web and DNS server code. When no saved network exists in flash (stored via the Arduino core’s EEPROM emulation), the board scans for Wi-Fi networks and spawns a temporary access point named TinyWifiDongle-Setup (open by default) hosting a configuration page at 192.168.4.1.

Two practical caveats apply to the browser setup flow:

  • Invisible during setup: Because the normal bridge has no IP address, the setup portal runs before the USB network interface initializes. While waiting for credentials, the board is invisible to your PC as both a network adapter and a USB serial port—requiring manual bootloader entry (BOOTSEL on Pico, BOOT+RESET on ESP32) if you need to re-flash it mid-setup. Mobile browsers on Android may also bypass an offline setup AP over cellular data unless mobile data is temporarily switched off.
  • Recovery and hardware validation: Pressing BOOT or BOOTSEL within three seconds of startup wipes saved credentials, and a 60-second join timeout automatically forgets bad passwords so a typo cannot soft-brick the adapter. That said, while the full captive-portal workflow has been tested end-to-end on the Pico 2 W, the project status page notes it has only been compile-checked—not yet run—on ESP32-S3 hardware.

Real-World Throughput and Stability Tradeoffs​

Full-Speed USB (12 Mbps) has a practical bulk data ceiling around 1.1 MB/s before protocol overhead even enters the chat, and Schatzmann’s benchmarks using repeated 3 MB Cloudflare downloads reflect that constraint clearly:

  • ESP32-S3: 530–615 KB/s (~5 Mbps), steady.
  • Raspberry Pi Pico 2 W: 110–325 KB/s, averaging around 250 KB/s (~2 Mbps). In a continuous 40-download run (120 MB total) with host MTU set to 1400, the Pico 2 W averaged 246 KB/s with roughly 5 ms router ping times and sub-0.2-second HTTPS requests, though about 1.5% of host-bound frames were dropped when its buffer pool filled.
  • Host PC baseline Wi-Fi: 1.5–3.8 MB/s on a single stream and ~6.8 MB/s across four parallel streams on the same network.

Schatzmann notes that unmeasured factors—such as single-frame USB transfer pacing, small NTB buffers in the Pico core, and the Pico’s SPI link to its CYW43 wireless chip—likely explain why the Pico 2 W achieves roughly half the ESP32-S3’s speed.

More important for anyone considering continuous use are the documented stability glitches:

  • ESP32-S3 USB Stalls: A known race condition in the Arduino ESP32 core’s TinyUSB (0.21.0) between its USB task and USB interrupt when scheduled on separate CPU cores can cause bulk IN transfers to lose their "TX FIFO empty" interrupt. TinyWifiDongle enables a pinUsbTask mitigation by default, cutting stalls from every few hundred frames down to roughly once per 100–200 MB of data at 500–600 KB/s. A default one-second stall watchdog (stallTimeoutMs) automatically re-enumerates USB to recover within one to two seconds, though doing so drops active connections and forces a DHCP renewal.
  • Pico 2 W Reboots and Buffer Drops: In one long soak test, a Pico 2 W suffered an unexplained reboot roughly 10 minutes (147 MB) into continuous downloads, requiring manual interface recovery on the Linux host. While the reboot did not recur in two subsequent 229 MB and 120 MB runs with steady heap usage, the Pico port currently lacks a watchdog, and heavy loads can trigger frame drops if framesToHost or framesFromHost buffer counts are left too low.

How TinyWifiDongle Compares to pico-usb-wifi​

As CNX Software highlights, TinyWifiDongle is not the first project to turn a microcontroller into a CDC-NCM bridge. In mid-2026, the open-source pico-usb-wifi firmware gained attention on Adafruit’s blog and Hacker News for doing the same on a Raspberry Pi Pico W using the C Pico SDK and an out-of-band CDC-ACM serial console, averaging 4.75 Mbps. An ESP-IDF port of pico-usb-wifi for the ESP32-S3 also reports roughly 5.7 Mbps.

Because those figures come from different frameworks and test environments, they should not be read as controlled head-to-head benchmarks against TinyWifiDongle. Where TinyWifiDongle carves out its own lane is developer ergonomics: it packages the bridge into a cross-platform Arduino library spanning both ESP32 and Pico families, and swaps serial-console configuration for an optional browser-based captive portal.

For a $3 to $10 retail USB Wi-Fi dongle replacement, an off-the-shelf adapter still wins on speed, stability, and Windows 10 compatibility. But if you want an emergency fallback adapter built from spare parts in your lab—or a hackable USB-to-Wi-Fi bridge you can tweak in four lines of Arduino code—TinyWifiDongle turns familiar microcontroller boards into surprisingly capable network hardware.

 

References

  1. TinyWifiDongle Arduino library turns ESP32-S3 and Raspberry Pi Pico 2 W boards into USB WiFi adapters - CNX Software CNX Software 2026-11-24T08:11:48+00:00
  2. Setup · pschatzmann/TinyWifiDongle Wiki · GitHub github.com
  3. github.com github.com