Skip to the content
2 layers80 × 75.6 mm2 nodes 2 hid, the printed circuit board in 3D

2 nodes 2 hid

Socolin/KVM-Switch1

A KVM Switch for any HID built with multiple Raspberry Pi Pico 2

Size
80 × 75.6 mm
Copper layers
2
Thickness
1.6 mm
Parts
20
Nets
65
Pads
224
Tracks, vias
129, 14
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
2 Sep 2026
Updated
22 Sep 2026

Overview

2 nodes 2 hid is an open-source printed circuit board by Socolin, from the Socolin/KVM-Switch repository on GitHub, published under the MIT licence. It is a 2-layer board of 80 × 75.6 mm with 20 parts on 65 nets, routed with 129 tracks and 14 vias.

It belongs with the RP2040 boards of this library.

README

README.md

KVM Switch

A KVM Switch for any HID device built with multiple Raspberry Pi Pico 2

Status

This project is still in development. The code is almost done, and I need to design the PCB.

Photo of the KVM Switch on a breadboard

So far I can use it as a KVM switch. I can select the computer to use with a keyboard shortcut. I was not able to test with exotic keyboard / mouse yet, but those should be supported.

The detailed documentation is available at doc/technical.md.

The remaining tasks are:

  • Test with 2 nodes (switch between 3 computers).
  • Design PCB for 1 node (and maybe for 2 nodes later)
  • Test with 3 hid devices.
  • Test TUD_OPT_HIGH_SPEED

Build

Prerequisites

Build

sh
git clone git@github.com:Socolin/KVM-Switch.git
cd KVM-Switch
git submodule update --init --recursive
mkdir build
cd build
cmake .. -DPICO_BOARD=pico2 -DPICO_SDK_PATH={PATH_TO_PICOSDK} -DPICOTOOL_FETCH_FROM_GIT_PATH={PATH_TO_PICOTOOL}
make -j
# Then output is in src/node and src/controller

Flash

To simplify flashing both, you can use the serial number of your pico with picotool info -a the serial will look like 46AA0E6255B66826

sh
picotool load --ser $PICO_PI_NODE_SERIAL -f -x src/node/kvm_node.uf2;
picotool load --ser $PICO_PI_CONTROLLER_SERIAL -f -x src/controller/kvm_controller.uf2;

Hardware Architecture

2 Nodes With 2 HIDs

See Schematic

2 Nodes With 3 HIDs

See Schematic

3 Nodes With 3 HIDs

See Schematic

Software Architecture

Diagram showing the software architecture of the project. Detailing which core execute which part and which the architecture of node and controller boards

Configuration UI

The KVM Switch can be configured through a web UI. It can be accessed with a web browser supporting WebUSB. You can access it at https://socolin.github.io/KVM-Switch/ (You need to use a browser supporting WebUSB) The code of the config UI is in tools/configurator

Web UI

Build

If you need to build the tool, you need Node.js 24 then run those commands

text
cd tools/configurator
npm install
npm run start

Then access it at http://localhost:4200 (You need to use a browser supporting WebUSB)

AI Usage

Basically, I see AI as a tool, and I have fun writing code, so:

  • All the code in src/ is written by a human.
  • AI was used as a learning assistant, to help understand and learn all the USB / HID / Electronic stuff.
  • AI was used to review the code.
  • AI was used to generate some test cases (but the test logic is human-made) (see AI-generated comments).

History

This project started to fix an issue I had with my current commercial KVM switch, that is the delay to switch between 2 computers; I wanted a shortcut to switch instantaneously. This project is also an opportunity for me to learn a some few things with electronic and discover dev on a microcontroller. Feel free to provide any feedback, as I'm still learning.

