Skip to the content
2 layers67.9 × 82.6 mmUsb relay hub, the printed circuit board in 3D

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

6

README

README.md

Relay 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

About Using IC

Relay USB Hub v1.0.1

BOM

ReferenceNameQuantity
C1, C3-C6, C8, C12Capacitor 0603 10uF7
C2, C11Capacitor 0603 100nF2
C7NC1
C9, C10Capacitor 0603 20-22pF2
CH2HY2.0 Socket SMD 4Pin - I2C1
D1RGBLED WS2812B1
D2-D5Fast Switching Diode SOD-123 1N4148W4
J1-J4USB Type-C Receptacle - USB Device4
J5USB Type-C Receptacle - Power1
J6-J9USB Type-C Receptacle - Com Host4
K1-K45V 2 Form C Relay4
R1-R10Register 0603 5.1kΩ10
R11Register 0603 27Ω1
R12Register 0603 10kΩ1
R13-R20, R23-R26Register 0603 56kΩ12
R21, R22Register 0603 1kΩ2
SW1-SW4Cherry MX Compatible Switch or Kailh Choc Switch4
U1-U4USB Power Protection IC SOT-23 CH213K4
U6MCU LQFP48 WCH CH32V003F4P61
U7-U10USB Power Protection IC SOT-23-6L CH217K4
U11USB 2.0 Hub Controller QSOP-16 CH334R1
Y1Crystal 3225 12MHz1

Button Unit Grove v1.0.0

BOM

ReferenceNameQuantity
C1Capacitor 0805 100nF1
C2Capacitor 0805 10uF1
CH1HY2.0 Socket SMD 4Pin - Grove I2C1
D1-D4RGBLED 3528 SK6812MINI-E4
R1Register 0805 10kΩ1
R2Register 0805 27Ω1
SW1-SW4Cherry MX Compatible Switch or Kailh Choc Switch4
U1MCU LQFP48 WCH CH32V003F4P61

License

MIT

日本では販売しないでいただけるとありがたいです。

Parts

79
QtyValueFootprintReferences
1256k$74th:Register_0603_1608R13, R14, R15, R16, R17, R18, R19, R20, R23, R24, R25, R26
105.1k$74th:Register_0603_1608R1, R2, R3, R4, R5, R6, R7, R8, R9, R10
710u$74th:Capacitor_0603_1608C1, C3, C4, C5, C6, C8, C12
41N4148W$74th:D_SOD-123D2, D3, D4, D5
4CH213KPackage_TO_SOT_SMD:SOT-23U1, U2, U3, U4
4CH217KPackage_TO_SOT_SMD:SOT-23-6U7, U8, U9, U10
4Com$74th:USB-C-12-Pin-MidMount-ali-v5J6, J7, J8, J9
4FINDER-30.22Relay_THT:Relay_DPDT_Finder_30.22K1, K2, K3, K4
4M2_v2$74th:M2_v2M1, M2, M3, M4
4SW_Push$sparrow62:MXChocDirect_1Side_1.0uSW1, SW2, SW3, SW4
4USB2.0_C_v3-R$74th:USB-C-12-Pin-MidMount-ali-v5J1, J2, J3, J4
3100n$74th:Capacitor_0603_1608C2, C7, C11
21k$74th:Register_0603_1608R21, R22
222p$74th:Capacitor_0603_1608C9, C10
110k$74th:Register_0603_1608R12
112M$74th:Crystal_SMD_3225-4Pin_3.2x2.5mm_HandSolderingY1
127$74th:Register_0603_1608R11
1CH32V003F4P6Package_SO:TSSOP-20_4.4x6.5mm_P0.65mmU6
1CH334RPackage_SO:QSOP-16_3.9x4.9mm_P0.635mmU11
1Dubug$74th:CH32V003-DebugPortCH1
1I2C$74th:HY2.0_Socket_SMD_4PinCH2
1LOGO$74th:74th-15mmG***
1Power$74th:USB-C-12-Pin-MidMount-ali-v5J5
1WS2812BLED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mmD1

The 78 most common of 79 parts.

More from 74th/relay-switch-usbhub

1
  • 2 layers92.5 × 22 mmSwitch pcb, the printed circuit board in 3D

    Switch pcb

    74th/relay-switch-usbhub

    Relay Switch USB 2.0 Hub

    20 parts1MIT

Similar boards

  • 2 layers138.4 × 67.3 mmTv side keyboard, the printed circuit board in 3D

    Tv side keyboard

    74th/tv-side-keyboard-SparrowTV

    TV Side Keyboard SparrowTV

    92 parts3MIT
  • 2 layers80 × 50 mmHUB CH334U PCB, the printed circuit board in 3D

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

    Konoha

    aisuneko/konoha

    4-port USB3.0 pure Type-C Hub powered by CH634X

    97 parts1CERN-OHL-S-2.0
  • 2 layers50 × 54 mmCh32v003 test board, the printed circuit board in 3D

    Ch32v003 test board

    74th/74th-oshw-projects

    74th のPCBデータを公開しているプロジェクト

    21 parts1MIT
  • 2 layers148.6 × 192.2 mmBadge, the printed circuit board in 3D

    Badge

    NuttyShell/NuttyBadge

    NuttyBadge: A NuttyShell crafted multi-tool. Opensourced Hardawre and Software

    169 parts31GPL-3.0
  • 4 layers210 × 120 mmFrank zx, the printed circuit board in 3D

    Frank zx

    rh1tech/frank-lab

    FRANK Board Laboratory (work-in-progress board prototopyes)

    273 parts4GPL-3.0
  • 2 layers56 × 65 mmMainBoard V1, the printed circuit board in 3D

    MainBoard V1

    banbatakumi/AutonomousCar

    自律走行ミニカー SURGE Mark.2 の STM32 ファームウェアと基板(回路)。

    122 parts

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).