

Switch pcb
Relay Switch USB 2.0 Hub
- Size
- 92.5 × 22 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 20
- Nets
- 26
- Pads
- 94
- Tracks, vias
- 121, 39
- Pours
- 90
- Routed
- Yes
- KiCad
- KiCad 7 (file 20221018)
- Created
- 12 Aug 2023
- Updated
- 9 Nov 2023
Overview
Switch pcb is an open-source printed circuit board by 74th, from the 74th/relay-switch-usbhub repository on GitHub, published under the MIT licence. It is a 2-layer board of 92.5 × 22 mm with 20 parts on 26 nets, routed with 121 tracks and 39 vias.
It is built around the CH32V003F4P6 and SK6812MINI-E. Its parts include 4 diodes, 4 switches, 2 capacitors, 2 resistors and 1 IC. It belongs with the home automation and IoT boards and the RISC-V boards of this library.
Main components
2CH32V003F4P6
TSSOP-20-175milTSSOP-20-175mil Microcontrollers (MCU/MPU/SOC) ROHSWCH (Nanjing Qinheng Microelectronics)Microcontrollers (MCU/MPU/SOC)SK6812MINI-E
SMD-40℃~+85℃ 0.6mA 1.78mm 120mcd~240mcd 120° 160mcd~320mcd 1kHz 2.8mm 2000V 3.2mm 3.7V~5.5V 460nm~470nm 515nm~525nm 620nm~625nm 800Kbit/s 815mcd~1275mcd Semi-transparent lens SMD RGB LEDs(Built-in IC) ROHSOPSCO OptoelectronicsRGB LEDs(Built-In IC)
README
README.mdRelay Switch USB 2.0 Hub
This is a USB hub with USB switching function using relays.
Many existing USB hubs with USB host switching function only allow 2-port switching, and I made this kit because we wanted a 4-port hub. Since there are no USB hubs using USB Type-C available on the market, it is convenient to use USB Type-C. Since I wanted to place the USB hub behind the display, we also added the ability to switch remotely using a Grove cable.
Usually a dedicated USB switching IC should be used for USB switching, but this is achieved by using a relay to switch between DM/DP. It works by me, so I am not guaranteeing that it works, but I am publishing it.
リレーを使った USB 切り替え機能付き USB ハブです。
既存の USB ホスト切り替え機能付き USB ハブでは、多くが 2 ポートしか切り替えられず、4 ポートが欲しかったため作りました。 USB Type-C を使った USB ハブは販売されていないため、USB Type-C が使えると便利です。 USB ハブはディスプレイの裏に置きたかったため、Grove ケーブルを使ってリモートから切り替えられる機能もつけました。
本来は USB 切り替えには USB 切り替え専用の IC を使うべきですが、これはリレーを使って DM/DP を切り替えることで実現しています。私の所では動作しているので、動作は保証しませんが、公開しています。






