View Single Post
  #4  
Old July 9th 16, 09:18 PM posted to alt.comp.hardware
VanguardLH[_2_]
external usenet poster
 
Posts: 1,453
Default What's the connector used to terminate a keyboard wire called?

Veek. M wrote:

http://storage1.static.itmages.com/i...2ac4dc2df9.png

I have a USB keyboard with a defective cable (i'm retaining the USB-A
connector). I'm replacing it with a normal cable from a PS2 which i need
to solder to the USB-A plug/connector. What you are seeing is the opened
keyboard-PCB connector and PS2 connector (internal that;s plugged into
it). I want the name of the white connector (it's a 5 hole female
rectangular thingy) that plugs into a male 5-pin/needle connector that's
soldered on to the keyboard pcb


Won't work UNLESS the keyboard has builtin circuitry to perform
automatic hardware protocol switching. You cannot plug a USB-only
keyboard into a PS/2 port (unless you buy an active converter which
costs more than getting a new keyboard).

USB and PS/2 use *different* hardware protocols. A PS/2 only keyboard
won't communicate using the USB hardware protocol to a USB port. A USB
only keyboard won't communicate using the PS/2 hardware protocol to a
PS/2 port. You would need a USB+PS/2 keyboard that has builtin
auto-detect circuitry to support connecting the keyboard to either USB
or PS/2 ports. You cannot simply rewire the cable nor will a passive
USB-to-PS/2 dongle work. Either the hardware protocol conversion
circuitry has to be inside the keyboard or you get an active converter
to which the keyboard connects.

USB has 4 lines: data+, data-, power (5V), and ground. Differential
data signaling is used to eliminate induced noise (EMF). See:
http://pinouts.ru/Slots/usb_pinout.shtml.

PS/2 has 4 lines: data, ground, VCC (5V), and clock. There are 6 pins
but 2 are unused (there is a dual-PS/2 version where the unused pins get
used for data2 and clock2). You can already see the differences in the
signaling. See http://pinouts.ru/Inputs/KeyboardPC6_pinout.shtml.

You never mentioned the brand and model of the keyboard. If it is a
USB-only keyboard, no rewiring job is going to make it work on a PS/2
port (unless you also rewire the PS/2 port to effectively continue use
the USB hardware protocol but with mismatched connectors).

I'm not clear if you are trying to use a PS/2 connection with your USB
keyboard or if you merely clipped the cord from a PS/2 cable and intend
to use just the wiring to solder it onto both a USB-A connector and onto
the keyboard's PCB. Seems a neater and easier job to just get a USB
cable, snip off one end leaving the USB-A end, and solder the cable onto
the same spot at the connector inside the keyboard. Electrically the
connector is superfluous: it was used for assembly requirements. Or you
could leave the connector inside the keyboard, snip its wires about 2
inches out, slide on some heatshrink tubing over each wire, and solder
splice the USB cable onto the leads from the connector, and then heat
the heatshrink tubing. The splice job would be hidden inside the
keyboard.

If you absolutely must have a primo wire job (no splicing), DigiKey has
lots of connectors. The problem is that you won't have the crimp tool
to attach wires to the pins that go into the connector. Soldering would
have to be delicate so it doesn't enlarge the backend of the connector
pin to prevent it sliding into the connector. A needle nose plier could
be used for crimping but it's a sloppy method, especially when you
decided to get the connector to do a neat job.