HOW-TO GUIDE

How to Solder a Ribbon Cable Connector Onto a PCB

To solder a ribbon cable connector onto a PCB, you fit a through-hole box header (or pin header) with its pin 1 and key notch matching the board, tack two opposite corner pins, check that it sits flat and square, then solder the remaining pins row by row and test every pin with a multimeter. The ribbon itself is not soldered: it is pressed into an IDC socket that plugs onto the header. This guide covers which part gets soldered, how to get the orientation right first time, and how to avoid the solder bridges that dozens of closely spaced pins invite.

By the OhmSavvy Research Team ·

Weller WE1010NA digital soldering station with iron and stand
Header work is many small, identical joints next to ICs, which suits an ESD-safe 70W digital station like the Weller WE1010NA. See our WE1010NA review.

Safety: hot tip, flux fumes and a powered-off board

  • Disconnect the board from all power and batteries before soldering, and unplug any cable already attached to it.
  • The tip runs at several hundred degrees Celsius. Keep it in its stand between joints and hold the board in a vise or holder, not in your hand.
  • A long header means a lot of flux smoke. Work with ventilation or a fume extractor, and wash your hands after handling leaded solder.

Box header vs IDC connector: which part is soldered

A ribbon cable link has two halves. The board side is a header: either a plain dual-row pin header or a box header, which is the same pins inside a plastic shroud with a key slot in one long side. That is the part you solder. The cable side is an IDC (insulation displacement connector) socket. Its forked contacts cut through the ribbon's insulation and grip each conductor when the socket is pressed shut. IDC sockets are pressed, not soldered: heat would melt the cable and the socket body, and there is nothing for solder to bond to inside it.

PartHow it is attachedWhere it goes
Box (shrouded) headerSoldered through-holePCB; the shroud and key slot stop a reversed plug
Plain pin headerSoldered through-holePCB; cheaper, but nothing stops a reversed plug
IDC socketPressed onto the ribbon in a vise or IDC pressCable end; plugs onto the header
Board-mount IDC connectorPins soldered, ribbon pressed inPCB, where the cable must be permanent

If your board was designed for a plain pin header but you want a keyed connection, a box header with the same pin count and pitch normally fits the same holes. Check that the shroud clears nearby parts first, because it is wider than the pin rows.

Making up the cable is a separate job from the soldering. Cut the ribbon square, lay it in the open socket with the striped conductor at the pin 1 end, and close the socket evenly in a vise or IDC press so every contact goes through the insulation at the same depth. Pressing one end at a time can tilt the cover and leave conductors at the other end unconnected, which shows up later as an open pin in the continuity test.

Pitch and header sizes

Pitch is the center-to-center spacing between neighboring pins. The most common ribbon headers use 2.54 mm (0.1 in) pitch, paired with ribbon whose conductors sit 1.27 mm apart because the socket interleaves the two rows. Finer 2.0 mm and 1.27 mm pitch headers exist too; 1.27 mm parts are often surface-mount, especially on compact debug connectors. Read the pitch from the part's datasheet or measure across several pins with calipers and divide, since a header of the wrong pitch will not drop into the holes.

2.54 mm (0.1 in)
2.54 mm
2.0 mm
2.00 mm
1.27 mm (0.05 in)
1.27 mm
Common ribbon header pitches. Halving the pitch from 2.54 mm to 1.27 mm halves the gap your tip and solder have to work in, which is where bridges come from.

The number of joints adds up quickly. Every position is one joint, and the pin rows span (columns − 1) × pitch from the first pin to the last:

PositionsLayoutJointsRow span at 2.54 mmRow span at 1.27 mm
102 × 51010.16 mm5.08 mm
202 × 102022.86 mm11.43 mm
262 × 132630.48 mm15.24 mm
342 × 173440.64 mm20.32 mm
402 × 204048.26 mm24.13 mm

The process at a glance

  1. 01

    Find pin 1

    Square pad, silkscreen mark, key slot

  2. 02

    Insert

    Header flat on the component side

  3. 03

    Tack corners

    Two diagonally opposite pins

  4. 04

    Check & adjust

    Flat, square, right way round

  5. 05

    Solder rows

    One row, then the other

  6. 06

    Inspect & test

    Bridges, then pin-to-pin continuity

Orientation is checked before any solder goes on, and again after the two corner tacks, while the header can still be moved by reheating one pin.

1Find pin 1 and the key orientation

Most boards mark pin 1 in at least one way: a square pad where the others are round, a small triangle or "1" in the silkscreen, or a header outline with a notch drawn in one long side to show where the box header's key slot belongs. On the header itself, look for a triangle molded into the plastic beside pin 1. On most dual-row ribbon headers, odd-numbered pins run along one row and even-numbered pins along the other, so pin 2 sits directly beside pin 1, but confirm this on the board's schematic or the header datasheet.

If the board has no markings, work back from the other end. The ribbon's striped conductor is pin 1 by convention, so plug a known-good cable into the device at the far end and trace which pin it reaches. A reversed box header is the most common mistake on this job and the most tedious to undo, so spend a minute here.

2Insert the header and tack two corner pins

Push the header in from the component side until its plastic base sits flat on the board. Turn the board over, holding the header in place with a finger, a piece of heat-resistant tape or by resting the board header-down on a flat surface. Solder just one corner pin. Then look at the header from the side: if it is tilted or lifted, press it flat while you reheat that one joint, and let it cool before you let go.

When it is flat and square, solder the pin in the diagonally opposite corner. Two tacks hold the header firmly without locking you in, because either joint can still be reheated to nudge it. This is the moment for the final orientation check against the pin 1 marks.

Why the corners first

A header soldered pin by pin from one end tends to creep and tilt as each joint cools. Tacking the far corners fixes the position at both ends before the rest of the joints can pull it out of line.

3Solder the rows

Work along one row, then the other. For each pin, place the tip so it touches both the pad and the pin, wait a moment for both to heat, then feed solder into the joint (not onto the tip) until it wets all round and forms a small, concave cone. Two to three seconds per joint is typical on a plain signal pad. Pins connected to a ground or power plane soak up heat and may need a larger tip or a slightly longer dwell; if a joint looks dull and balled, it did not get hot enough, and our guide to fixing a cold solder joint covers the fix.

  • Use thin solder. A smaller diameter makes it easier to feed just enough for one pin; see the solder wire diameter guide.
  • Pick a suitable tip. A small chisel or a bevel tip touches pin and pad together; the soldering iron tip types guide compares shapes.
  • Skip pins to spread heat. On a long header, doing every other pin and coming back for the rest stops one area of the plastic base from getting too hot.
  • Wipe the tip often. Old flux and oxide on the tip slow heat transfer and drag solder where you do not want it.

4Check for bridges and excess solder

At 2.54 mm pitch bridges are uncommon if you feed solder sparingly, but a long header gives you a lot of chances. At 1.27 mm they are the main risk. Inspect every joint under good light and magnification, tilting the board so you look along the rows. A bridge shows as a solder web joining two pins; a fine one can hide in the shadow between rows.

To clear one, add flux, wipe the tip clean and draw it away from the bridge along the pin; surface tension usually pulls the surplus back onto each pin. Desoldering wick handles stubborn cases. The full technique is in how to prevent solder bridges, and removing excess solder from a small connector pin deals with joints that are bulbous rather than bridged. If you need to pull a header back out, see how to remove solder from a plated through hole.

5Run a pin-to-pin continuity test

A bridge you cannot see will still show up on a meter. With the board unpowered, set the meter to continuity or the lowest resistance range, touch the probes together and note the lead resistance. Then run the checks below. If you are new to these modes, start with how to use a multimeter.

CheckProbe betweenGood resultBad result means
JointTop of the header pin and its trace or nearest viaLow ohms, near lead resistanceOL: cold or open joint
NeighborEach pin and the pins beside itOL, or a reading the circuit explainsLow ohms: possible bridge
Through the cableHeader pin and matching pin at the far endLow ohms, near lead resistanceOL: bad IDC press or wrong orientation
0.3ΩΩ continuity
Header pin 1 to the far end of its trace. The meter shows 0.3 Ω; with the probes shorted it showed 0.2 Ω, so the joint and trace add about 0.1 Ω. Pass.
OLΩΩ neighbor check
Pin 1 to pin 2. OL means no connection, which is right for two separate signals. A low reading here means look for a bridge.

Not every low neighbor reading is a fault. Several ground pins are often tied together on purpose, and pins linked through the board's circuit may read a few hundred ohms or more. Compare against the schematic before you start reworking joints. If the beeper chirps on and off as you hold the probes still, the problem may be the meter or its leads; see why a continuity beep is intermittent.

Which iron suits header work?

Header pins are small joints, so raw power matters less than a stable, adjustable temperature and a tip that recovers quickly on the ground-plane pins. Any temperature-controlled iron with a fine chisel tip will do it; ESD-safe construction is worth having when the header sits next to sensitive chips. Compare the options in our best soldering irons roundup. If your next job is a board-mounted control rather than a connector, see how to solder a replacement rotary encoder onto a circuit board.

Irons in our reviews

Weller WE1010NA digital soldering station
Weller WE1010NA

85W digital, ESD-safe station (70W iron) built for dedicated workbenches and professional use.

Hakko FX-888DX soldering station with FX-8801 handpiece
Hakko FX-888DX

ESD safe with ±1°C idle stability and five presets; a 100W station for rows of identical header joints.

Pinecil V2 USB-C portable soldering iron
Pinecil V2

Up to 88W at 24V (about 60W on 20V USB-C PD) with an OLED display; suited to portability and field repairs.

As an Amazon Associate I earn from qualifying purchases. Prices and availability are shown on Amazon.

Frequently asked questions

Can you solder a ribbon cable directly to a PCB without a connector?

Yes, for a permanent link you can separate and strip each conductor and solder it into its own hole, but it is slow and the thin stranded wires break easily where the solder stops. Strain relief, such as a cable tie or a dab of adhesive, is essential. A header and IDC socket is usually quicker, neater and lets you unplug the board.

Which side of the ribbon cable is pin 1?

By convention the conductor with the colored stripe, often red, is pin 1. IDC sockets usually carry a small triangle beside pin 1 as well. When you press the socket onto the cable, line the striped conductor up with that triangle so the cable, socket and header all agree.

What temperature should I use to solder header pins?

It depends on the solder alloy, the tip and how much copper the pads connect to, so check your solder maker's recommendation. Many people work somewhere around 320 to 350 degrees Celsius for leaded solder on small header pins and a little hotter for lead-free. Pins tied to a ground plane may need more heat or a larger tip.

How do I fix a box header I soldered on backwards?

On a shrouded header the cleanest fix is often to cut the plastic shroud and pin strip away, then remove each pin one at a time and clear the holes with wick or a solder sucker. Fit a new header the right way round. Trying to pull a whole row out at once usually lifts pads.

Should I fit a straight or right-angle header for a ribbon cable?

Follow the board footprint and the enclosure. A straight header sends the cable upward, which suits boards with open space above them. A right-angle header lets the cable run flat along the board, handy in shallow cases or at a board edge. Both come in the same common pitches, but pin 1 on a right-angle part is easy to misread, so confirm it against the silkscreen before soldering.

Where to go next

More soldering iron guides and reviews

Product reviews

View all 5 reviews →