Connect A PS/2 Keyboard To A Microcontroller

The guys at Nerdkits have put together this tutorial on connecting a PS/2 keyboard to a microcontroller. Though this tutorial is written for one of the kits they sell, you should be able to apply this to pretty much any microcontroller. It is also a lesson in using interrupts instead of polling. They have several pre built examples ready to download as well as source code for the basic setup.

[via HackedGadgets]

10 thoughts on “Connect A PS/2 Keyboard To A Microcontroller

  1. Much more impressive and a bit more useful, IMO, is bit-banging low speed USB host for HID devices like keyboards and mice. I don’t know a good guide for that off-hand, though.

    PS/2 keyboards are slowly getting harder to find, and a fairly new hacker is not very likely to have them just laying around. Additionally, really small keyboards which would be great for smaller projects that need input are USB only and will not work with passive USB to PS/2 adapters.

  2. Advantageously, the article is actually the freshest on this noteworthy topic. I fit in with your conclusions and will thirstily look forward to your future updates. Saying thanks will not just be adequate, for the fantasti c clarity in your writing. I will immediately grab your rss feed to stay informed of any updates. Admirable work and much success in your business dealings!

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.