Match Machined Headers and Sockets: Pitch, Pin Diameter and Board Spacing
Two headers can have the same 2.54 mm spacing and still be a poor mating pair. The socket must accept the pin's shape and size, the pin must enter far enough to contact reliably, and the two boards must reach their intended positions without bending anything.
PMD Way's machined pin header collection includes break-away machined headers in single- and double-row male and female forms, listed at 2.54 mm pitch. Select both halves of the connection deliberately; pitch is only the beginning of the compatibility check.
Separate the three dimensions of mating
| Dimension | What it controls |
|---|---|
| Pitch and row spacing | Whether the contacts line up across the connector |
| Mating pin cross-section | Whether the socket contact accepts and grips the pin |
| Pin length and socket depth | How far the pair can engage at the required board spacing |
Use drawings for the actual parts. The hole at the top of a socket is not necessarily the dimension of its internal contact, and a pin's solder tail may differ from its mating end. A photograph can help identify a general form but is not a substitute for these details.
For a double-row connector, check both the spacing along each row and the distance between rows. Also check whether numbering runs along a row or alternates between rows in your documentation. Mechanical fit does not prevent an electrically reversed connection.
Do not force a square pin into an unknown socket
Machined receptacles commonly contain a spring contact inside a turned shell. Their accepted pin sizes depend on the contact design. Mill-Max's contact-selection information distinguishes accepted round leads from square and rectangular leads, for which the diagonal is relevant.
A square pin measuring 0.64 mm across its flats has a diagonal of about 0.91 mm, calculated as 0.64 × √2. That does not make it equivalent to a 0.64 mm round pin. The socket must explicitly accommodate the intended cross-section; a forceful first insertion can permanently alter a contact.
Do not test compatibility by pushing a random thick probe or screwdriver into the socket. Inspect the specification, then use a known matching pin or connector. If the stock listing does not provide an accepted-pin range, obtain that information or qualify an appropriate mating pair before committing to a board design.
Plan board separation around real engagement
Draw a side view showing both PCB surfaces, header insulators, exposed pins and socket body. Identify the manufacturer's recommended engagement range and the mechanical distance between boards. A spacer that is too tall can leave only the pin tips touching; one that is too short can force pins against the socket bottom.
As a hypothetical geometric example, a pin projecting 6 mm towards a socket opening 3 mm away can enter by 3 mm. Whether that is acceptable depends on the socket's contact position, minimum engagement and maximum depth. The arithmetic establishes overlap, not connector approval.
Include component clearance as well as connector depth. A board-mounted capacitor, underside solder joint or screw head can stop the boards approaching before the contacts engage properly. Check the whole assembly with the intended standoffs fitted.
Use mechanical support for mechanical loads
A long pair of headers should not be the only structure resisting repeated button presses or cable insertion. Support the boards where loads enter, and check that the supports preserve the connector's natural alignment.
When several connector strips mate at once, small position errors accumulate. Samtec's multiple-connector application guidance explains why these arrangements need particular attention to placement and tolerances. Its numerical limits apply to its own products; use the relevant limits for your chosen headers.
Start the assembly without power and without forcing the mounting screws. Both boards should approach evenly. If tightening the spacers is what finally makes the connectors fit, examine the hole pattern, spacing and connector seating rather than accepting the stress as normal.
Prepare break-away strips carefully
Count the required positions twice and identify the intended break point. Follow the supplier's method for separating the strip; socket housings and male header carriers do not necessarily break in the same way. Support the part and protect your eyes from small fragments.
Inspect the newly exposed end for cracked insulation, loose contacts and burrs. Check that the first and last contact remain firmly retained. A damaged end position can be particularly troublesome because it may still pass continuity while moving during insertion.
For a prototype, prepare and inspect a short sample before cutting every connector for the project. Keep the finished strips labelled by position count and mating pair so similar-looking parts are not mixed later.
Keep solder and contamination out of the contact
Confirm the PCB footprint and finished-hole requirements for the solder tails. Seat the connector squarely and use an assembly process appropriate to its temperature limits. Inspect the solder joints without pushing tools into the socket openings.
Mill-Max's pin and receptacle brochure describes designs that specifically prevent solder reaching the internal contact. That feature should not be assumed on every generic socket strip. Avoid excess solder and follow the selected part's processing guidance.
If using a mating part as an alignment aid during assembly, ensure that the connector manufacturer permits it and that the process cannot trap solder between the halves. Do not sacrifice the finished module as a convenient jig without checking the risks.
Verify the finished connection
With power removed, check contact mapping, adjacent-pin shorts and orientation. Mark pin one on both boards where it remains visible after assembly. For an unshrouded header, consider a mechanical guide or other positive prevention of an offset or reversed insertion.
Mate and unmate within the connector's documented method and cycle limits, supporting both boards evenly. A connector intended for occasional service is not automatically suitable for hundreds of classroom swaps. Choose a connector with documented durability if repeated use is central to the project.
Finally test normal operation in the mounted assembly, including the intended cable and button loads. Record the two part variants, mating geometry and board spacing. That information makes the next build reproducible instead of dependent on a pair of headers that happened to fit.