Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Keyboard Connectors: Identify the Plug & Connect

· 7 min read · Smart Home

In this article
  1. Background: The Evolution of Keyboard Connectors
  2. How to Identify Your Keyboard Plug
  3. How to Connect Your Keyboard
  4. Common Problems and Solutions
  5. Adapters and Compatibility
  6. Cost and Availability
  7. Safety and Precautions
  8. Frequently Asked Questions

To identify a keyboard connector, look at the plug's shape, pin count, and color: PS/2 is a round 6-pin mini-DIN (purple for keyboard), USB is a flat rectangular Type-A plug, and older AT connectors are larger 5-pin DIN. Matching the plug to the correct port is usually straightforward, but adapters and wireless options exist for compatibility.

Background: The Evolution of Keyboard Connectors

Keyboard connectors have changed dramatically since the early days of personal computing. The first IBM PC (1981) used a large 5-pin DIN connector, often called the AT connector after the IBM AT. This was replaced in the mid-1980s by the smaller 6-pin mini-DIN, known as PS/2, introduced with IBM's PS/2 line of computers. PS/2 remained the standard through the 1990s and into the 2000s. The Universal Serial Bus (USB) began appearing on keyboards in the late 1990s and became the dominant connector by the mid-2000s. Today, USB is the most common, but PS/2 is still found on some desktop motherboards and many mechanical keyboards for legacy support or n-key rollover. Wireless options, using RF (radio frequency) dongles or Bluetooth, have also become popular, especially for laptops and compact setups.

How to Identify Your Keyboard Plug

Identifying the connector is the first step to a successful connection. Here’s a quick guide to the most common types:

  • USB Type-A: The most common. It’s a flat, rectangular plug with four pins inside. It fits into any standard USB port on a computer, hub, or laptop.
  • PS/2 (mini-DIN): A round plug with six pins arranged in a circle. It is color-coded: purple for keyboards, green for mice. The port on the computer is also color-coded.
  • AT (DIN): A larger round plug with five pins, used on very old PCs. It’s about twice the diameter of PS/2.
  • USB-C: A small, oval, reversible connector. Some modern keyboards, especially compact or custom ones, use USB-C for the connection to the computer.
  • Wireless (RF dongle or Bluetooth): No plug on the keyboard itself; instead, it connects via a small USB dongle or directly to the computer's Bluetooth.

How to Connect Your Keyboard

Connecting a keyboard is usually plug-and-play, but here are the steps for each type:

  1. USB: Simply plug the USB-A or USB-C connector into any available port. The keyboard should be recognized automatically. If not, try a different port or restart the computer.
  2. PS/2: Shut down the computer completely. Plug the purple PS/2 connector into the purple PS/2 port on the back of the computer. Then turn the computer on. PS/2 is not hot-swappable; connecting it while the computer is on can damage the port or keyboard.
  3. AT: Same as PS/2, but the port is larger. These are extremely rare today. If you have an AT keyboard, you’ll likely need an active adapter (see below).
  4. Wireless (RF dongle): Plug the USB dongle into a USB port. Turn on the keyboard (usually a switch on the back or side). The keyboard should pair automatically. If not, press the connect button on the dongle and the keyboard.
  5. Bluetooth: Put the keyboard in pairing mode (usually holding a Bluetooth button). On your computer, go to Settings > Devices > Bluetooth & other devices, and select the keyboard from the list.

Common Problems and Solutions

Here are some issues you might encounter and how to fix them:

  • Keyboard not recognized: Try a different USB port. If it’s a desktop, use a port on the back (directly on the motherboard) rather than a front-panel hub. Restart the computer.
  • PS/2 not working: Ensure the computer was off when you plugged it in. Check that the connector is fully seated and the pins are not bent. If the port is damaged, you may need a USB-to-PS/2 adapter (but note that not all keyboards support this).
  • Wireless keyboard not pairing: Replace the batteries. Move the dongle to a different USB port, ideally one that’s not next to a USB 3.0 device (which can cause interference). For Bluetooth, remove the device from the list and pair again.
  • Intermittent connection: This is often caused by a faulty cable or port. Try a different cable (if detachable) or a different port. If the keyboard has a detachable cable, check that it’s firmly connected to the keyboard.

Adapters and Compatibility

If you have a keyboard with one connector and a computer with a different port, adapters can help:

  • PS/2 to USB: Passive adapters are cheap but only work if the keyboard supports both protocols (most PS/2 keyboards do not). Active adapters (with a chip) convert the signal and work with any PS/2 keyboard.
  • USB to PS/2: Similar to the above, but the keyboard must support both protocols. Many older USB keyboards did, but most modern ones do not. Check the keyboard’s specifications.
  • AT to PS/2: These are passive adapters that just change the physical connector, since the electrical signal is the same. However, AT keyboards are so old that they may not work with modern operating systems.
  • USB-C to USB-A: A simple passive adapter or cable. These work fine as long as the keyboard is USB-C and the computer has USB-A.

Note: When using a PS/2 to USB adapter, the keyboard may not work in the BIOS or before the OS loads, because the adapter requires drivers. For full functionality, a true USB keyboard is better.

Cost and Availability

Connectors themselves are not something you buy separately; they come with the keyboard. However, if you need an adapter, prices are generally low:

  • Passive PS/2 to USB adapters: $2–$5
  • Active PS/2 to USB adapters: $10–$20
  • USB-C to USB-A cables: $5–$15
  • Bluetooth USB dongles (if not built-in): $5–$15

These are available online and at electronics stores. Always check reviews to ensure the adapter works with your specific keyboard model.

Safety and Precautions

While connecting a keyboard is generally safe, a few precautions are worth noting:

  • PS/2 hot-swapping: Never plug or unplug a PS/2 connector while the computer is on. This can short the motherboard and damage the port or the system.
  • Static electricity: Before touching any internal components (if you’re opening the computer), ground yourself by touching a metal part of the case. This is more relevant when building a PC, but it’s good practice.
  • Bent pins: PS/2 and AT connectors have pins that can bend easily. Align the connector carefully and push straight in. If you feel resistance, don’t force it.
  • USB overcurrent: If a keyboard is drawing too much power (rare), the USB port may shut down. This is usually a sign of a defective keyboard.

Frequently Asked Questions

Can I use a PS/2 keyboard on a USB port?

Yes, but you need an active adapter that converts the PS/2 signal to USB. Passive adapters only work if the keyboard itself supports both protocols, which is uncommon. The active adapter will allow the keyboard to work, but it may not support all features like n-key rollover.

Why is my PS/2 keyboard not working when I plug it in?

Most likely because you plugged it in while the computer was on. PS/2 is not hot-swappable. Shut down the computer, plug in the keyboard, and then restart. Also, check that the connector is purple (keyboard) and not green (mouse), and that the pins are not bent.

What is the difference between PS/2 and AT connectors?

AT is the older, larger 5-pin DIN connector (about 13mm diameter). PS/2 is the smaller 6-pin mini-DIN (about 9mm diameter). They are electrically similar, but the physical size is different. An AT keyboard can be used with a PS/2 port using a simple passive adapter.

Can I use a USB keyboard on a PS/2 port?

Only if the keyboard supports both USB and PS/2 protocols. This was common on some older keyboards but is rare today. Check the keyboard's documentation. If it does support it, you can use a passive USB-to-PS/2 adapter. Otherwise, you'll need an active adapter, which may not work reliably.

How do I connect a wireless keyboard to my computer?

If it uses a USB dongle, plug the dongle into a USB port and turn on the keyboard. If it's Bluetooth, put the keyboard in pairing mode (usually holding a button) and select it from your computer's Bluetooth settings. Make sure the batteries are fresh.

What does n-key rollover mean?

N-key rollover (NKRO) means the keyboard can register any number of simultaneous key presses without ghosting. This is important for gaming. PS/2 natively supports NKRO, while USB technically has a limit of 6 keys without NKRO, but many gaming keyboards use special tricks to achieve NKRO over USB.