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

2 nodes 3 hid

Socolin/KVM-Switch1

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

Size
100 × 75.6 mm
Copper layers
2
Thickness
1.6 mm
Parts
26
Nets
67
Pads
240
Tracks, vias
171, 15
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
2 Sep 2026
Updated
22 Sep 2026

Overview

2 nodes 3 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 100 × 75.6 mm with 26 parts on 67 nets, routed with 171 tracks and 15 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

26
QtyValueFootprintReferences
615KResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderUSB_PD_DM1, USB_PD_DM2, USB_PD_DM3, USB_PD_DP1, USB_PD_DP2, USB_PD_DP3
622Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderUSB_R_DM1, USB_R_DM2, USB_R_DM3, USB_R_DP1, USB_R_DP2, USB_R_DP3
310 µFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderUSB_C1, USB_C2, USB_C3
3USB_AConnector_USB:USB_A_Molex_67643_HorizontalHID_DEV_1, HID_DEV_2, HID_DEV_3
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

The 22 most common of 26 parts.

More from Socolin/KVM-Switch

2
  • 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
  • 2 layers80 × 75.6 mm2 nodes 2 hid, the printed circuit board in 3D

    2 nodes 2 hid

    Socolin/KVM-Switch

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

    20 parts1MIT

Similar boards

  • 2 layers57.3 × 19 mm11ua, the printed circuit board in 3D

    11ua

    rene-dev/stmbl

    AC Servo Driver for STM32F4

    26 parts990GPL-3.0
  • 2 layers98 × 59.5 mmMCP23017 PCB, the printed circuit board in 3D

    MCP23017 PCB

    hackclub/OnBoard

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

    26 parts915
  • 2 layers142.9 × 98.5 mmCantor MX, the printed circuit board in 3D

    Cantor MX

    diepala/cantor

    Cantor keyboard, a 42 key diodeless split keyboard.

    26 parts756GPL-3.0
  • 2 layers103.8 × 50 mmGalagino pcb set, the printed circuit board in 3D

    Galagino pcb set

    harbaum/galagino

    A Galaga, Pac-Man and Donkey Kong arcade emulator for the ESP32

    26 parts558
  • 2 layers20.3 × 34.8 mmL0 ESP32, the printed circuit board in 3D

    L0 ESP32

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    26 parts546MIT
  • 2 layers40.6 × 50.8 mmWALTsm, the printed circuit board in 3D

    WALTsm

    google/walt

    A device for measuring latency of physical sensors and outputs on phones and computers

    26 parts474Apache-2.0
  • 2 layers158.5 × 75 mmDoj v2, the printed circuit board in 3D

    Doj v2

    kelu124/echomods

    Open source ultrasound processing modules and building blocks

    26 parts463

Questions

How big is the 2 nodes 3 hid PCB?

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

What parts does the 2 nodes 3 hid use?

26 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 3 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_3_hid/2_nodes_3_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 3 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).