

- Ps2 keyboard to usb converter adapter how to#
- Ps2 keyboard to usb converter adapter serial#
- Ps2 keyboard to usb converter adapter pro#
Also you can get a complete list of PS/2 scancodes from the library by opening either 'PS2KeyAdvanced.h' or 'PS2Ke圜ode.h' files from '\Documents\Arduino\libraries\PS2KeyAdvanced\src\' This "make" and "break" scancode system and "Code" which is the isolated(c & 0xFF) scancode of either the key-press or key-release plays an important part in PS/2 to USB conversion and I recommend you study the other 2 examples that comes with library to get a better understanding if you are planing on improving or changing(remapping keys to different layouts) the final sketch.Here I have attached a modified version of the SimpleTest.ino from PS2KeyAdvanced library examples with updated clock and data pins and also a "make" and "break" representation.
Ps2 keyboard to usb converter adapter pro#
But don't worry you can't actually brick your UNO/Mega by doing this it is always reversible.Īlso by any chance if you have an Arduino that already has a USB-HID capability (Arduino Pro Micro or Leonardo,etc do a google search) you can forget this instructable ever existed go directly here to save yourself from a world of trouble, just kidding!īefore you go all hands on deck first make sure everything is working on keyboard and library. This is because we will be over-writing the firmware on its USB interface chip(little guy near the USB port Atmega8U2 and 16U2 depending on the revision).
Ps2 keyboard to usb converter adapter serial#
By that I mean you can't use the Serial communications and you can't reprogram it via the USB. When you are using your UNO/Mega as a USB-HID device(Not limited to keyboard, it can even be a mouse,joystick,etc.) you will temporarily loose its functions as a Arduino. Then you have come to the right place :)įair warning before we get into it.


Ps2 keyboard to usb converter adapter how to#
But again if you have already bought it then this instructables is gonna teach you how to accomplish the feat.Did you ever wanted use your old PS/2 Keyboard with your laptop or new desktop PC and found out that they don't have PS/2 ports anymore? And then rather than go buy a cheap PS/2 to USB Adapter like a normal person would do, wanted to use your Arduino as a PS/2 to USB Adapter. Very nice to have one more empty USB connector Therefore my suggestion for you all if you are buying for a Personal Computer is to buy a PS/2 keyboard in place of USB. (ii)It is gonna use some kind of processor time since it has plugged into a USB. Since the flaws for buying a USB keyboard are (i) It is gonna occupy one of the USB slots in your computer and hence there will be no space for USB when you are connecting multiple com ports. I also found out that when you buy a keyboard and if it is for the long run like in a Personal Computer, then it is better to have a PS/2 connector bought. The only thing you need is just the USB socket and a PS/2 Jack (i got mine from an old mouse of mine). The conception After doing a bit of research i found out that most of the modern keyboards can be easily adapted to a PS/2 connector with ease. I was having such problem and decided to find a solution for it. Sometimes the keys did not function properly and sometimes it would automatically eject i.e disconnect from the computer port and again connect. I was using this USB keyboard for a couple of days and after using it for some time it was giving me trouble. The Situation I had actually bought a flexible keyboard from the market and i had no idea that it had a USB socket to the output. Here i will show you a simple tutorial to convert your USB keyboard to comfortably adapt to a PS/2 connector in a computer.
