how to turn a old pc2 keyboard into a newer keyboard?

Hello i been searching around on how to adapt a old ps2 keyboard i love so much because it is a old 1985 IBM keyboard and be able to do differnt functions with it. One problem I'm having is I'm always end up hitting the windows key by mistake a lot. I was thinking of be able to add a arduino to the end of my keyboard plug and be able to relay it somehow through pass it to the computer and add some commands to the arduino so if i hit like the windows key on my keyboard nothing happens. and be able to push 2 keys on the keyboard and releasing that window key so i can turn that function back on.

The problem is everything i found is for emulating keyboards not really passing through the keyboard to the arduino and from the arduino to the computer. I hope this is making some sense. One other thing my keyboard doesn't have the F12 function key either. It would be nice i can hit 2 keys on the keyboard to activated that function beofre window bootup because i have two hard drives on my computer each one with a different os on it.

I know i know i can buy a newer keyboard and there are some great ones out there. But not like this one I had it a very long time over 20 years and it never failed on me not once. I would like to add some newer features to it without having to Rip it apart and put a newer micro processor in it.

My question is if anyone has any idea on how i can get started or where to look please let me know.

Joseph

Wiki has some information on the data format , voltages etc
You’ll need to read that in , filter out the commands you don’t want and add ones you do want then transmit onwards.
Probably easier to alter the keyboard driver in the PC .

Probably a bit hard , think I’d put it in a glass case and buy a new one.

A few years ago I built a CW (Morse code) keyer using an Arduino Nano and a PS2 keyboard. It was built from an article in the May 2015 CQ magazine (Amateur radio).

It uses this library: PS2 library.

And it does work. Be aware the keyboard need 275ma at 5 volts to operate. I purchase a bag of PS2 female connectors on Ebay.

Good luck,
Paul

josephchrzempiec:
One problem I'm having is I'm always end up hitting the windows key by mistake a lot.

There should be some software available for the PC itself to do that far more easily.

Paul_B there might be. But i would like to learn as i go along and thinking of cool future arduino projects that can come from this and share with everyone. I can't do that just in software. So i thought it be cool to make a arduino project out of this.

Hmm. "Sinatra syndrome" strikes again! :grinning:

Sure why not my keyboard needs it lol

A library is available for a 32u4 to emulate a USB keyboard.

Reading a PS/2 keyboard is well documented.

https://playground.arduino.cc/Main/PS2Keyboard/

Just a matter of connecting to the two into one sketch and converting ps2 key codes to USB keyboard HID reports.

Or for a complete project (not Arduino though) see this.

Thank you all for the help. This help me a lot to get started on what i need to do. Again thank you.

Joseph