Skip to the content
PCBKitNew board
4 layers84 × 56.5 mmUsb xwitch, the printed circuit board in 3D

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

10

README

README.md

USB 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)
  1. 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.
  1. 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 HardwareOverview (front)

  • 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
QtyValueFootprintReferences
25100nResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderC1, C2, C3, C10, C11, C18, C19, C20, C21, C22, C24, C25, C27, C28, C29, C30 +9
9DNFResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderC34, R41, R42, R43, R44, R45, R46, R47, R48
819-217/GHC-YR1S2/3TDiode_SMD:D_0603_1608Metric_Pad1.05x0.95mm_HandSolderD2, D4, D5, D8, D9, D10, D11, D12
7100KResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR19, R20, R21, R24, R30, R33, R35
6330Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR7, R8, R36, R37, R38, R39
50RResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR14, R15, R16, R17, R18
5TestPointTestPoint:TestPoint_Pad_D1.0mmTP1, TP2, TP3, TP4, TP6
4100uCapacitor_SMD:CP_Elec_5x5.4C31, C33, C36, C40
410KResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR6, R25, R26, R29
41uResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderC12, C13, C26, C32
4RPI Mounting HoleMountingHole:MountingHole_3.2mm_M3_PadH1, H2, H3, H4
4USB_AConnector_USB:USB_A_Wuerth_614004134726_HorizontalJ6, J7, J9, J10
3SS34Diode_SMD:D_SMAD3, D6, D7
3Screw_Terminal_3.5mmTerminalBlock_4Ucon:TerminalBlock_4Ucon_1x02_P3.50mm_HorizontalJ12, J14, J15
2100KResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR27, R28
210uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC45, C46
218KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR10, R11
21KInductor_SMD:L_0402_1005Metric_Pad0.77x0.64mm_HandSolderR3, R4
227.4RResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR1, R2
227pCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC35, C39
22N7002PPackage_TO_SOT_SMD:SOT-23Q1, Q2
230pFCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC16, C17
233KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR12, R13
2C2689642usb_xwitch:SW_SPST_CK_PTS636_SP43_SMTRSW1, SW2
2MIC2026-1BMPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU5, U6
2USB3_Ausb_xwitch:USB3_A_AdamTech_USB-A3-S-RAJ3, J5
1100nInductor_SMD:L_0402_1005Metric_Pad0.77x0.64mm_HandSolderC15
110uCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC43
112KResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR22
112MHzCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1150pFResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderC44
115uInductor_SMD:L_12x12mm_H6mmL1
11MResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR23
12.2uInductor_SMD:L_0402_1005Metric_Pad0.77x0.64mm_HandSolderC14
1210kResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR32
122uCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC42
124.9kResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR31
124MHzCrystal:Crystal_SMD_5032-2Pin_5.0x3.2mm_HandSolderingY2
14.7uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC23
140.2KResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR34
1470RResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR5
1510Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR40
156KResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR9
1B5819W SLDiode_SMD:D_SOD-123D1
1Barrel_Jack_Switch_Pin3Ringusb_xwitch:BarrelJack_SCD556DCS113BM3GJ2
1Conn_02x05_Odd_EvenConnector_PinSocket_2.54mm:PinSocket_2x05_P2.54mm_VerticalJ13
1DNFResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR49
1DNFConnector_PinHeader_1.00mm:PinHeader_1x04_P1.00mm_Vertical_SMD_Pin1LeftJ11
1FSUSB42MUXPackage_SO:MSOP-10_3x3mm_P0.5mmU4
1LOGOLOGOG***
1MP1584EN-LF-Zusb_xwitch:MP1584EN-LF-ZU8
1NCP1117LPST33T3GPackage_TO_SOT_SMD:SOT-223-3_TabPin2U9
1PI3USB302-Ausb_xwitch:USB_MUX_DEMUX_PI3USB302-AMUX1
1RP2040usb_xwitch:RP2040-QFN-56U3
1Relay_DPDT_Panasonic_AGQ200A4Husb_xwitch:Relay_DPDT_Panasonic_AGQ200A4HK1
1USB2514B_BiPackage_DFN_QFN:QFN-36-1EP_6x6mm_P0.5mm_EP3.7x3.7mmU7
1USB_BConnector_USB:USB_B_OST_USB-B1HSxx_HorizontalJ8
1USB_B_MicroConnector_USB:USB_Micro-B_Molex-105017-0001J1
1USB_C_Receptacleusb_xwitch:USB_TypeC_24Pin_ShouHanJ4
1W25Q64JVSSIQPackage_SO:SOIC-8_5.23x5.23mm_P1.27mmU2

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 mmGp ctrl, the printed circuit board in 3D

    Gp ctrl

    RunLit/gp-ctrl

    general purpose control board

    128 partsGPL-3.0
  • 4 layers150 × 100 mmZpn devboard, the printed circuit board in 3D

    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 mmRx72t 100 pga usb, the printed circuit board in 3D

    Rx72t 100 pga usb

    hirakuni45/RX

    Renesas RX Microcontroller, C++ framework, Library, Sample

    113 parts86BSD-3-Clause
  • 4 layers115 × 78 mmAvenashield, the printed circuit board in 3D

    Avenashield

    oats-center/isoblue

    ISOBlue Hardware, Avena software, and Deployment Files

    120 parts25MIT
  • 4 layers130.8 × 108 mmJupiter, the printed circuit board in 3D

    Jupiter

    ffich/Jupiter_Model_A

    Repository for Jupiter Model A board.

    138 parts1MIT
  • 4 layers50 × 50 mmUsb switch, the printed circuit board in 3D

    Usb switch

    reivax-boucoi/PCB_Kicad

    Repo for all my home projects involving PCBs developped with Kicad

    79 parts1
  • 2 layers53.5 × 33 mmAcw02 zb v1.1, the printed circuit board in 3D

    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 mmBLDC 4, the printed circuit board in 3D

    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