

Usb xwitch
A software controlled usb switch
- Size
- 84 × 56.5 mm
- Copper layers
- 4
- Thickness
- 4.69 mm
- Parts
- 149
- Nets
- 143
- Pads
- 574
- Tracks, vias
- 1,423, 289
- Pours
- 20
- Routed
- Yes
- KiCad
- KiCad 6 (file 20211014)
- Created
- 30 May 2022
- Updated
- 22 Mar 2026
Overview
Usb xwitch is an open-source printed circuit board by RunLit, from the RunLit/usb-xwitch repository on GitHub. It is a 4-layer board of 84 × 56.5 mm with 149 parts on 143 nets, routed with 1,423 tracks and 289 vias.
It is built around the RP2040, MP1584EN-LF-Z and W25Q64JVSSIQ, with the MIC2026-1BM, FSUSB42MUX and NCP1117LPST33T3G-MS among its other parts. Its parts include 54 capacitors, 41 resistors, 15 connectors, 12 diodes and 8 ICs. It belongs with the RP2040 boards of this library.
Main components
10RP2040
LQFN-56(7x7)12bit 133MHz 30 LQFN-56(7x7) Microcontrollers (MCU/MPU/SOC) ROHSRaspberry PiMicrocontrollers (MCU/MPU/SOC)MP1584EN-LF-Z
SOIC-8-EP-20℃~+85℃@(TA) 1 100kHz~1.5MHz 100uA 3A 4.5V~28V 800mV~25V Adjustable Buck Buck Built-in No SOIC-8-EP DC-DC Converters ROHSMonolithic Power SystemsDC-DC ConvertersW25Q64JVSSIQ
SOIC-8-208mil-40℃~+85℃ 100,000 cycles 10uA 133MHz 150ms@(64KB) 2.7V~3.6V 20 Years 3ms 64Mbit SPI SOIC-8-208mil NOR FLASH ROHSWinbondNOR FLASHMIC2026-1BM
SOIC-8-40℃~+85℃ 140mΩ 2 2.7V~5.5V 500mA Active High Soft-start、Under-voltage lockout、Overcurrent Protection、Over temperature protection、Short-Circuit Protection、Reverse current blocking SOIC-8 Power Distribution SwitchesMicrochip TechnologyPower Distribution SwitchesFSUSB42MUX
MSOP-10-40℃~+85℃ 12ns 13ns 2 250ps 2:1 3.7pF 3.9Ω 3V~4.4V 720MHz MSOP-10 Analog Switches, Multiplexers ROHSonsemiAnalog Switches, MultiplexersNCP1117LPST33T3G-MS
SOT-223-20℃~+125℃@(Ta) 1 1.4V@(1A) 12mA 15V 1A 3.235V~3.365V Fixed Positive SOT-223 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSMSKSEMIVoltage Regulators - Linear, Low Drop Out (LDO) Regulators19-217/GHC-YR1S2/3T
0603-40℃~+85℃ 110mW 120° 199mcd 20mA 3.3V 518nm 520nm~535nm Discrete Diode Emerald Green Water Clear 0603 LED Indication - Discrete ROHSEverlight ElectronicsLED Indication - DiscreteSS34
SMA(DO-214AC)-55℃~+125℃ 3A 40V 500uA@40V 550mV@3A Independent SMA(DO-214AC) Schottky Diodes ROHSMDDSchottky Diodes2N7002P
SOT-23-55℃~+150℃ 1 N-channel 1.6Ω@10V 2.4V 350mW 360mA 50pF 60V 800pC@4.5V SOT-23 MOSFETs ROHSNexperiaMOSFETsPTS636SK25SMTRLFS
SMD,6x3.5mm-40℃~+90℃ 12V 2.5N 3.7mm 50mA 6.1mm Gull Wing IP40 No Rectangular Button SPST-NO Surface Mount,Vertical SMD,6x3.5mm Tactile Switches ROHSC&KTactile Switches
README
README.mdUSB Hub
A programmable budget USB 1:2 multiplexer and HUB device (original name usb-xwitch). Features one 1:2 USB 3.1 switch and 4 Ch USB 2.0 remote controllable HUB. Controlling via on board micro USB or by Raspberry Pi UART.
CAD Setup (KiCad 6.0)
- Open ./sch/usb_xwitch.kicad_pro -> Schematics Editor
- in Preferences -> Configure Path, add path name: "USB_XWITCH" and path: absolute address of the project (e.g. /Users/runnanl/src/usb-hub)
- Channel Features
- Switch: USB 3.0 High Speed 1 Mux 2 switching. Additional physical control by push button switch.
- HUB: USB 2.0 HS 1:4 HUB. Individual remote control, power delivery and over current shutdown.
- HUB Expansion: UART daisy chain HUB capability.
- Command via micro USB serial (default) or use by UART from Raspberry Pi (as a HAT)
CAD Setup (KiCad 6.0)
- Open ./sch/usb_xwitch.kicad_pro -> Schematics Editor
- in Preferences -> Configure Path, add path name: "USB_XWITCH" and path: absolute address of the project (e.g. /Users/runnanl/src/usb-hub)
Hardware Overview
PCBA

