Hackaday.io Hackaday.io
Projects
Discover Contests Courses Stack
More
Courses Tutorials Events Hackerspaces Hackaday.com Tindie Marketplace
Sign up Log in
Close
0%
0%

USB switch for Keyboard/Mouse

Easy switching your keyboard and mouse between devices using keyboard shortcuts, based on rp2040

biemsterbiemster
Following Follow project
Liked Like project

Become a Hackaday.io member

Not a member? You should Sign up.

Already have an account? Log in.

Sign up with Github
Sign up with Twitter
OR
Forgot your password?

Just one more thing

To make the experience fit your profile, pick a username and tell us what interests you.

Pick an awesome username
hackaday.io/
Your profile's URL: hackaday.io/username. Max 25 alphanumeric characters.
Pick a few interests
Projects that share your interests
People that share your interests

We found and based on your interests.

Choose more interests.

OK, I'm done! Skip
Join this project
Similar projects worth following
714 views
1 comments
5 followers
2 likes
  • Description
  • Details
  • Files 0
  • Components 0
  • Logs 1
    • View all
  • Instructions 0
  • Discussion 1
714
1
5
2

Team (1)

  • biemsterbiemster

Join this project's team
hardware
ongoing project
RP2040 KVM switch usb

This project was created on 08/02/2023 and last updated 3 years ago.

Description

There are several machines in my shack that require keyboard/mouse input semi-regularly. For example a laptop and a workstation, Raspberry Pi's and older hardware like a 2010 iMac.
I find myself plugging in and out my USB keyboard/mouse on these devices way too much, which is not only annoying but will also wear out the connectors. This project will address that issue.
The plan is to give a Pi Pico a single connection to a keyboard/mouse (my keyboard has a built-in USB hub but an external hub should work too), and on the other side have multiple connections to the USB ports on the machines needing keyboard input.
On top of that I need those machines to initialize the USB peripheral when switched, so on top of a simple pass-through of the USB data the Pico also needs to perform some form of proper dis/connecting of the keyboard or hub. And analyse the USB packets for a key combo to switch the output ports and light an LED indicating which one is active.

Project Logs
Collapse

  • Interesting projects with code that might help

    biemster • 08/02/2023 at 13:50 • 0 comments

    First thing is to browse what code is already out there, these are the ones I found so far:

    https://github.com/ataradov/usb-sniffer-lite

    https://github.com/tana/pico_usb_sniffer

    https://github.com/sekigon-gonnoc/Pico-PIO-USB

    Especially that last project seems very versatile, if I end up needing more than simply switching the input (keyboard/mouse) packets to different pins on the Pico.

View project log

Enjoy this project?

Share

Discussions

Log In/Sign up to comment

Become a Hackaday.io Member

Create an account to leave a comment. Already have an account? Log In.

Sign up with Github
Sign up with Twitter
OR
ams1 wrote 06/07/2024 at 14:01 • point

Hi, great project - are you still working on this?

  Are you sure? yes | no

Similar Projects

another usb modification of the folding keyboards for the old Palm PDAs that puts all electronics inside the the folded case
Project Owner Contributor

Palm Portable Keyboard USB mod

johschneiderJohSchneider

Making a really old mechanical keyboard USB
Project Owner Contributor

USB adapter for Apple ADB keyboard

benchoffBenchoff

A mechanical keyboard in KiCad, manufactured in China
Project Owner Contributor

Mechanical Keyboard

travis-ayresTravis Ayres

Fits into the keyboard as though it were designed for this.
Project Owner Contributor

Keyboard with Apple Mouse Scroll Ball

gertlexGertlex

Does this project spark your interest?

Become a member to follow this project and never miss any updates

Going up?

About Us Contact Hackaday.io Give Feedback Terms of Use Privacy Policy Hackaday API

© 2026 Hackaday

Yes, delete it Cancel

Report project as inappropriate

You are about to report the project "USB switch for Keyboard/Mouse", please tell us the reason.

Send message

Your application has been submitted.

Remove Member

Are you sure you want to remove yourself as a member for this project?

Project owner will be notified upon removal.