My great old IBM AT keyboard has the DIN 5 pin connector. Apparently, from what I have read, I need to convert the keycodes sent by the keyboard to codes compatible with the newer computers in addition to changing the cable.
Do any of you here have experience with doing this?
A Leonardo can be configured to appear as a USB keyboard.
It could have a sketch uploaded to it to decode an AT keyboard.
If you need to do this, that would be one way to go.
Thanks. I did find this .CPP file that converts the raw code to characters. It might be a starting point where instead of converting to characters, maybe I could convert directly to what USB needs using a micro controller in between the keyboard and the USB plug. USB keyboard specs are confusing to me so far though. http://playground.arduino.cc/PS2Keyboard/Cpp
Keyboards communicate in keycodes rather than ascii, and the codes that a PC keyboard sends are NOT the same as those a USB keyboard sends (and neither one actually resembles the character it actually represents!)
It was just the first likely-looking result from a search; not an endorsement
Since an Arduino can speak PS/2, one of these adapters is probably also a good way to connect a modern USB keyboard or mouse to an Arduino (since the arduinos that can speak directly to USB devices are rare!)
westfw:
Since an Arduino can speak PS/2, one of these adapters is probably also a good way to connect a modern USB keyboard or mouse to an Arduino (since the arduinos that can speak directly to USB devices are rare!)
Drat. It must be late. What I MEANT to say was that they provide an easy way for an arduino to talk to the USB keyboard port of a modern computer without PS/2 ports. Easier that putting special code in the 16u2 chip, and perhaps easier than using a leonardo.
I have made or bought a dozen computers in the past 20 years, but I always keep my GoodOld Clickity Model M keyboards! I wish I kept another dozen of them. They're about $50 on Ebay.
I detest this mushy keyboard that came with the newer computer. I can easily type twice as fast with these sturdy old keyboards that have real buckling spring switches under the key caps because I make less mistakes.
pegwatcher:
I detest this mushy keyboard that came with the newer computer. I can easily type twice as fast with these sturdy old keyboards that have real buckling spring switches under the key caps because I make less mistakes.
I imagine most people here are with you. The slightly older Dell keyboards are pretty good - viz. my previous discussion/ diversion, though at a garage sale yesterday, I saw a Dell keyboard I really would not want; low profile keys with the six cursor keys in the wrong position that fouls up navigation.
I have made or bought a dozen computers in the past 20 years, but I always keep my GoodOld Clickity Model M keyboards! I wish I kept another dozen of them. They're about $50 on Ebay.
Seems to be a good market in computer "antiques". Whether for use, or exhibition. Either way, something in good condition can have value.