Hacked Gadgets Forum

September 23, 2011

How to Interface a Microcontroller to a PS/2 Keyboard

at 11:11 pm. Filed under Computer Hacks, DIY Hacks, Electronic Hacks


Interacting with your project can be as simple as hooking up an IO pin to a button but if you need greater capability it might be time for a keyboard. In this tutorial Chris from PyroElectro demonstrates how to connect a PIC microcontroller to a PS/2 keyboard. One issue these days is finding a PS/2 keyboard, thankfully before USB came around they were a standard for a long time so if you can’t find one new you will certainly be able to get your hands on a used one.

“The system designed in this article is a simple passive PS/2 host device. It receives commands sent to it (key presses) and then outputs them to a 7 segment LED, but it never sends commands, all communication is 1 way in this system, which greatly simplifies the design and implementation.”


Nov 2012 first popular than years as acne doctors retin . Nov 2012 first popular than years as acne doctors...

Related Posts

Old Apple Keyboard Hacks
How to connect a a PS/2 Keyboard to a Microcontroller
DIY Open Source MIDI Keyboard
Keyboard Keep Alive Circuit
Keyboard Layout Switch
Keyboard Chair
Microcontroller to SMS Interface
Airship Captain MK-I – Steampunk Keyboard



One Response to “How to Interface a Microcontroller to a PS/2 Keyboard”

  1. ElectroNick Says:

    Wouldn’t it be more appropriate to call it an “AT Keyboard” because “PS/2” defines the same keyboard, just a different (newer) connector? I am a proud owner of what may be the last AT keyboard with a fill size DIN connector on the planet 🙂 It was built by IBM some 20 years ago and I think you can drive a tank over it, it’ll still work.

Internal Links:



Hacked Gadgets

Site Sponsors:

Nuts and Volts Electronic Labs Trossen Robotics Free Technical Publications Blue LED


Recent Comments:

More RSS Feed Options

Site Sponsors:


Interesting Sites: