Skip to the content
2 layers43.4 × 18.8 mmUsb sniffer lite, the printed circuit board in 3D

A simple USB sniffer based on Raspberry Pi RP2040

Size
43.4 × 18.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
39
Nets
65
Pads
175
Tracks, vias
226, 56
Pours
2
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
15 Feb 2022
Updated
22 Oct 2025

Overview

Usb sniffer lite is an open-source printed circuit board by ataradov, from the ataradov/usb-sniffer-lite repository on GitHub, published under the BSD-3-Clause licence. It is a 2-layer board of 43.4 × 18.8 mm with 39 parts on 65 nets, routed with 226 tracks and 56 vias.

It is built around the RP2040, FE8.1 and SC662K-3.3V. Its parts include 14 capacitors, 8 resistors, 5 ICs, 3 diodes and 2 connectors. It belongs with the RP2040 boards of this library.

Main components

3

README

README.md

Usb Sniffer Lite for RP2040

This is a simple USB sniffer based on a Raspberry Pi RP2040. It supports Low Speed and Full Speed modes.

The firmware presents itself as a virtual COM-port (VCP), so no additional software is necessary and it is compatible with all operating systems.

Here are a couple of example capture logs for the enumeration and a regular data transfer.

The compiled binary is available here. Boot RP2040 into the BootROM mode and copy the UF2 file to the drive.

This sniffer has no packet decoding capabilities, but there is an excellent online USB Descriptor and Request Parser that is very helpful with decoding of the standard descriptors and requests.

The compiled binary needs to have CRC value updated to be recognized by the RP2040. This can be done using bin2uf2 tool.

Hardware Connections

USB D+ and D- signals can be directly connected to the MCU pins. The default pin assignments are shown in the following table:

RP2040 PinFunctionUSB Cable Color
GNDGroundBlack
GPIO 10D+Green
GPIO 11D-White
GPIO 12Start (internal)N/A
GPIO 18TriggerN/A
GPIO 25Status LEDN/A
GPIO 26Error LEDN/A

The easiest way to connect the signals to the Raspberry Pi Pico board is to splice the USB cable. It does not have to be pretty. Below is a picture of a cable that took less than 10 minutes to make. Feel free to make it prettier.

USB Cable

Here are some pictures of a cleaner version based on the custom breakout board.

Trigger input is internally pulled up and the active level is low. When trigger is enabled in the settings, the capture would pause until the trigger pin is pulled low. Given the limited size of the capture buffer, trigger mechanism provides a way for the debugged target to mark the part of interest.

Dedicated Hardware

There is now a dedicated board. It integrates FE8.1 USB HUB, so you only need one connection to the host PC. This simplifies setup a lot and eliminates wiring mess that usually happens when working with USB sniffers.

Normally it is not advised to use the same host port for the sniffer and the target device, but since in this case only USB Low Speed and Full Speed modes are supported, there is plenty of bandwidth for both devices.

Schematics and Gerber files are available in the hardware directory.

USB Sniffer Lite PCB

Settings

The following settings are supported:

  • Capture speed (e) -- Low / Full
  • Capture trigger (g) -- Enabled / Disabled
  • Capture limit (l) -- 100/200/500/1000/2000/5000/10000 packets / Unlimited
  • Time display format (t) -- Relative to the first packet / previous packet / SOF / bus reset
  • Data display format (a) -- Full / Limit to 16 bytes / Limit to 64 bytes / Do not display data
  • Fold empty frames (f) -- Enabled / Disabled

A frame is delimited by the SOF packet in the Full Speed mode or by a keep-alive signal in the Low Speed mode.

An empty frame is a frame that contains no packets other than IN/NAK and contains no packets with errors detected. Folding of the empty frames shortens the displayed information by combining consecutive empty frames into one entry, since they don't carry useful information, but happen very often in a typical USB transaction.

Commands

