Enabling an IBM 122-key terminal keyboard non-invasively?
- Hypersphere
- Location: USA
- Main keyboard: Silenced & Lubed HHKB (Black)
- Main mouse: Logitech G403
- Favorite switch: Topre 45/55g Silenced; Various Alps; IBM Model F
- DT Pro Member: 0038
I have an IBM 122-key terminal keyboard that I have used to harvest some keycaps. However, the keyboard appears to be in good shape, and I would like to try using it as a computer keyboard. I am aware of somewhat invasive procedures using Soarer's Converter and a Teensy. However, at present, I am looking for as non-invasive and simple a procedure as possible. Part of my rationale is that I would like to have a method that uses external adapters and converters so that such keyboards could be tested without making any internal changes. Then, perhaps later, I might be interested in a deeper revival and reprogramming of the board(s).
The first 122-key terminal keyboard that I have is an IBM F1 Model M, Part Number 1390702, with a big right-angled 240-degree DIN 5 connector.
Is it possible to get this working with a modern computer by using some combination of commercially available adapters and converters? If so, I would appreciate advice on the specific products to acquire. If not, I would be glad to get advice on how to proceed with procedures involving some rewiring and perhaps soldering. Thanks!
The first 122-key terminal keyboard that I have is an IBM F1 Model M, Part Number 1390702, with a big right-angled 240-degree DIN 5 connector.
Is it possible to get this working with a modern computer by using some combination of commercially available adapters and converters? If so, I would appreciate advice on the specific products to acquire. If not, I would be glad to get advice on how to proceed with procedures involving some rewiring and perhaps soldering. Thanks!
- scottc
- ☃
- Location: Remote locations in Europe
- Main keyboard: GH60-HASRO 62g Nixies, HHKB Pro1 HS, Novatouch
- Main mouse: Steelseries Rival 300
- Favorite switch: Nixdorf 'Soft Touch' MX Black
- DT Pro Member: -
You're in luck - you can make a Soarer converter that goes straight from the IBM terminal output DIN 5, so no destructive changes to the innards of the M. You just need a "female" DIN 5, which are apparently pretty cheap on eBay: €6 shipped on my local site, probably even cheaper in the USA.
You can also just do a straight controller swap, taking one from another Model M, but that will leave you with some dead keys. I did that with a 103-key terminal M and it worked fine, apart from the extra numpad key which does nothing.
You can also just do a straight controller swap, taking one from another Model M, but that will leave you with some dead keys. I did that with a 103-key terminal M and it worked fine, apart from the extra numpad key which does nothing.
- Muirium
- µ
- Location: Edinburgh, Scotland
- Main keyboard: HHKB Type-S with Bluetooth by Hasu
- Main mouse: Apple Magic Mouse
- Favorite switch: Gotta Try 'Em All
- DT Pro Member: µ
Funny, my Soarer's Converter sounds a lot like what you're looking for. It lives in this little multi-mode box I made:

The (vintage 1960s) knob selects between a 5 pin DIN (AT/XT), 5 pin Mini-DIN (PS/2), and a terminal (RJ45) socket. I have boards which need each one of them, including my own 122 key terminal M. Just select, plug, and go.
Googling up the 1390702 finds this recently sold specimen from the evocatively named town of Hurricane, Utah:
http://www.ebay.com/itm/IBM-Model-M-139 ... 1119273122
So far so good. If it's yours (or just like it) then this is the troublesome part:
5 pin DIN? Well, yes and no. This is the kind on every XT and AT keyboard I've ever seen, and the port I built into my converter:

But the 1390702's plug is this variant:

Not the same. The pins are further apart than on XT/AT, covering more than 180º. The Wikipedia agrees that it's a DIN plug, but that's because there are many kinds.
So, what's it matter? Well, it's not intended to plug into an XT or AT socket. It could speak a different protocol. But there is at least a chance that this keyboard is XT or AT, in which case Soarer's converter would still talk to it if appropriately wired. Hooking it up would be a bit of a risk though: to a $16 Teensy more than the keyboard. This might just be the 122 key terminal that got away.
Scott's right about sockets being cheap (I've gotten them locally for £1.69) and the soldering required to make your own converter is just four wires. The controller swap might be the better idea in this case. Got a picture? I was wrong only yesterday by suggesting such a thing for a Model F before learning that not all of them are swappable.
Here's my 122 key, by the way. In yellow sunlight (it's actually nice and neutral coloured like my other Ms) and in its original ISO layout:

