geekhack

geekhack Projects => Making Stuff Together! => Topic started by: OfTheWild on Fri, 01 July 2016, 16:18:37

Title: Teensy in a Type-F - Pinouts not matching diagram?
Post by: OfTheWild on Fri, 01 July 2016, 16:18:37
Looking for someone to point me in the right direction here. I'm in the middle of cleaning/restoring, and adding a Teensy 2.0 to an IBM Type-F that has the AT plug into a connector like this: (courtesy of "Chloe" from this thread (https://geekhack.org/index.php?topic=5492.0))

(http://i727.photobucket.com/albums/ww280/switch-kitten/ibm%20pc%20xt/DSCN6084.jpg)

So i took out the ohm meter and found the corresponding locations on the plug itself based on this diagram...

The plug wires are:
Brown = #4 GND
Red = #5 VCC (+5v)
White = #2 Data
Black = #3 ????
theres also a separate earth wire thats screwed to the plate that goes to the outside of the plug "PE"

(http://www.kbdbabel.org/conn/kbd_connector_ps2.png)


I was all gung-ho till i hit that #3 pin out and now i'm not sure its even correct.
Title: Re: Teensy in a Type-F - Pinouts not matching diagram?
Post by: fohat.digs on Fri, 01 July 2016, 19:47:36
I don't know, but never trust color.

I have never direct wired an XT, but for the 122 it is:

Black   = +5V
White   = Ground
Red     = Date
Yellow  = Clock

The positions on the socket that you show should be the same, because you can plug the XT into the same socket as a standard DIN on the Soarer's/Teensy and it works fine.

You did notice that that diagram is for the socket and not the plug, right?

PS - ignore #3 except for the rare keyboard that needs the "reset" or whatever it is
Title: Re: Teensy in a Type-F - Pinouts not matching diagram?
Post by: OfTheWild on Fri, 01 July 2016, 20:47:12
You did notice that that diagram is for the socket and not the plug, right?


 :-[  :))

ok then mirrored... my connectivity testing resulted in:

Brown = VCC 5v
Red = GND
White =  Data
Black = Clock

 :thumb:

Do i need to connect the "PE" wire to something on the teensy or is it not required anymore?
Title: Re: Teensy in a Type-F - Pinouts not matching diagram?
Post by: fohat.digs on Fri, 01 July 2016, 20:51:04

Do i need to connect the "PE" wire to something on the teensy or is it not required anymore?

I don't think it is needed. I have never connected one, but if there is a ground connection in a cable I usually try to hook it back up to where it went before.
Title: Re: Teensy in a Type-F - Pinouts not matching diagram?
Post by: Melvang on Fri, 01 July 2016, 22:14:01
I would like to concur with the never trust colors.  Especially with IBM.  I have heard of someone pulling apart two XTs, at the same time and both boards had different colors patterns.
Title: Re: Teensy in a Type-F - Pinouts not matching diagram?
Post by: OfTheWild on Fri, 01 July 2016, 22:27:20
Yes, agreed, that is why i used a multimeter and verified them.
Title: Re: Teensy in a Type-F - Pinouts not matching diagram?
Post by: OfTheWild on Sat, 02 July 2016, 17:20:46
And here we are, typing this post with my "new" Type-F with a Teensy 2.0!

Process:

1. Take it apart and clean it. Chloe's thread (https://geekhack.org/index.php?topic=5492.0)
2. Sand plate, prime and paint to my liking.
3. Using the ohm meter on my multimeter, i identified which wires went to the pins on the AT connector as per log above
4. Soldered the wires to the correct ports on the Teensy per Soarer's thread (https://geekhack.org/index.php?topic=17458.0)
5. Loaded the hex file from soarers zip that matched the teensy board which in my case said ATMEGA32U4 CHIP on the packaging
6. Plugged it in and it works.

Now i just need to figure out how to change some key mapping and build some function layer stuff so its actually usable lol

(http://imgur.com/4EeYkdS.jpg)

flash=on so you can see the funky teal color. I will make a custom cable to match.
(http://imgur.com/TSUK4Iv.jpg)
Title: Re: Teensy in a Type-F - Pinouts not matching diagram?
Post by: fohat.digs on Sat, 02 July 2016, 19:31:14

Now i just need to figure out how to change some key mapping

Wcass describes an easy clean method in post #560 of Soarer's thread.
Title: Re: Teensy in a Type-F - Pinouts not matching diagram?
Post by: OfTheWild on Sun, 03 July 2016, 17:18:14

Now i just need to figure out how to change some key mapping

Wcass describes an easy clean method in post #560 of Soarer's thread. (https://geekhack.org/index.php?topic=17458.msg708153#msg708153)

Ok cool, thanks. I will play with it some more later!