The following commands are supported:

  • Print the help message (h)
  • Display current buffer (b)
  • Start capture (s)
  • Stop capture (p)

Once capture is started and the trigger condition is met, the sniffer captures the specified number of packets. After the capture is done, the buffer is displayed using current settings.

The display settings may be adjusted without a new capture. Once the buffer is captured, it is stored in the memory and can be displayed again using a b command.

Parts

39
QtyValueFootprintReferences
9100nFataradov_smd:0603C3, C4, C6, C7, C8, C9, C12, C13, C14
51uFataradov_smd:0603C1, C2, C10, C11, C15
310Kataradov_smd:0603R5, R6, R7
227ataradov_smd:0603R1, R2
25.1Kataradov_smd:0603R3, R4
2TactSwitchataradov_switch:TactSwitch-6mm-Half-SMDSW1, SW2
112 MHzataradov_ic:CDFN-4-3.2x2.5mmIC4
12.7Kataradov_smd:0603R8
1FE8.1ataradov_ic:SSOP-16-0.635mmIC5
1GNDataradov_misc:TestPoint-1.27mm-SmallTP4
1Greenataradov_smd:0603LED1
1Logoataradov_misc:Logo-SmallLogo1
1Orangeataradov_smd:0603LED3
1RESETataradov_misc:TestPoint-1.27mm-SmallTP3
1RP2040ataradov_ic:QFN-56-0.4mmIC2
1Redataradov_smd:0603LED2
1SC662Kataradov_ic:SOT-23IC1
1SPI-FLASHataradov_ic:USON-8-3x2mmIC3
1SWCLKataradov_misc:TestPoint-1.27mm-SmallTP2
1SWDIOataradov_misc:TestPoint-1.27mm-SmallTP1
1USB-Aataradov_conn:USB-A-SlotsJ2
1USB-Cataradov_conn:USB-CJ1

Similar boards

  • 2 layers45.7 × 23.9 mmRp2040-test, the printed circuit board in 3D

    Rp2040-test

    ataradov/breakout-boards

    Random collection of breakout boards

    65 parts16
  • 2 layers24.4 × 11.2 mmM484-dap, the printed circuit board in 3D

    M484-dap

    flipperdevices/flipperzero-good-faps

    Flipper Zero Official Apps maintained by Flipper Team and Friends

    28 parts489GPL-3.0
  • 2 layers16.3 × 39.5 mmBlackmagicprobe, the printed circuit board in 3D

    Blackmagicprobe

    acalinp/CANopener

    WIP

    29 partsGPL-3.0
  • 2 layers290.1 × 130 mmPro V2, the printed circuit board in 3D

    Pro V2

    kata0510/Lily58

    6×4+4keys column-staggered split keyboard.

    312 parts2.3k
  • 4 layers50 × 30 mmPicodvi, the printed circuit board in 3D

    Picodvi

    Fr4nkFletcher/ESP32-Marauder-Cheap-Yellow-Display

    ESP32Marauder Cheap Yellow Display

    55 parts1.8kMIT
  • 4 layers299 × 127 mmLaunch, the printed circuit board in 3D

    Launch

    system76/launch

    System76 Launch Configurable Keyboard

    385 parts1.4kGPL-3.0
  • 2 layers42 × 67 mmLalboard, the printed circuit board in 3D

    Lalboard

    JesusFreke/lalboard

    A 3D-printed keyboard inspired by the DataHand

    65 parts993

Questions

How big is the Usb sniffer lite PCB?

It measures 43.4 × 18.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Usb sniffer lite use?

39 parts, built around the RP2040, FE8.1 and SC662K-3.3V. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Usb sniffer lite KiCad files?

From the ataradov/usb-sniffer-lite repository on GitHub, at the commit this page was made from: the board is hardware/usb-sniffer-lite.kicad_pcb and its schematic hardware/usb-sniffer-lite.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Usb sniffer lite design in my own project?

Its repository publishes it under the BSD-3-Clause licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).