Skip to the content
2 layers92.5 × 22 mmSwitch pcb, the printed circuit board in 3D

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

2

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

20
QtyValueFootprintReferences
4M2_v2$74th:M2_v2M2-1, M2-1, M2-1, M2-1
4SK6812MINI$74th:YS-SK6812MINI-E-BACK-RIGHTD1, D2, D3, D4
4SW_Push$sparrow62:MXChocDirect_1Side_1.0uSW1, SW2, SW3, SW4
1100n$74th:Capacitor_0805_2012C1
110k$74th:Register_0805_2012R1
110u$74th:Capacitor_0805_2012C2
127$74th:Register_0805_2012R2
1CH32V003F4P6Package_SO:TSSOP-20_4.4x6.5mm_P0.65mmU1
1Grove I2C$74th:HY2.0_Socket_SMD_4PinCH1
1SWD 1Wire & UART TX$74th:CH32V003-DebugPort_with_vccCH2

The 19 most common of 20 parts.

More from 74th/relay-switch-usbhub

1
  • 2 layers67.9 × 82.6 mmUsb relay hub, the printed circuit board in 3D

    Usb relay hub

    74th/relay-switch-usbhub

    Relay Switch USB 2.0 Hub

    79 parts1MIT

Similar boards

  • 2 layers92 × 63.4 mmBsidesorl v1, the printed circuit board in 3D

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

    Tv side keyboard

    74th/tv-side-keyboard-SparrowTV

    TV Side Keyboard SparrowTV

    92 parts3MIT
  • 2 layers92.5 × 22 mmButton unit grove i2c, the printed circuit board in 3D

    Button unit grove i2c

    74th/74th-oshw-projects

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

    26 parts1MIT
  • 2 layers36.1 × 21 mmLinux ch32v003, the printed circuit board in 3D

    Linux ch32v003

    tvlad1234/linux-ch32v003

    Linux on a $0.15 RISC-V microcontroller

    16 parts289MIT
  • 2 layers32 × 35 mmCh32v003-usbpd, the printed circuit board in 3D

    Ch32v003-usbpd

    eeucalyptus/ch32v003-usbpd

    Use the ch32v003 as a usb pd controller

    22 parts56MIT
  • 2 layers50.5 × 94.7 mmSwordOfSecretsUSBProd, the printed circuit board in 3D

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

    Tiny scarab

    Embeetle/tiny-scarab

    Tiny beetle board based on the CH32V003 10-cent chip.

    147 parts24MIT
  • 2 layers52.3 × 16.3 mmGeneric TSSOP20, the printed circuit board in 3D

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