Skip to content

Wired, physical button controlloer for a KVM using Raspberry Pi Zero

Notifications You must be signed in to change notification settings

andyloree/kvmswitcher_pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KVM Switcher Pi

Wired, physical switch (button) control for a KVM that does not have any control beyond keyboard hotkey combinations (e.g. scroll-lock twice + number key).

Overview

Using the Raspberry Pi Zero, the lowest cost, USB Human Interface Device (aka HID) emulation in the Pi lineup, a shell script on startup creates the necessary HID keyboard interface on boot (/dev/hidg0). Next the python controller.py is launched, which setups callback listeners to our Pi GPIO pins (29, 31, 33, 35) for button presses, then goes into a permanently signal interrupt loop. Upon a button press, the SwitchKVM() function is called with our button, which is mapped to sending the corresponding key sequence to our virtual keyboard (Scroll-Lock + Scroll-Lock + 1-4).

Diagram

Hardware

About

Wired, physical button controlloer for a KVM using Raspberry Pi Zero

Topics

Resources

Stars

Watchers

Forks