

Usb relay hub
Relay Switch USB 2.0 Hub
- Size
- 67.9 × 82.6 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 79
- Nets
- 89
- Pads
- 371
- Tracks, vias
- 701, 167
- Pours
- 387
- Routed
- Yes
- KiCad
- KiCad 7 (file 20221018)
- Created
- 12 Aug 2023
- Updated
- 9 Nov 2023
Overview
Usb relay hub 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 67.9 × 82.6 mm with 79 parts on 89 nets, routed with 701 tracks and 167 vias.
It is built around the CH32V003F4P6, CH213K and CH217K, with the CH334R, 1N4148W and WS2812B among its other parts. Its parts include 26 resistors, 12 capacitors, 10 ICs, 9 connectors and 8 switches. It belongs with the home automation and IoT boards and the RISC-V boards of this library.
Main components
6CH32V003F4P6
TSSOP-20-175milTSSOP-20-175mil Microcontrollers (MCU/MPU/SOC) ROHSWCH (Nanjing Qinheng Microelectronics)Microcontrollers (MCU/MPU/SOC)CH213K
SOT-23-32.2V~5.5V 240mV 240mΩ 3.6uA Integrated FET SOT-23-3 ORing Controllers ROHSWCH (Nanjing Qinheng Microelectronics)Power Distribution SwitchesCH217K
SOT-23-6-40℃~+85℃ 1 2.7A 2.7V~5.5V 70mΩ Active Low Load Switch Undervoltage Protection(UVP)、Overcurrent Protection(OCP)、Over temperature protection(OTP) SOT-23-6 Power Distribution Switches ROHSWCH (Nanjing Qinheng Microelectronics)Power Distribution SwitchesCH334R
QSOP-16-150mil-40℃~+85℃ 0.4mA 3.3V、5V 4 480Mbps 85mA Hub I2C USB 2.0 QSOP-16-150mil USB HUB Controllers ROHSWCH (Nanjing Qinheng Microelectronics)USB HUB Controllers1N4148W
SOD-123150mA 1A 1V@50mA 1uA@75V 400mW 4ns 75V Independent SOD-123 Switching Diodes ROHSSTMicroelectronicsSwitching DiodesWS2812B
5mm X 5mm Surface Mount RGB LED with Intelligent ControlWorldsemiUncategorised
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
79| Qty | Value | Footprint | References |
|---|---|---|---|
| 12 | 56k | $74th:Register_0603_1608 | R13, R14, R15, R16, R17, R18, R19, R20, R23, R24, R25, R26 |
| 10 | 5.1k | $74th:Register_0603_1608 | R1, R2, R3, R4, R5, R6, R7, R8, R9, R10 |
| 7 | 10u | $74th:Capacitor_0603_1608 | C1, C3, C4, C5, C6, C8, C12 |
| 4 | 1N4148W | $74th:D_SOD-123 | D2, D3, D4, D5 |
| 4 | CH213K | Package_TO_SOT_SMD:SOT-23 | U1, U2, U3, U4 |
| 4 | CH217K | Package_TO_SOT_SMD:SOT-23-6 | U7, U8, U9, U10 |
| 4 | Com | $74th:USB-C-12-Pin-MidMount-ali-v5 | J6, J7, J8, J9 |
| 4 | FINDER-30.22 | Relay_THT:Relay_DPDT_Finder_30.22 | K1, K2, K3, K4 |
| 4 | M2_v2 | $74th:M2_v2 | M1, M2, M3, M4 |
| 4 | SW_Push | $sparrow62:MXChocDirect_1Side_1.0u | SW1, SW2, SW3, SW4 |
| 4 | USB2.0_C_v3-R | $74th:USB-C-12-Pin-MidMount-ali-v5 | J1, J2, J3, J4 |
| 3 | 100n | $74th:Capacitor_0603_1608 | C2, C7, C11 |
| 2 | 1k | $74th:Register_0603_1608 | R21, R22 |
| 2 | 22p | $74th:Capacitor_0603_1608 | C9, C10 |
| 1 | 10k | $74th:Register_0603_1608 | R12 |
| 1 | 12M | $74th:Crystal_SMD_3225-4Pin_3.2x2.5mm_HandSoldering | Y1 |
| 1 | 27 | $74th:Register_0603_1608 | R11 |
| 1 | CH32V003F4P6 | Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm | U6 |
| 1 | CH334R | Package_SO:QSOP-16_3.9x4.9mm_P0.635mm | U11 |
| 1 | Dubug | $74th:CH32V003-DebugPort | CH1 |
| 1 | I2C | $74th:HY2.0_Socket_SMD_4Pin | CH2 |
| 1 | LOGO | $74th:74th-15mm | G*** |
| 1 | Power | $74th:USB-C-12-Pin-MidMount-ali-v5 | J5 |
| 1 | WS2812B | LED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mm | D1 |
The 78 most common of 79 parts.
More from 74th/relay-switch-usbhub
1- 2 layers92.5 × 22 mm

Similar boards
- 2 layers138.4 × 67.3 mm

- 2 layers80 × 50 mm

HUB CH334U PCB
openwch/ch334
Share the schematic and layout (KiCad) for DIY USB2.0 4-PORTS HUB with CH334U
36 parts14 - 4 layers80 × 80 mm

- 2 layers15.5 × 36.6 mm

- 2 layers50 × 54 mm

- 2 layers148.6 × 192.2 mm

Badge
NuttyShell/NuttyBadge
NuttyBadge: A NuttyShell crafted multi-tool. Opensourced Hardawre and Software
169 parts31GPL-3.0 - 4 layers210 × 120 mm

Frank zx
rh1tech/frank-lab
FRANK Board Laboratory (work-in-progress board prototopyes)
273 parts4GPL-3.0 - 2 layers56 × 65 mm

Questions
How big is the Usb relay hub PCB?
It measures 67.9 × 82.6 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Usb relay hub use?
79 parts, built around the CH32V003F4P6, CH213K, CH217K and CH334R. 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 relay hub KiCad files?
From the 74th/relay-switch-usbhub repository on GitHub, at the commit this page was made from: the board is main-pcb/usb_relay_hub.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 Usb relay hub 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).