I exploited the fact that pretty much every USB keyboard out there speaks PS/2 aswell. So the PS2Keyboard Library provided me (almost) everything I needed.

First, I had to discover what USB pin is what PS/2 pin. For that, I used a USB-PS/2-adaptor. It features a USB host plug and a PS/2 slave plug. Plugging the cut cable from the numpad and using a cheap multimeter to define which pin is which was a matter of 2 minutes. Third hand is highly useful here. The rest of hardware was connecting the loose end of the numpad cable to the teensy and taping it all good.

The software part is easy. I pretty much copied the example for the PS2 Keyboard Library and changed things a little. See the source!

Last edited Apr 23, 2013 at 5:26 PM by ReBoot, version 3


No comments yet.