Hacked Gadgets Forum

September 28, 2009

How to connect a a PS/2 Keyboard to a Microcontroller

at 2:54 pm. Filed under DIY Hacks, Electronic Hacks


Connecting a keyboard to a microcontroller project could be a useful addition. Even if it is to be used as a code input device it could be more convenient than using a key matrix. The guys over at Nerd Kits have put together an informative video that is based on the NerdKit however it is applicable to any microcontroller.

"The PS/2 Interface is quite easy to implement. To send a key stroke, the keyboard begins driving the clock line. On the falling edge of the clock line, the data line represents the current bit. Each keystroke is sent as 11 bits: first a start bit of 0, then the 8 bits of the scan code (least significant bit first), then a parity bit (odd parity, which we did not implement for simplicity’s sake), and finally a stop bit (always 1)."


Jan 2014 video, share experience tips, and benefits let know retin . Synonyms, antonyms about in free and encyclopedia...

Related Posts

How to Interface a Microcontroller to a PS/2 Keyboard
How to Connect Multiple Switches to one Microcontroller Pin
DIY Open Source MIDI Keyboard
Old Apple Keyboard Hacks
Keyboard Layout Switch
Keyboard Chair
XBox 360 Chatpad used in a Mini Computer Build
The Singing Keyboard



4 Responses to “How to connect a a PS/2 Keyboard to a Microcontroller”

  1. Connect a PS/2 keyboard to a microcontroller - Hack a Day Says:

    […] [via HackedGadgets] […]

  2. Connect a PS/2 keyboard to a microcontroller | Gizmo Nerd Says:

    […] [via HackedGadgets] […]

  3. Connect a PS/2 keyboard to a microcontroller | Diy all the Way Says:

    […] [via HackedGadgets] […]

  4. Cool Hacks from HackedGadgets This Week! Says:

    […] How to connect PS/2 keyboard to a microcontroller. – Here’s a great guide outlining the steps required for adding a keyboard input device to your microcontroller. […]

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: