EEVblog® Electronics Community Forum
Electronics => Projects, Designs, and Technical Stuff => Topic started by: rasteri on September 05, 2022, 06:09:30 pm
-
I've been working on a USB-to-PS/2 converter, so you can connect modern USB input devices to your old PCs.
It's based on the WCH CH559 MCU which is a great little part for this purpose, as it has two USB host ports.
It supports USB keyboards, mice, and game controllers. So you can plug in a joypad and it'll emulate keyboard presses, handy for games.
Source code and PCB/enclosure designs are here - https://github.com/rasteri/HIDman
-
Great! They can be bought for less than US$ 5.- anywhere.
-
I'd like the other way round to use modern mice and keyboards with older test equipment. This seems to be non existent...
-
I'd like the other way round to use modern mice and keyboards with older test equipment. This seems to be non existent...
It's exactly that, two USB hosts for modern peripherals and two PS/2 outputs.
-
Great! They can be bought for less than US$ 5.- anywhere.
You wish. What is sold are just two connectors with wires in between. Works only with keyboards and mice which already support both USB and PS/2 but only have USB connector.
-
Works only with keyboards and mice which already support both USB and PS/2 but only have USB connector.
Yeah while the first generation of USB keyboards/mice supported PS/2, they're getting increasingly rare.
With this you can even use one of those little wireless keyboard/mouse combined dongles
-
Interesting project, but ..
Where do you get PS2 to PS2 cables?
-
Interesting project, but ..
Where do you get PS2 to PS2 cables?
Anywhere really - I got mine from eBay. They were once quite commonly used with KVM switches.
-
Source code and PCB/enclosure designs are here - https://github.com/rasteri/HIDman
hi, great project! It can save x11 terminals (PS/2 only)!
can you include KiCad files?
I'd like to buy a CH559 evaluation board and load your firmware on it, and then use your KiCad project to design a thinner adapter.
-
can you include KiCad files?
Kicad files are in the hardware folder.
-
Great! They can be bought for less than US$ 5.- anywhere.
The $5 ones are passive adapters, as already explained. Active adapters to convert PS/2 peripherals to USB exist as well, but they’re in the $15-30 range. (Though I assume they can be had on aliexpress for pennies.)
This is the opposite: converting USB peripherals to PS/2 for use on old systems.
-
_____________________________________________________
| ___________________________________________________ |
|| ||
|| ||
|| ||
|| ||
|| ____________ ||
|| |x___________| ||
|| | | ||
|| | hAllo | ||
|| | | ||
|| |____________| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
||___________________________________________________||
|_____________________________________________________|
_________________________________________
| tektronix |
.___________________ | |
| | | |
| |==== PS/2 ==== | xterm 400S (*) |
| |==== PS/2 ==== | |
|___________________| |_________________________________________|
\
\_________USB_______________________________________________________
/ /
/usb /
_______________/____________________ /
/___________________________HHKB JP__\ /usb
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __/___
/____/_/_/_/_/_/_/_/_/_/_/_/_/_/_/___/_/ / /
/___/__/__/__/____//___/__/_/_/___/__/__/ /_____/
/_/_/_/
touch pad
Yeah, *this* is the evil plan, buahahahahahaah
(bad laugh, like Doctor Evil in Austin Power
or something)
(
;D )
-
I'd like the other way round to use modern mice and keyboards with older test equipment. This seems to be non existent...
It's exactly that, two USB hosts for modern peripherals and two PS/2 outputs.
Ah, I see. So the PS/2 has to be connected with two 1:1 cable with Mini-DIN at both ends. That wasn't clear to me from your first post (and I didn't viewed the Github yet).
Great job then!
-
|| | hAllo | ||
;D )
From your setup the shift key seems to be somewhat malfunctioning :-DD
-
|| | hAllo | ||
;D )
From your setup the shift key seems to be somewhat malfunctioning :-DD
;D
-
The $5 ones are passive adapters, as already explained. Active adapters to convert PS/2 peripherals to USB exist as well, but they’re in the $15-30 range. (Though I assume they can be had on aliexpress for pennies.)
This is the opposite: converting USB peripherals to PS/2 for use on old systems.
These are commercially available as well, but quite uncommon. Apparently people are more likely to preserve and use old keyboards than old computers? They also cost well above $5; Google finds this one in the > $30 price range:
(https://www.ihse.com/wp-content/uploads/2020/04/436-PU.png)
https://www.ihse.com/products/usb-ps2-converter/ (https://www.ihse.com/products/usb-ps2-converter/)
-
These are commercially available as well, but quite uncommon. Apparently people are more likely to preserve and use old keyboards than old computers?
Well, there really were some awesome keyboards in the past (but mostly before the PS/2 era), but I think a lot of the USB adapters get used for things other than ordinary keyboards. Think (really) expensive ergonomic keyboards, but also things like bar code scanners, "keyboard wedge" card readers, etc.
-
It's based on the WCH CH559 MCU which is a great little part for this purpose, as it has two USB host ports.
It supports USB keyboards, mice, and game controllers. So you can plug in a joypad and it'll emulate keyboard presses, handy for games.
Questions:
1. Is there a fixed assignment of keyb and mouse? How is this handled as PS/2 uses different pins/signals for keyb vs. mouse.
2. What about wireless desktops where one USB receiver handles both HID?
3. Did you source your chips from LCSC?
-
Apologies for my delay in replying.
1. Is there a fixed assignment of keyb and mouse? How is this handled as PS/2 uses different pins/signals for keyb vs. mouse.
Current firmware is fixed, but all data pins of the PS/2 connectors are wired up so it will be flexible. In fact I plan to allow combined Keyboard/Mouse output from one port for dual-use PS/2 inputs (like on some laptops)
2. What about wireless desktops where one USB receiver handles both HID?
They work great, I recommend their use :)
3. Did you source your chips from LCSC?
I've bought them in various places (ebay, aliexpress). Never come across a broken one.
-
Source code and PCB/enclosure designs are here - https://github.com/rasteri/HIDman
I'd like to ... design a thinner adapter.
In case you're still interested, I designed a thinner adapter for this...
https://github.com/serisman/HIDman-mini
-
I wonder how long it'll be until this product also shows up on Aliexpress... the active adapters that let you use PS/2 keyboard + mouse as a USB one are already <$5.
-
I wonder how long it'll be until this product also shows up on Aliexpress... the active adapters that let you use PS/2 keyboard + mouse as a USB one are already <$5.
The market for those is likely larger than the market for this.
-
Can I buy one of these from you? If not I'm not sure how I can buy the components to build this for myself. I would love a guide for a complete noob who has a soldering iron but doesn't want to buy a 3D printer.