It's one of the later versions. Note the shorter upper deck that only extends as far as the backspace key.
Actually, scratch that. I see the one I presume to be yours has a 1991 date on its label. Mine's from 1990. Oh IBM, did you ever not mess around?
The (vintage 1960s) knob selects between a 5 pin DIN (AT/XT), 5 pin Mini-DIN (PS/2), and a terminal (RJ45) socket. I have boards which need each one of them, including my own 122 key terminal M. Just select, plug, and go.
Googling up the 1390702 finds this recently sold specimen from the evocatively named town of Hurricane, Utah:
http://www.ebay.com/itm/IBM-Model-M-139 ... 1119273122
So far so good. If it's yours (or just like it) then this is the troublesome part:
5 pin DIN? Well, yes and no. This is the kind on every XT and AT keyboard I've ever seen, and the port I built into my converter:

But the 1390702's plug is this variant:

Not the same. The pins are further apart than on XT/AT, covering more than 180º. The Wikipedia agrees that it's a DIN plug, but that's because there are many kinds.
So, what's it matter? Well, it's not intended to plug into an XT or AT socket. It could speak a different protocol. But there is at least a chance that this keyboard is XT or AT, in which case Soarer's converter would still talk to it if appropriately wired. Hooking it up would be a bit of a risk though: to a $16 Teensy more than the keyboard. This might just be the 122 key terminal that got away.
Scott's right about sockets being cheap (I've gotten them locally for £1.69) and the soldering required to make your own converter is just four wires. The controller swap might be the better idea in this case. Got a picture? I was wrong only yesterday by suggesting such a thing for a Model F before learning that not all of them are swappable.
Here's my 122 key, by the way. In yellow sunlight (it's actually nice and neutral coloured like my other Ms) and in its original ISO layout:
It's one of the later versions. Note the shorter upper deck that only extends as far as the backspace key.
Actually, scratch that. I see the one I presume to be yours has a 1991 date on its label. Mine's from 1990. Oh IBM, did you ever not mess around?
- Hypersphere
- Location: USA
- Main keyboard: Silenced & Lubed HHKB (Black)
- Main mouse: Logitech G403
- Favorite switch: Topre 45/55g Silenced; Various Alps; IBM Model F
- DT Pro Member: 0038
Thanks, Scottc! Could you please refer me to a detailed guide showing exactly how to make the Soarer converter? Then I just need to find a 240-degree DIN 5 receptacle and revive the soldering skills that I acquired many years ago.scottc wrote:You're in luck - you can make a Soarer converter that goes straight from the IBM terminal output DIN 5, so no destructive changes to the innards of the M. You just need a "female" DIN 5, which are apparently pretty cheap on eBay: €6 shipped on my local site, probably even cheaper in the USA.
You can also just do a straight controller swap, taking one from another Model M, but that will leave you with some dead keys. I did that with a 103-key terminal M and it worked fine, apart from the extra numpad key which does nothing.
- scottc
- ☃
- Location: Remote locations in Europe
- Main keyboard: GH60-HASRO 62g Nixies, HHKB Pro1 HS, Novatouch
- Main mouse: Steelseries Rival 300
- Favorite switch: Nixdorf 'Soft Touch' MX Black
- DT Pro Member: -
No problem. Soarer has top-notch docs included with his converter here:
http://deskthority.net/workshop-f7/xt-a ... 20to%20ps2
Muirium is right about the connector, though. The 240-degree one might be more difficult to find. Best of luck!
http://deskthority.net/workshop-f7/xt-a ... 20to%20ps2
Muirium is right about the connector, though. The 240-degree one might be more difficult to find. Best of luck!
- Hypersphere
- Location: USA
- Main keyboard: Silenced & Lubed HHKB (Black)
- Main mouse: Logitech G403
- Favorite switch: Topre 45/55g Silenced; Various Alps; IBM Model F
- DT Pro Member: 0038
Muirium, thanks for the detailed reply! Yes, your detective work is good. The board I just acquired is the one from Hurricane, Utah. Virgin Valley Recycling to be exact!
I like your retro switch box. Could you send me a circuit diagram? Hand-drawn and scanned would be fine.
Yes, my DIN 5 is the 240-degree variety rather than the 180-degree as found in XT/AT connectors, which reportedly has the pin assignments shown below ("shield" is misspelled; the diagram is from a Japanese site): As compared to the pin assignments on a standard AT DIN 5 connector (with thanks to http://imgur.com/a/sHkz4): Therefore, it appears that an adapter could be built easily, being mindful of the correct pin assignments. Does this mean that by using only an adapter and connecting to a computer with an AT to PS/2 converter that the keyboard would function? Does the addition of a Soarer Converter provide (1) the ability to convert the signal from AT or PS/2 to USB and (2) the ability to reprogram the keyboard?
A switch box like yours, perhaps with an additional 240-degree DIN 5 connector, would give me the ability to test keyboards, and I might want to install converters in them for possible resale. However, for my own use, I think I would want to stick with the IBM SSK, which has the best layout for the needs of my "day job". Someday, it would be fun to undertake a major conversion in order to have capacitive BS switches (as in a Model F) and an ANSI/HHKB layout.
I like your retro switch box. Could you send me a circuit diagram? Hand-drawn and scanned would be fine.
Yes, my DIN 5 is the 240-degree variety rather than the 180-degree as found in XT/AT connectors, which reportedly has the pin assignments shown below ("shield" is misspelled; the diagram is from a Japanese site): As compared to the pin assignments on a standard AT DIN 5 connector (with thanks to http://imgur.com/a/sHkz4): Therefore, it appears that an adapter could be built easily, being mindful of the correct pin assignments. Does this mean that by using only an adapter and connecting to a computer with an AT to PS/2 converter that the keyboard would function? Does the addition of a Soarer Converter provide (1) the ability to convert the signal from AT or PS/2 to USB and (2) the ability to reprogram the keyboard?
A switch box like yours, perhaps with an additional 240-degree DIN 5 connector, would give me the ability to test keyboards, and I might want to install converters in them for possible resale. However, for my own use, I think I would want to stick with the IBM SSK, which has the best layout for the needs of my "day job". Someday, it would be fun to undertake a major conversion in order to have capacitive BS switches (as in a Model F) and an ANSI/HHKB layout.
- scottc
- ☃
- Location: Remote locations in Europe
- Main keyboard: GH60-HASRO 62g Nixies, HHKB Pro1 HS, Novatouch
- Main mouse: Steelseries Rival 300
- Favorite switch: Nixdorf 'Soft Touch' MX Black
- DT Pro Member: -
I assume the keyboard speaks the IBM terminal protocol, so you'll definitely need Soarer's converter for that. Soarer's will do both of what you asked - it outputs directly to USB.rjrich wrote:Therefore, it appears that an adapter could be built easily, being mindful of the correct pin assignments. Does this mean that by using only an adapter and connecting to a computer with an AT to PS/2 converter that the keyboard would function? Does the addition of a Soarer Converter provide (1) the ability to convert the signal from AT or PS/2 to USB and (2) the ability to reprogram the keyboard?
- Muirium
- µ
- Location: Edinburgh, Scotland
- Main keyboard: HHKB Type-S with Bluetooth by Hasu
- Main mouse: Apple Magic Mouse
- Favorite switch: Gotta Try 'Em All
- DT Pro Member: µ
Good to see you found the pinout. So long as you get VCC (also called +5V) and GND around the right way, you should be safe not to burn anything out. The other connections aren't as troublesome.
Now, about protocols: many different things share the general pattern of 4 connections and 5 volts. Soarer's converter uses this fact to speak so many "languages". IBM keyboards came in XT, AT and terminal varieties using incompatible protocols. Plug an XT only keyboard (like my IBM PC/XT Model F) into a DIN>PS/2 adapter and it doesn't work. The voltages are right but the protocols are wrong. (Those 5 pin DIN to Mini DIN adapters only work for AT, which is electrically identical to PS/2; as IBM simply shrunk the connector.) Soarer's Converter, however, speaks them all. You just have to hook the 4 lines up right for each of them, and the Teensy does all the rest. Including USB: as that is even how you put the firmware onto it in the first place.
So to answer your question: the reason to build an external Soarer box like I did is both for compatability as well as all the programmable super powers it packs. As long as your 122 key talks XT, AT or IBM's terminal protocol, Soarer's Converter will understand it and work fine.
In fact you can even ask it which one is active and it will tell you. I use this feature to automatically select between different remaps for different keyboards. I'm a huge fan of Soarer's work for good reason, you know!
Now, about protocols: many different things share the general pattern of 4 connections and 5 volts. Soarer's converter uses this fact to speak so many "languages". IBM keyboards came in XT, AT and terminal varieties using incompatible protocols. Plug an XT only keyboard (like my IBM PC/XT Model F) into a DIN>PS/2 adapter and it doesn't work. The voltages are right but the protocols are wrong. (Those 5 pin DIN to Mini DIN adapters only work for AT, which is electrically identical to PS/2; as IBM simply shrunk the connector.) Soarer's Converter, however, speaks them all. You just have to hook the 4 lines up right for each of them, and the Teensy does all the rest. Including USB: as that is even how you put the firmware onto it in the first place.
So to answer your question: the reason to build an external Soarer box like I did is both for compatability as well as all the programmable super powers it packs. As long as your 122 key talks XT, AT or IBM's terminal protocol, Soarer's Converter will understand it and work fine.
In fact you can even ask it which one is active and it will tell you. I use this feature to automatically select between different remaps for different keyboards. I'm a huge fan of Soarer's work for good reason, you know!
Last edited by Muirium on 06 Apr 2014, 17:33, edited 1 time in total.
- Hypersphere
- Location: USA
- Main keyboard: Silenced & Lubed HHKB (Black)
- Main mouse: Logitech G403
- Favorite switch: Topre 45/55g Silenced; Various Alps; IBM Model F
- DT Pro Member: 0038
Which Teensy should be used for such a project? All versions appear to be roughly the same price and physical size, although Teensy++2.0 is longer than the others. Are the newer versions backward compatible?
- Muirium
- µ
- Location: Edinburgh, Scotland
- Main keyboard: HHKB Type-S with Bluetooth by Hasu
- Main mouse: Apple Magic Mouse
- Favorite switch: Gotta Try 'Em All
- DT Pro Member: µ
Good question. Standard Teensy 2 is the one you want. Teensy 2++ has extra pins which aren't necessary for this job. While Teensy 3 is a different architecture entirely.
- Hypersphere
- Location: USA
- Main keyboard: Silenced & Lubed HHKB (Black)
- Main mouse: Logitech G403
- Favorite switch: Topre 45/55g Silenced; Various Alps; IBM Model F
- DT Pro Member: 0038
Thanks! Teensy 2 it is!
-
- Location: Houston, Texas
- Main keyboard: IBM Bigfoot
- Main mouse: CST trackball
- Favorite switch: IBM Model F
- DT Pro Member: -
When I saw that diagram, I thought there must be a mistake. What electrical engineer in his right mind would use black for positive voltage? So I took my similar IBM terminal keyboard apart and traced the connections to the ICs on the controller board. Sure enough, black is positive.rjrich wrote:Yes, my DIN 5 is the 240-degree variety rather than the 180-degree as found in XT/AT connectors, which reportedly has the pin assignments shown below ("shield" is misspelled; the diagram is from a Japanese site):

- Hypersphere
- Location: USA
- Main keyboard: Silenced & Lubed HHKB (Black)
- Main mouse: Logitech G403
- Favorite switch: Topre 45/55g Silenced; Various Alps; IBM Model F
- DT Pro Member: 0038
Thanks for corroborating this! It would be bad to reverse, e.g., ground and +5V.quantalume wrote:When I saw that diagram, I thought there must be a mistake. What electrical engineer in his right mind would use black for positive voltage? So I took my similar IBM terminal keyboard apart and traced the connections to the ICs on the controller board. Sure enough, black is positive.rjrich wrote:Yes, my DIN 5 is the 240-degree variety rather than the 180-degree as found in XT/AT connectors, which reportedly has the pin assignments shown below ("shield" is misspelled; the diagram is from a Japanese site):
You should be safe hooking it up that way.
- Muirium
- µ
- Location: Edinburgh, Scotland
- Main keyboard: HHKB Type-S with Bluetooth by Hasu
- Main mouse: Apple Magic Mouse
- Favorite switch: Gotta Try 'Em All
- DT Pro Member: µ
Did you get anywhere with this, RJ? Vsev's 122 key Ms are the same connector:
http://deskthority.net/photos-videos-f8 ... ml#p162575
I've got XT, AT, PS/2 and RJ45 boards running on my converter, but none of this "wide angle DIN" variety. (A name I just made up.)
http://deskthority.net/photos-videos-f8 ... ml#p162575
I've got XT, AT, PS/2 and RJ45 boards running on my converter, but none of this "wide angle DIN" variety. (A name I just made up.)
- Compgeke
- Location: Fairfield, California, USA
- Main keyboard: IBM Model M 1391401
- Main mouse: Coolermaster Recon
- Favorite switch: IBM Buckling Spring
- DT Pro Member: 0040
I ran into that the other night on a late 80s stereo receiver. For some reason the LCD uses a couple small lights for the backlight and one's burnt out, but they apparently used black for +7.5V and red for ground. Found that out when trying to find the voltage and the black hit the case and threw the power supply into protection mode. I love when people follow standards.quantalume wrote:When I saw that diagram, I thought there must be a mistake. What electrical engineer in his right mind would use black for positive voltage? So I took my similar IBM terminal keyboard apart and traced the connections to the ICs on the controller board. Sure enough, black is positive.You should be safe hooking it up that way.
-
- Location: Houston, Texas
- Main keyboard: IBM Bigfoot
- Main mouse: CST trackball
- Favorite switch: IBM Model F
- DT Pro Member: -
I've taken about half a dozen M-122 and F-122 terminal keyboards apart in the last month, and they all used the same color code, regardless of the connector at either end of the cable. Black = +5, white = ground, yellow = clock, red = data.Muirium wrote:Did you get anywhere with this, RJ? Vsev's 122 key Ms are the same connector:
http://deskthority.net/photos-videos-f8 ... ml#p162575
I've got XT, AT, PS/2 and RJ45 boards running on my converter, but none of this "wide angle DIN" variety. (A name I just made up.)
-
- Main keyboard: IBM Model F AT
- Main mouse: Logitech M310 (Wireless)
- Favorite switch: Buckling Spring
- DT Pro Member: -
I just built an external converter using a female 5 pin DIN 240 degree connector a couple of days ago for my terminal Model F. A cinch to build and works a treat. I purchased the connector here. Wire it to the solder pads on the Teensy via Soarer's diagram, load Soarer's firmware, and you're in business.
- Hypersphere
- Location: USA
- Main keyboard: Silenced & Lubed HHKB (Black)
- Main mouse: Logitech G403
- Favorite switch: Topre 45/55g Silenced; Various Alps; IBM Model F
- DT Pro Member: 0038
Thanks! I've been looking for just such a connector!1391401 wrote:I just built an external converter using a female 5 pin DIN 240 degree connector a couple of days ago for my terminal Model F. A cinch to build and works a treat. I purchased the connector here. Wire it to the solder pads on the Teensy via Soarer's diagram, load Soarer's firmware, and you're in business.
- fohat
- Elder Messenger
- Location: Knoxville, Tennessee, USA
- Main keyboard: Model F 122-key terminal
- Main mouse: Microsoft Optical Mouse
- Favorite switch: Model F Buckling Spring
- DT Pro Member: 0158
The easy way is to get one of these.
http://www.ebay.com/itm/NEW-Soarers-Con ... 3f3f4cbdd4
I have a couple of 240 degree sockets that I could sell, either cable-end or face-mount.
Send me a PM, especially if you are in the US.
http://www.ebay.com/itm/NEW-Soarers-Con ... 3f3f4cbdd4
I have a couple of 240 degree sockets that I could sell, either cable-end or face-mount.
Send me a PM, especially if you are in the US.
-
- Main keyboard: IBM Model F AT
- Main mouse: Logitech M310 (Wireless)
- Favorite switch: Buckling Spring
- DT Pro Member: -
If there's any downside to that adapter it's that it doesn't have a reset switch, though it's probably irrelevant considering there likely won't be any future firmware updates.fohat wrote: The easy way is to get one of these.
http://www.ebay.com/itm/NEW-Soarers-Con ... 3f3f4cbdd4
-
- Location: UK
- Main keyboard: Filco ZERO green alps, Model F 122 Terminal
- Main mouse: Ducky Secret / Roller Mouse Pro 1
- Favorite switch: MX Mount Topre / Model F Buckling
- DT Pro Member: 0167
A cheap solution would be a pro micro.
http://deskthority.net/workshop-f7/how- ... t8448.html
I need another as i snapped the connector off mine
and i am using it with a none standard keyboard so no pre made 
I would get the Soarers converter off ebay. You get what you pay for and they are awsome!
http://deskthority.net/workshop-f7/how- ... t8448.html
I need another as i snapped the connector off mine


I would get the Soarers converter off ebay. You get what you pay for and they are awsome!
-
- Main keyboard: Razor Black Widdow
- Main mouse: RAT 9
This post is a long time after this thread but maybe someone is reading.
I have and IBM 122 type f with a 240 degree din-5 on the end of a fixed cable.
I want to use this on an XT (5160) which has a standard din-5.
I am not looking for ps\2 or usb as I am more than happy with my current usb keyboard.
This is simply to be able to run a 122 on my xt.
Is this as simple as a plug swap making the correct connections?
I have and IBM 122 type f with a 240 degree din-5 on the end of a fixed cable.
I want to use this on an XT (5160) which has a standard din-5.
I am not looking for ps\2 or usb as I am more than happy with my current usb keyboard.
This is simply to be able to run a 122 on my xt.
Is this as simple as a plug swap making the correct connections?
- hellothere
- Location: Mesa, AZ USA
- Main keyboard: Lots
- Main mouse: CST2545W-RC
- Favorite switch: TopreAlpsHallEffectTopreAlpsHallEffectTopreAlps
You're going to have to still have some kind of converter, as your keyboard speaks AT and the computer understands XT. That's why there are bunches of vintage keyboards that have XT/AT switches on them.
I don't know, off the top of my head, if the Soarer's Converter does that.
I don't know, off the top of my head, if the Soarer's Converter does that.
-
- Location: Finland
- DT Pro Member: -
I don't think that there are any converters that would do that out of the box, but you could do it with two converters. First make Soarers's converter for the F122. That would give you USB out of F122. Then use USB to XT converter for connecting to the 5160. Not really elegant solution, but it should work.
First hit with googling for USB to XT converter: https://www.ebay.com/itm/USB-and-PC-AT- ... 3516239687
And there are couple of project pages for making one yourself, like https://github.com/jedimatt42/teensyUSBtoXT and http://www.ti99-geek.nl/Projects/kbgeneve/kbgeneve.html
First hit with googling for USB to XT converter: https://www.ebay.com/itm/USB-and-PC-AT- ... 3516239687
And there are couple of project pages for making one yourself, like https://github.com/jedimatt42/teensyUSBtoXT and http://www.ti99-geek.nl/Projects/kbgeneve/kbgeneve.html