Shop BOOTH
features
- Switch between 4 USB Hosts with Relay
- 4-port USB 2.0 hub using CH334
- MX compatible DIY keyboard switches can be used to switch between USB hosts
- Currently enabled USB host is indicated by LED color
- A Grove cable can be used to place a USB host switching switch at a remote location
- Power protection IC on both USB device and USB host side
- USB port next to LED for power supply
- All USB ports are Type-C
Japanese
- リレーを使った USB ホスト切り替え機能
- CH334 を使った 4 ポート USB 2.0 ハブ
- USB ホストの切り替えスイッチには MX 互換自作キーボードスイッチが使える
- 現在有効な USB ホストを LED の色で表示する
- Grove ケーブルで、離れた位置に USB ホストを切り替えるスイッチを置くことができる
- USB デバイス、USB ホスト側の両方に電源保護 IC を搭載
- LED 横の USB ポートは電源供給用
- 全ての USB ポートは Type-C
Repository Structure
- Relay USB Hub
- PCB KiCad Data: ./main-pcb
- Relay Control MCU Firmware(CH32V003F6P6): ./main-firmware
- Case 3D Printer Model(WIP): ./case/case-bottom.stl
- Button Unit Grove I2C
- PCB KiCad Data: ./remote_switch-pcb
- Button Unit MCU Firmware(CH32V003F6P6): ./remote_switch-firmware
- Case 3D Printer Model(WIP): ./case/remote-bottom.stl
About Using IC
- CH334R: USB 2.0 Hub controller IC
- Product Site: https://www.wch-ic.com/products/CH334.html
- Datasheet: https://www.wch-ic.com/downloads/CH334DS0_PDF.html
- CH32V003: Low Cost General Purpose MCU
- Product Site: https://www.wch-ic.com/products/CH32V003.html
- Datasheet: https://www.wch-ic.com/downloads/CH32V003DS0_PDF.html
Relay USB Hub v1.0.1
BOM
| Reference | Name | Quantity |
|---|---|---|
| C1, C3-C6, C8, C12 | Capacitor 0603 10uF | 7 |
| C2, C11 | Capacitor 0603 100nF | 2 |
| C7 | NC | 1 |
| C9, C10 | Capacitor 0603 20-22pF | 2 |
| CH2 | HY2.0 Socket SMD 4Pin - I2C | 1 |
| D1 | RGBLED WS2812B | 1 |
| D2-D5 | Fast Switching Diode SOD-123 1N4148W | 4 |
| J1-J4 | USB Type-C Receptacle - USB Device | 4 |
| J5 | USB Type-C Receptacle - Power | 1 |
| J6-J9 | USB Type-C Receptacle - Com Host | 4 |
| K1-K4 | 5V 2 Form C Relay | 4 |
| R1-R10 | Register 0603 5.1kΩ | 10 |
| R11 | Register 0603 27Ω | 1 |
| R12 | Register 0603 10kΩ | 1 |
| R13-R20, R23-R26 | Register 0603 56kΩ | 12 |
| R21, R22 | Register 0603 1kΩ | 2 |
| SW1-SW4 | Cherry MX Compatible Switch or Kailh Choc Switch | 4 |
| U1-U4 | USB Power Protection IC SOT-23 CH213K | 4 |
| U6 | MCU LQFP48 WCH CH32V003F4P6 | 1 |
| U7-U10 | USB Power Protection IC SOT-23-6L CH217K | 4 |
| U11 | USB 2.0 Hub Controller QSOP-16 CH334R | 1 |
| Y1 | Crystal 3225 12MHz | 1 |
Button Unit Grove v1.0.0
BOM
| Reference | Name | Quantity |
|---|---|---|
| C1 | Capacitor 0805 100nF | 1 |
| C2 | Capacitor 0805 10uF | 1 |
| CH1 | HY2.0 Socket SMD 4Pin - Grove I2C | 1 |
| D1-D4 | RGBLED 3528 SK6812MINI-E | 4 |
| R1 | Register 0805 10kΩ | 1 |
| R2 | Register 0805 27Ω | 1 |
| SW1-SW4 | Cherry MX Compatible Switch or Kailh Choc Switch | 4 |
| U1 | MCU LQFP48 WCH CH32V003F4P6 | 1 |
License
MIT
日本では販売しないでいただけるとありがたいです。
Parts
20| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | M2_v2 | $74th:M2_v2 | M2-1, M2-1, M2-1, M2-1 |
| 4 | SK6812MINI | $74th:YS-SK6812MINI-E-BACK-RIGHT | D1, D2, D3, D4 |
| 4 | SW_Push | $sparrow62:MXChocDirect_1Side_1.0u | SW1, SW2, SW3, SW4 |
| 1 | 100n | $74th:Capacitor_0805_2012 | C1 |
| 1 | 10k | $74th:Register_0805_2012 | R1 |
| 1 | 10u | $74th:Capacitor_0805_2012 | C2 |
| 1 | 27 | $74th:Register_0805_2012 | R2 |
| 1 | CH32V003F4P6 | Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm | U1 |
| 1 | Grove I2C | $74th:HY2.0_Socket_SMD_4Pin | CH1 |
| 1 | SWD 1Wire & UART TX | $74th:CH32V003-DebugPort_with_vcc | CH2 |
The 19 most common of 20 parts.
More from 74th/relay-switch-usbhub
1- 2 layers67.9 × 82.6 mm

Similar boards
- 2 layers92 × 63.4 mm

Bsidesorl v1
bsidesorlando/2026-badge
The electronic badge for BSides Orlando 2026, themed around retro-futurism: a 1960s World's Fair vision of tomorrow, with Lil Chompy the alligator at the wheel of a flying car.
39 parts5 - 2 layers138.4 × 67.3 mm

- 2 layers92.5 × 22 mm

- 2 layers36.1 × 21 mm

- 2 layers32 × 35 mm

- 2 layers50.5 × 94.7 mm

SwordOfSecretsUSBProd
gili-yankovitch/SwordOfSecrets
To solve the challenge you will need to discover a series of flags, hidden inside the sword. Each one will help you unlock the next step in the challenge, to finally reveal the ultimate secret the sword holds.
16 parts47MIT - 4 layers44.8 × 76 mm

- 2 layers52.3 × 16.3 mm

Generic TSSOP20
dwillmore/TSSOP20_breakout
A generic breakout board for TSSOP20 chips to a SIP header meant for breadboard use
45 parts18CERN-OHL-W-2.0
Questions
How big is the Switch pcb PCB?
It measures 92.5 × 22 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Switch pcb use?
20 parts, built around the CH32V003F4P6 and SK6812MINI-E. 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 Switch pcb KiCad files?
From the 74th/relay-switch-usbhub repository on GitHub, at the commit this page was made from: the board is remote_switch-pcb/switch-pcb.kicad_pcb and its schematic main-pcb/usb_relay_hub.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Switch pcb design in my own project?
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).