- CHS: USB3.0 1 mux 2. Port active indications. Switch button.
- CHH: USB2.0 HS 1x upstream USB-B to 4x downstream USB-A ports. Control via commands.
- Raspberry Pi compaticable header (10 Pins).
- Mountable as Raspberry Pi 2/3/4 HAT.
Power Supply:
12V 2A supplied by barrel jack (default unmounted) OR PWR screw terminal. Alternatively, 5V 3A DC power can directly power 5V points from 10 Pin header.
WARNING : Only one power supply connected at the same time
Software Overview
- pico software
- USB control protocols and commands
- UART control commands
Parts
149| Qty | Value | Footprint | References |
|---|---|---|---|
| 25 | 100n | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | C1, C2, C3, C10, C11, C18, C19, C20, C21, C22, C24, C25, C27, C28, C29, C30 +9 |
| 9 | DNF | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | C34, R41, R42, R43, R44, R45, R46, R47, R48 |
| 8 | 19-217/GHC-YR1S2/3T | Diode_SMD:D_0603_1608Metric_Pad1.05x0.95mm_HandSolder | D2, D4, D5, D8, D9, D10, D11, D12 |
| 7 | 100K | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R19, R20, R21, R24, R30, R33, R35 |
| 6 | 330 | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R7, R8, R36, R37, R38, R39 |
| 5 | 0R | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R14, R15, R16, R17, R18 |
| 5 | TestPoint | TestPoint:TestPoint_Pad_D1.0mm | TP1, TP2, TP3, TP4, TP6 |
| 4 | 100u | Capacitor_SMD:CP_Elec_5x5.4 | C31, C33, C36, C40 |
| 4 | 10K | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R6, R25, R26, R29 |
| 4 | 1u | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | C12, C13, C26, C32 |
| 4 | RPI Mounting Hole | MountingHole:MountingHole_3.2mm_M3_Pad | H1, H2, H3, H4 |
| 4 | USB_A | Connector_USB:USB_A_Wuerth_614004134726_Horizontal | J6, J7, J9, J10 |
| 3 | SS34 | Diode_SMD:D_SMA | D3, D6, D7 |
| 3 | Screw_Terminal_3.5mm | TerminalBlock_4Ucon:TerminalBlock_4Ucon_1x02_P3.50mm_Horizontal | J12, J14, J15 |
| 2 | 100K | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R27, R28 |
| 2 | 10u | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C45, C46 |
| 2 | 18K | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R10, R11 |
| 2 | 1K | Inductor_SMD:L_0402_1005Metric_Pad0.77x0.64mm_HandSolder | R3, R4 |
| 2 | 27.4R | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R1, R2 |
| 2 | 27p | Capacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolder | C35, C39 |
| 2 | 2N7002P | Package_TO_SOT_SMD:SOT-23 | Q1, Q2 |
| 2 | 30pF | Capacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolder | C16, C17 |
| 2 | 33K | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R12, R13 |
| 2 | C2689642 | usb_xwitch:SW_SPST_CK_PTS636_SP43_SMTR | SW1, SW2 |
| 2 | MIC2026-1BM | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U5, U6 |
| 2 | USB3_A | usb_xwitch:USB3_A_AdamTech_USB-A3-S-RA | J3, J5 |
| 1 | 100n | Inductor_SMD:L_0402_1005Metric_Pad0.77x0.64mm_HandSolder | C15 |
| 1 | 10u | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C43 |
| 1 | 12K | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R22 |
| 1 | 12MHz | Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm | Y1 |
| 1 | 150pF | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | C44 |
| 1 | 15u | Inductor_SMD:L_12x12mm_H6mm | L1 |
| 1 | 1M | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R23 |
| 1 | 2.2u | Inductor_SMD:L_0402_1005Metric_Pad0.77x0.64mm_HandSolder | C14 |
| 1 | 210k | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R32 |
| 1 | 22u | Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolder | C42 |
| 1 | 24.9k | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R31 |
| 1 | 24MHz | Crystal:Crystal_SMD_5032-2Pin_5.0x3.2mm_HandSoldering | Y2 |
| 1 | 4.7u | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C23 |
| 1 | 40.2K | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R34 |
| 1 | 470R | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R5 |
| 1 | 510 | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R40 |
| 1 | 56K | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R9 |
| 1 | B5819W SL | Diode_SMD:D_SOD-123 | D1 |
| 1 | Barrel_Jack_Switch_Pin3Ring | usb_xwitch:BarrelJack_SCD556DCS113BM3G | J2 |
| 1 | Conn_02x05_Odd_Even | Connector_PinSocket_2.54mm:PinSocket_2x05_P2.54mm_Vertical | J13 |
| 1 | DNF | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R49 |
| 1 | DNF | Connector_PinHeader_1.00mm:PinHeader_1x04_P1.00mm_Vertical_SMD_Pin1Left | J11 |
| 1 | FSUSB42MUX | Package_SO:MSOP-10_3x3mm_P0.5mm | U4 |
| 1 | LOGO | LOGO | G*** |
| 1 | MP1584EN-LF-Z | usb_xwitch:MP1584EN-LF-Z | U8 |
| 1 | NCP1117LPST33T3G | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U9 |
| 1 | PI3USB302-A | usb_xwitch:USB_MUX_DEMUX_PI3USB302-A | MUX1 |
| 1 | RP2040 | usb_xwitch:RP2040-QFN-56 | U3 |
| 1 | Relay_DPDT_Panasonic_AGQ200A4H | usb_xwitch:Relay_DPDT_Panasonic_AGQ200A4H | K1 |
| 1 | USB2514B_Bi | Package_DFN_QFN:QFN-36-1EP_6x6mm_P0.5mm_EP3.7x3.7mm | U7 |
| 1 | USB_B | Connector_USB:USB_B_OST_USB-B1HSxx_Horizontal | J8 |
| 1 | USB_B_Micro | Connector_USB:USB_Micro-B_Molex-105017-0001 | J1 |
| 1 | USB_C_Receptacle | usb_xwitch:USB_TypeC_24Pin_ShouHan | J4 |
| 1 | W25Q64JVSSIQ | Package_SO:SOIC-8_5.23x5.23mm_P1.27mm | U2 |
Questions
How big is the Usb xwitch PCB?
It measures 84 × 56.5 mm and has 4 copper layers, 4.69 mm thick.
What parts does the Usb xwitch use?
149 parts, built around the RP2040, MP1584EN-LF-Z, W25Q64JVSSIQ and MIC2026-1BM. 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 xwitch KiCad files?
From the RunLit/usb-xwitch repository on GitHub, at the commit this page was made from: the board is sch/usb_xwitch.kicad_pcb and its schematic sch/power_io.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Usb xwitch design in my own project?
Its repository states no licence, so its author keeps all rights: ask RunLit before reusing the design.
Similar boards
- 2 layers65 × 56.5 mm

- 4 layers150 × 100 mm

Zpn devboard
CRImier/MyKiCad
My KiCad boards. Can't be bothered uploading individually anymore, so here you go.
168 parts253GPL-3.0 - 2 layers120 × 80 mm

Rx72t 100 pga usb
hirakuni45/RX
Renesas RX Microcontroller, C++ framework, Library, Sample
113 parts86BSD-3-Clause - 4 layers115 × 78 mm

- 4 layers130.8 × 108 mm

- 4 layers50 × 50 mm

Usb switch
reivax-boucoi/PCB_Kicad
Repo for all my home projects involving PCBs developped with Kicad
79 parts1 - 2 layers53.5 × 33 mm

Acw02 zb v1.1
Fabiancrg/acw02_zb
See the documentation files for advanced features, troubleshooting, and hardware details.
30 parts3 - 4 layers186.9 × 129.8 mm

BLDC 4
ansh1113/e-bike-conversion-kit
A 4-layer PCB-based e-bike conversion kit featuring an STM32-based VESC ESC, power management circuits, wireless throttle, GSM, GPS, and more.
179 parts1