Skip to content
ESPARGOS ESP-SDR

ESPARGOS ESP-SDR

github.com • November 16, 2026

Try it yourself: Project overview · Browser SDR viewer · Browser firmware installer

ESP-SDR turns the Wi-Fi/Bluetooth radio of an ordinary ESP32 board into a receive-only software-defined radio. The firmware captures raw I/Q samples from the chip's own receiver and sends them to your computer over USB or UART. No extra SDR hardware is needed.

The ESP32's receiver normally feeds its samples straight into the fixed-function Wi-Fi modem. With the help of LLMs, we found an undocumented debug path that lets the CPU read those samples instead. How it works explains the mechanism register by register. Parts of the firmware are AI-generated: we understand the capture mechanism well on the ESP32-C61 used in our ESPARGOS One array, but porting it to the whole ESP32 family by hand would have been too much work.

Flash the firmware from the browser installer .

Open the browser viewer and connect.

For continuous streaming into Gqrx, GNU Radio and friends, use an ESP32-S31 with SoapyESPSDR , or an ESP32-S3 with esp-sdr-bridge .

✅ supported · 🚧 not yet supported · ❌ not possible

¹ Continuous capture means the chip records the signal without gaps while it computes spectra, over native USB only. It can't FFT all of it: only a small of the signal, often a few percent or less, goes into a spectrum. The viewer shows that as FFT coverage. This mode exists at 256 FFT bins on the C6 and C61, and at all sizes on the S3 and S31. All other spectra, including every spectrum over UART, come from separate snapshots with gaps in between; the viewer then says "Reception has gaps between snapshots".

All chips accept tuning from 100 to 6000 MHz, but the PLL only locks in a limited range around 2.4 GHz (and 5 GHz on the C5). ESP32, C2, C3, S2 and S3 reach down to 1.85 GHz using a 5/6 LO divider, the C6 to 1.95 GHz; see rx-controls.md .

Snapshots are bursts of up to 16,380 samples (8,190 on the C2 and 12,284 on the S2), so there are gaps between them. Gain is not calibrated in dB.

What you can do with it

Burst I/Q captures (all chips): signed 8-bit or packed 10-bit I/Q at the rates above. This is what the browser viewer uses.

On-chip spectra (all chips): the firmware computes 256–2048-bin FFTs and sends compact spectra instead of raw samples. On the C6, C61, S3 and S31 over native USB, the receiver keeps recording between FFTs (continuous capture¹), but only part of the signal is analyzed. See spectrum.md . The original S3 Turbo Mode was developed by Zoltan Doczi from Z2Labs .

Continuous I/Q on the ESP32-S3 : the second core filters and decimates the 16 MS/s stream to 15.625–250 kS/s, sent gap-free over native USB. See iq-stream.md .

ESP32-S31 streaming (separate esp32s31-stream firmware, experimental): continuous 8-bit I/Q at up to 20 MS/s over high-speed USB or 40 MS/s over Gigabit Ethernet, for SoapyESPSDR . See s31-streaming.md .

Talking to the firmware

The firmware speaks a simple line-based protocol over native USB or UART (2 Mbaud): INFO , FREQ 2442 , CAP16 4096 0 and so on, with binary payloads protected by CRC32. The full command reference is in protocol.md .

A few practical notes:

UART adapters must handle 2 Mbaud reliably. Slow bridges (some CH340 boards) can use the viewer's Switch to 1 Mbaud .

Power : the radio draws current spikes when it starts. A board powered from a USB-UART adapter's 3.3 V pin can brown out and reboot in a loop; use a proper supply.

Linux : ModemManager may probe Espressif USB devices and reset them. If the board resets unexpectedly, stop ModemManager or tell it to ignore the device.

firmware-targets.json lists every firmware variant and the ESP-IDF commit it is pinned to. Check out that commit, run install.sh and source export.sh . Then build each chip in its own build directory:

The S31 needs idf.py --preview . tools/build_firmware.py --profile builds a release image the same way CI does. Host-side tests run with python3 -m unittest discover -s tests . On real hardware, tools/check_spectrum.py checks every spectrum profile of a connected board.

Chip-specific notes: ESP32-C2 , ESP32-H2 .

main/targets/ / : per-chip receiver, tuning and capture memory guard.

main/families/c5_c6_c61/ : receiver shared by the C5, C6 and C61.

main/targets/esp32s31/streaming/ : the S31 USB/Ethernet streaming application.

main/common/ : serial transport, gain, limits, bandwidth, spectrum and ring capture.

main/diagnostics/ : optional register probes, not part of release builds.

platform/esp32s2/ : patched copy of the ESP-IDF USB CDC console for the S2.

Thanks to h0m3us3r for eSpDR , whose 5/6 LO investigation informed our lower-frequency tuning.

ESP-SDR is licensed under the GNU General Public License, version 3 or later ( GPL-3.0-or-later ); see LICENSE . We chose the GPL because we want improvements to flow back to the community: if you distribute a modified version, you must make its source available under the GPL. Contributing upstream is welcome but not required.

The capture mechanism itself is not covered by copyright, only this code is. You are free to implement it independently under any license.

Third-party code keeps its own license, including the Apache-2.0 ESP-IDF code in platform/esp32s2/esp_usb_cdc_rom_console/ , the ESP-DSP component , and the FFT kernels derived from it in main/targets/esp32s3/s3_fft_rnd.S and main/targets/esp32s31/burst/s31_fft_rnd.S .

Extracted Entities

Platforms (2)