Skip to content
If this is your first visit, please click here to learn about shipping and delivery.
If this is your first visit, please touch here to learn about shipping and delivery.
XH wire-to-board connector housings, headers and crimp contacts

Build an XH Connector Harness: Pitch Checks, Contact Seating and Pin-by-Pin Testing

A small wire-to-board connector can make a project much easier to assemble and service. The difficulty usually appears when a housing nearly fits, a contact slides backwards during mating, or the finished harness swaps two signals that looked correct on the drawing.

An XH-style harness deserves the same care as a PCB. Establish the mechanical dimensions, make one documented sample and test it before producing the rest. The following workflow suits low-voltage sensor panels, classroom equipment and internal control wiring.

Resolve the 2.50mm versus 2.54mm question first

The official JST XH series datasheet specifies a nominal pitch of 2.50mm. A 0.1-inch grid is 2.54mm. Those dimensions are close, but they are not the same engineering specification.

PMD Way groups these products in its JST XH connector collection, whose catalogue label includes 2.54mm. Use the exact supplied part drawing and a sample to establish dimensions before committing a PCB. The collection name alone should not determine the footprint, and a generic product label does not establish the manufacturer of the supplied component.

The difference accumulates across a long row. Between the first and last pins of a ten-position connector there are nine intervals: 22.50mm at 2.50mm pitch, compared with 22.86mm at 2.54mm. The 0.36mm discrepancy is a design mismatch, even if a short connector appears to enter oversized holes.

Specify the complete mating set

A harness needs a header, housing, contacts and suitable wire. The XH connector pairs available from PMD Way include vertical PCB headers, housings and internal crimp contacts in several circuit counts. Select the required count explicitly and confirm the delivered dimensions before building around it.

The official XH family has more than one contact option. Wire conductor size and insulation diameter both matter: a contact can grip the conductor poorly or fail to support the insulation even when the wire looks appropriately thin. Do not transfer a family-wide wire range to every contact variant.

For a repeatable build, record the header, housing, contact and wire identifiers together. If the supplier does not provide a full contact specification, obtain clarification or use a documented matched harness for applications where current capability or production repeatability matters.

Make the pin map independent of wire colours

Suppose a four-wire front panel needs ground, a supply, a button signal and an indicator signal. Start with those functions, then assign cavities using the actual mating drawing. Mark whether each illustration is viewed into the mating face, from the wire entry or from the PCB solder side.

Example harness record, after cavity numbering has been verified
Cavity Project function Verification point
1 Ground Labelled board ground pad
2 Panel supply Specified panel supply input
3 Button signal Switch signal terminal
4 Indicator signal Specified indicator input

This is a project example, not an XH standard pinout. A keyed housing controls how it mates; it does not assign supply polarity. Two mechanically identical connectors on different devices can have completely different electrical functions.

Add wire colours and lengths to the record only after the electrical map is settled. Where two incompatible harnesses could be confused, change the connector arrangement or provide unmistakable identification instead of relying solely on a handwritten label.

Prepare and inspect one sample contact

Use the contact manufacturer’s specified tooling and crimp instructions. JST’s tooling and crimp specification guidance directs users to look up the exact contact number for strip length, crimp height and tool selection. A tool labelled “JST” is not automatically suitable for every JST family.

Strip without cutting strands, position the conductor and insulation in their intended barrels, and inspect the result under magnification. Reject damaged strands, escaped strands, a distorted mating end or a bent retention feature. JST’s crimping precautions explain why correct crimp height and inspection matter. A contact that survives a casual tug has not necessarily met its crimp specification.

For a batch, first make and inspect a sample using the intended wire. Keep the accepted sample beside the work area. Check the process again if the wire reel, contact batch or tool adjustment changes.

Seat contacts without damaging the housing

Identify the retaining feature and its matching housing opening before insertion. Follow the exact contact instructions, insert along the intended axis and stop if unusual resistance occurs. Forcing a contact with a probe can deform the electrical mating surface while leaving the outside looking acceptable.

Check that every contact sits at the same intended depth and is retained as specified. A contact pushed backwards by the header can produce an intermittent circuit that passes an initial loose-wire test. If a cavity was populated incorrectly, follow the extraction procedure; replace damaged contacts or housings instead of bending them repeatedly until they seem to latch.

Build a test fixture that protects the contacts

Use a matching header on a small labelled test board. Bring each position to an accessible pad or terminal. This avoids pushing oversized multimeter probes into the housing, which JST’s connector handling precautions warn can deform contacts.

  1. Disconnect the harness from all powered equipment.
  2. Check each expected end-to-end connection against the record.
  3. Check each conductor against the other conductors for unintended connections.
  4. Move the cable gently near each termination while observing the reading.
  5. Inspect contact seating again after mating and unmating the fixture.

A continuity test finds open circuits and wiring mistakes. It does not validate high-current performance, insulation ratings or environmental durability. If the harness carries meaningful load current, qualification also needs the relevant contact specifications and a controlled voltage-drop and temperature assessment.

Allow for assembly and servicing

Route enough wire to reach the connector without tension, but keep loops clear of moving parts and hot components. Support the harness so that opening an enclosure does not pull directly on the contacts or PCB header. Check access with the enclosure assembled, not just with the lid removed.

Disconnect power before mating or unmating; these connectors should not be assumed to provide hot-plug sequencing. Save the accepted sample, contact map and inspection results with the project. That small amount of documentation turns a one-off cable into a harness you can reproduce confidently.

Previous article Battery Power for Arduino Projects: Voltage Range, Runtime and Regulator Heat