Usb sleuth
smaroukis·usb-sleuth
About the Usb sleuth PCB
Usb sleuth is an open source STM32 PCB design by smaroukis, published on GitHub under the GPL-3.0 license. It is a 2-layer board measuring 90 × 90 mm, with 64 components from 28 distinct parts.
Its main chip is the STM32C031K6T6, from the STM32 family. By type, the board carries 25 diodes, 12 resistors, 6 connectors, 5 capacitors, 2 switches and 1 IC.
From the project
USB cable continuity tester ++
See this README for usage of the STM32CubeIDE to flash firmware on the device.
The device tests for continuity and internal resistors within various USB Cables and exposes some pins for multimeter testing. The project is a hardware fork of aroerina/LimePulse that I decided to reverse engineer and write the firmware for.
A STM32C031K6T microcontroller is used for testing connection and orientation, powered by a CR2032 battery. Code is given using STM32 HAL libraries and the device can being programmed over SWD.

Main components on the Usb sleuth
Usb sleuth bill of materials (BOM)
64 components, 28 distinct parts — part numbers from the project's BOM.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | STM32C031K6T6 | LQFP-32_7x7mm_P0.8mm | U1 |
| 1 | Conn_1x05 | PinSocket_1x05_P2.54mm_Vertical | J1 |
| 2 | USB_C_12401832E402A | USB_C_Receptacle_Amphenol_12401832E402A | J2, J3 |
| 1 | USB_MICRO-B_KH-MICRO5P-JN USB_Micro-B_KH-MICRO5P-JN | USB_Micro-B_Kinghelm-KH-MICRO5P-JN | J4 |
| 1 | USB_MINI-B_U-M-M5DD-W-1 USB_Mini-B_U-M-M5DD-W-1 | USB_Mini-B_Korean-Hroparts_U-M-M5DD-W-1_SMD-5-4MP | J5 |
| 1 | USB3_A_HC-USB3.0-L168-WP | USB3_A_Hong-Cheng_HC-USB3.0-L168-WP_THT-9-2MP_P2.0mm | J6 |
| 1 | CR2032 | BatteryHolder_Keystone_103_1x20mm | BT1 |
| 1 | B_CC1 | Connector_Pad_Edge_Oval_5mm_Extended | H1 |
| 1 | B_CC2 | Connector_Pad_Edge_Oval_5mm_Extended | H2 |
| 1 | B_VBUS | Connector_Pad_Edge_Oval_5mm_Extended | H3 |
| 1 | A_CC1 | Connector_Pad_Edge_Oval_5mm_Extended | H4 |
| 1 | A_CC2 | Connector_Pad_Edge_Oval_5mm_Extended | H5 |
| 1 | A_SHIELD | TestPoint_THTPad_D1.5mm_Drill0.7mm | H6 |
| 1 | B_GND | Connector_Pad_Edge_Oval_5mm_Extended | H7 |
| 1 | B_SHIELD | TestPoint_THTPad_D1.5mm_Drill0.7mm | H8 |
| 1 | A_GND | Connector_Pad_Edge_Oval_5mm_Extended | H9 |
| 1 | A_VBUS | Connector_Pad_Edge_Oval_5mm_Extended | H10 |
| 1 | ID | TestPoint_THTPad_D1.5mm_Drill0.7mm | H11 |
| 1 | A_DRAIN | TestPoint_THTPad_D1.5mm_Drill0.7mm | H12 |
| 1 | SW_DPDT_x2 | SW_E-Switch_EG1271_SPDT | SW1 |
Show 8 more
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | ZX-1.27BM-4PSMD | SW-DIP-4P_P1.27mm_SMD-2x4 | SW2 |
| 25 | C2296 YLW | LED_0805_2012Metric | D1, D2, D3, D4, D5, D6, D7, D8 +17 |
| 3 | 100N 100n | C_0402_1005Metric | C1, C2, C4 |
| 1 | 4U7 4u7 | C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C3 |
| 1 | 1UF 1uF | C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C5 |
| 3 | 10K 10k | R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R1, R2, R3 |
| 2 | 2K | R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R4, R5 |
| 7 | 1K6 | R_Array_Concave_4x0402 | RN1, RN2, RN3, RN4, RN5, RN6, RN7 |
Usb sleuth design files
The KiCad project lives in the smaroukis/usb-sleuth repository on GitHub; these links point at the commit this page was built from.
Usb sleuth: common questions
What microcontroller does the Usb sleuth use?
The Usb sleuth is built around the STM32C031K6T6, from the STM32 family.
How big is the Usb sleuth PCB?
The Usb sleuth measures 90 × 90 mm, has 2 copper layers and is 4.69 mm thick.
How many components are on the Usb sleuth?
64 components, from 28 distinct parts, with part numbers taken from the project's own BOM. The full bill of materials is listed on this page.
Where can I download the Usb sleuth design files?
From the smaroukis/usb-sleuth repository on GitHub, which has the KiCad layout, the schematic and the BOM; the links under Design files point to each one.
Can I use the Usb sleuth design in my own project?
Yes, under the terms of its GPL-3.0 license, which smaroukis chose for the repository.
Can I test firmware for the Usb sleuth without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug STM32 firmware against it before you order a PCB.
Similar boards
STM32
LumenPnP Motherboard
opulo-inc
149 × 95 mm296 parts4LCC-BY-SA-4.03.7kSTM32
AxxSolder
AxxAxx
39 × 82.5 mm122 parts2LGPL-3.01.7kSTM32
AIOC
skuep
21 × 31.5 mm47 parts2LMIT1.4kSTM32
Ferris
pierrechevalier83
208.8 × 86.8 mm102 parts2LSHL-2.11.3kSTM32
Module 16S
stuartpittaway
71.1 × 89.6 mm113 parts4LCC-BY-NC-4.01.1kSTM32
Djinn
tzarc
192.3 × 150.5 mm216 parts2LCERN-OHL-S-2.0988