I first tried to use CH9329 and CH9350 to avoid all the USB parts and get this done quickly. However, during my testing I discovered that the CH9329 has a HID descriptor that does not expose all the features I wanted (like the mouse pan) and the CH9350 felt the same way. So I learnt a lot about HID descriptors, tinyUSB, etc… And, now this project should support any HID device (not just keyboard and mouse) like Gamepad etc… I kept the code I used to use those chips in src/legacy if anyone need this, feel free to use it

Parts

20
QtyValueFootprintReferences
415KResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderUSB_PD_DM1, USB_PD_DM2, USB_PD_DP1, USB_PD_DP2
422Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderUSB_R_DM1, USB_R_DM2, USB_R_DP1, USB_R_DP2
210 µFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderUSB_C1, USB_C2
2PicoMCU_RaspberryPi_and_Boards:RPi_Pico_SMD_THController1, Node1
2SW_PushButton_Switch_SMD:SW_Push_1P1T_NO_E-Switch_TL3301NxxxxxGQ_RST_0, Q_RST_1
2USB_AConnector_USB:USB_A_Molex_67643_HorizontalHID_DEV_1, HID_DEV_2

The 16 most common of 20 parts.

More from Socolin/KVM-Switch

2
  • 2 layers100 × 75.6 mm2 nodes 3 hid, the printed circuit board in 3D

    2 nodes 3 hid

    Socolin/KVM-Switch

    A KVM Switch for any HID built with multiple Raspberry Pi Pico 2

    26 parts1MIT
  • 2 layers120 × 85 mm3 nodes 3 hid, the printed circuit board in 3D

    3 nodes 3 hid

    Socolin/KVM-Switch

    A KVM Switch for any HID built with multiple Raspberry Pi Pico 2

    24 parts1MIT

Similar boards

  • 2 layers66.9 × 74.5 mmDeskHop Rev1, the printed circuit board in 3D

    DeskHop Rev1

    hrvach/deskhop

    Fast Desktop Switching Device

    20 parts7.9kGPL-3.0
  • 2 layers86.4 × 64.8 mmSlot machine, the printed circuit board in 3D

    Slot machine

    google/google-ctf

    Google CTF

    20 parts5.1kApache-2.0
  • 2 layers36.2 × 26.8 mmEsp32 minimal, the printed circuit board in 3D

    Esp32 minimal

    atopile/atopile

    Design circuit boards with code! ✨ Get software-like design reuse 🚀, validation, version control and collaboration in hardware; starting with electronics ⚡️

    20 parts4kMIT
  • 2 layers108.1 × 393.8 mmSweep compact ble, the printed circuit board in 3D

    Sweep compact ble

    davidphilipbarr/Sweep

    Sweep - a small promicro based keyboard inspired by the Ferris.

    20 parts2.1k
  • 2 layers26 × 15.9 mmTPS54340 Buck Regulator, the printed circuit board in 3D

    TPS54340 Buck Regulator

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    20 parts1.2k
  • 2 layers67.6 × 30.5 mmRgb to hdmi, the printed circuit board in 3D

    Rgb to hdmi

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    20 parts1kGPL-3.0
  • 2 layers44.3 × 28.7 mmLin bus adapter esp32, the printed circuit board in 3D

    Lin bus adapter esp32

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    20 parts915
  • 2 layers89.5 × 61.6 mmFreeDeck TH 2020-02, the printed circuit board in 3D

    FreeDeck TH 2020-02

    FreeYourStream/freedeck-hardware

    all the stuff you need to build your own FreeDeck

    20 parts772

Questions

How big is the 2 nodes 2 hid PCB?

It measures 80 × 75.6 mm and has 2 copper layers, 1.6 mm thick.

What parts does the 2 nodes 2 hid use?

20 parts. 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 2 nodes 2 hid KiCad files?

From the Socolin/KVM-Switch repository on GitHub, at the commit this page was made from: the board is kicad/2_nodes_2_hid/2_nodes_2_hid.kicad_pcb and its schematic kicad/2_nodes_2_hid/2_nodes_2_hid.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the 2 nodes 2 hid 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).