DIY Old Keyboard 5-pin DIN to PS2 Converter




About: Masters in Chemical Engineering University of Nottingham Experienced Process Engineer

Last Week at 2am in the night in the midst of submitting an important assignment suddenly many of my keyboard keys turned faulty.
As all shops were closed I had to thought of some way.
In my junk I found my old DIN-5 keyboard for my old Pentium II
I took me an hour to convert it to PS2

Step 1:

My Old Keyboard with a DIN-5 pin

Step 2:

I cut the old and my existing keyboard wires

Step 3:

With the help of a Multimeter I determined pin no. with its corresponding colour

Step 4:

Join the wires with each other with respect to its purpose not its colour i-e clock with clock, data with data etc.

Step 5:

Tape it up and
Your DIY PS2 keyboard.



    • Woodworking Contest

      Woodworking Contest
    • Fandom Contest

      Fandom Contest
    • Classroom Science Contest

      Classroom Science Contest

    17 Discussions


    2 years ago

    Sorry, I seemed to have vanished from Instructables for so many years and I have seen many messages in inbox. A lot of people seem to be confused regarding the how to determine the function of the pins. Please refer to Step 4. The function of each pin is fixed but the colours would vary so the main logic is finding which colour wire corresponds to which pin (so you dont need to find the function of each). I did a continuity test or a beep test with the multimeter. Dont worry if you dont have a multimeter. Just take a small led/bulb and a 3V battery with wires. That will work too. Do the same with the PS/2 connector and join the wires and it would work as a PS2 keyboard. PS/2 to USB connections are very cheaply available for a £1 or so your old keyboard can be an emergency backup for your USB keyboard. Also as I mentioned it was kind of a late night idea so I just joined up the wires and not soldered them so it looks a bit rough. I know :) Hope this helps.


    2 years ago

    Hello :)

    Well done, its very usefull project :)

    after you did that, how it recognize your keyboard (as usb HID or as PS/2 keyboard)?

    1 reply

    Reply 2 years ago

    Apologies for late reply. As a PS/2 Keyboard. I am glad you like it :)


    3 years ago

    Very good idea but it is better don't cut the cable . you can unscrew the back of your keyboards and change the whole cable with socket. of course you should do your modification at end side of your cable . You can attache new socket or solder the wires.


    3 years ago on Step 5

    I am having one keyboard of M/s i Key with two PS/2 connector one for keyboard other for mouse.They are connected to single PS/2 port through adaptor. Recently i purchased other keyboard with same company but with different model no i.e. DU-5K-TP2 instead of DU-5K-TP but this keyboard is not working with existing adaptor. Please help me.....One difference is that pin no. 3 of both PS/2 connectors are shorted from keyboard itself......this was not thetre in earlier one


    3 years ago

    I have a 5 pin mini din male adapter with a slightly different configuration. My male adapter 2 pins on left side, a small rectangle in the middle, and 3 pins on right side.
    Assuming that pin number sequence follows bottom left to bottom right, pin 1 would be first pin on left and pin 5 would be last pin on right, is it safe to assume that my pin 1 and your pin one have the same purpose? If not, how do you determine each pin's function?


    4 years ago

    can you just tell me what keyboard color wire went to next keyboard color wire

    3 replies

    Reply 4 years ago on Introduction

    Hi! Do not connect the wires with respect to the colour, as they are not standardized worldwide. They should be connected w.r.t their purpose. Just follow the above instructions. If you still need help, please let me know.


    5 years ago on Introduction

    Tthank you for helping me a lot :D Very useful instructable !!


    5 years ago

    Well done - simple but very practical!! That's why I love Instructables :-)