How to measure the pitch of a connector?

Are you having a hard time figuring out the right plug connector for your printed circuit board (PCB) ?

How do you identify the socket connector on your PCB board?

There are too many connectors from on the market. Numerous brands and part numbers. Looking for the right connector can be very tedious. We need a way to reverse engineer the type of socket connector to help us find the mating plug.

There are big connectors and small pitch connectors. A wide range of connector products on the market. They are designed for various application which requires different wire size or current (power).

Before you start following this guide to identify your connector, search and check the documentation of your circuit board product to see if the specific connector is documented.

This is a step-by-step guide page to help you find the right plug to fit into the socket on your electronic circuit board.

  • Step 1: Preparing the tools
  • Step 2: Measure the pitch of the connector.
  • Step 3: Match the standardised pitch.
  • Step 4: Search from the connector list.

Step 1: Preparing the tools

A precision tool like an vernier calliper is recommended for the measurement. It is going to help you correctly identify the pitch of the connector and narrow it down to the specific connector part number.

If you do not have a precision measurement tool on hand, a simple ruler and magnifying glass may do the job as well. Just that an incorrect measurement can mislead you towards the wrong connector mating plug.

  1. A vernier calliper (for precision measuring),
  2. or a simple ruler (if you do not have a calliper)
  3. a magnifying glass or phone camera if the connector is too small for your eyes.
vernier calliper
a simple ruler
phone photo magnifying shot

Step 2: Measuring the pitch of the connector

This is the most important step in narrowing down the right plug for the socket on your PCB board.

Getting this step done right, it is already 80% of the job done. This is why a precision tool is recommended for the measurement. If you do not have a precision measurement tool on hand, a simple ruler and magnifying glass may do the job as well. Just that a wrong measurement may mislead you towards the wrong connector mating plug.

Measuring the pitch

connector pitch size

The pitch of the connector is the distance between the header pins of the connector. This can usually uniquely identify the connector to a list of connectors based on pitch size alone.

The pitch distance is from the centre pin to the centre pin of the adjacent pin on the header connector. While this is what defines the pitch, it is however difficult to measure from the center of the header pin in actual practice.

So instead of measuring from the center of the pin, we measure the outer side of the pin and subtract it by the pin thickness. This will give us an equivalent of the pitch size.

Measuring the outer pins

the outer side of pins
Measuring outer 3.1mm
Measuring outer pins

Measuring pin thickness

pin thickness
Measuring pin 0.6mm
Measuring pin thickness

Calculate the pitch

equivalent pitch size

Computing the equivalent pitch size of this connector socket.

Pitch size = Outer distance – Pin thickness
Pitch size = 3.1mm – 0.6mm = 2.5mm
Pitch size = 2.5mm

This concludes that the pitch of this connector is 2.5mm.

Measurement without using a precision tool

Instead of using a precision tool, you can also use a simple ruler to estimate the pitch of the connector. It is not precise in reading, not recommended, but it is better than no measurement.

You can use a magnifying glass or a camera phone to help you capture the measurement, and permit you to measure the pitch visually.

A tip to improve the accuracy when measuring using a simple ruler is to measure the outer side distance over more pins instead of just the adjacent pins. The more the better.

For example in this 4-pin connector example, measure the outer distance between pin 1 and pin 4. This will give you a reading close to 8.1mm. Subtract this by the pin thickness of 0.6mm and divide the result by 3. This will return a result closer to the actual pitch of the connector.

You can also visit this page for other illustration of measuring the pitch of your connector header.

Step 3: Match the standardised pitch

Now that we know the pitch size of the connector, we need to determine the connector family next.

While there are many connector sizes on the market, the pitch sizes are consolidated into a few pitch sizes. The industry somehow practises a list of standard pitch distances.

The common pitch size that is available on the market:

  • 0.3mm
  • 0.5mm
  • 0.8mm
  • 1mm
  • 1.27mm
  • 1.5mm
  • 2.0mm
  • 2.5mm
  • 2.54mm
  • 3.5mm
  • 3.81mm
  • 3.96mm
  • 4.2mm
  • 5.0mm
  • 5.08mm
  • 6.3mm

Knowing this pitch size is important because it can help us to determine the pitch size especially when we are measuring using a less precision tool (simple ruler).

Using a simple ruler, your measured pitch result is 2.7mm. You can probably tell that 2.7mm is not a typical connector pitch size. Base on this pitch size list, the nearest pitch size to 2.7mm is 2.54mm. So a good estimate to this connector pitch would be both 2.54mm and 2.5mm.

Through this process, we can classify this connector to be of pitch 2.5mm or 2.54mm

Step 3: Search from the connector list

Now that the pitch family is identified, we can narrow down the search by narrowing the search to connectors with pitch of 2.5mm and 2.54mm.

The other identifier is the number of pins on the connector. Count the number of pins. In our example it is 4 pins.

Next is to click into the 2.5mm/2.54mm pitch family of connectors and visually search for the parts.

Click here for the list of connectors that are grouped based on the pitch sizes.

  • 1mm
  • 1.5mm
  • 2.0mm
  • 2.54mm
  • 3.81mm
  • 5.0mm
  • 5.08mm

Click here to go back to the wire-to-board connector list.

Click here to go back to the wire-to-board connector list.

Check out our best seller general purpose Cable Tester tool.

I2C Pin Out (STEMMA from Adafruit)

STEMMA is a connector system designed to simplify connecting sensors and other devices to microcontrollers and single-board computers. Used by Adafruit, STEMMA aims to streamline the process of prototyping and building electronics projects.

Do take note that STEMMA is a different connector to STEMMA QT. The pin out is similar but the connector is much smaller for STEMMA QT, suitable for smaller sensor circuit board.

I2C pinout for STEMMA from Adafruit

The I2C cable connector from STEMMA (Adafruit) is compatible to Grove (Seeed Studio). Their connector and the pin out are the same.

STEMMA I2C connector details

STEMMA I2C inter-connection system uses PH series from JST. JST specialises in connector product. The following is the datasheet and drawing for the JST PH series connectors use.

Cable Plug

Housing part number: PHR-4
– Available from Digikey: 455-1164-ND

Crimp Pin part number: SPH-002T
– Available from Digikey: 455-1127

Board Socket

– Socket part number: B4B-PH-K-S (Available from Digikey: 455-1706-ND)
– Socket part number: S4B-PH-K-S (Available from Digikey: 455-1721-ND)

Tools Accessories

Check out our best seller general purpose Cable Tester tool.

I2C Pin Out

I2C is a name short form for Inter-Integrated Circuit. I2C is a simple two-wire serial protocol used to communicate between chips in an embedded system on a PCB board. I2C communication consist of two signal lines SCL and SDA. SCL is used for clock synchronous and SDA is used for data.

I2C is not originally designed as a communication protocol over the cable. It is mean for communication between IC chips on a PCB board.

The convenience of I2C allows a modular function to be added to the circuit without affecting the overall design. This popular feature of using I2C led to people using it as a protocol to communicate between circuit board modules over a cable. This is usually 4 wires cable. Two wires (SDA, SCL) for the data. Two wires (VCC, GND) for the power. VCC is usually either 5V or 3.3V.

Electronic circuit module-producing companies coming up with their own I2C ecosystem standard. They are still the same basic I2C 4-wire cable. However, the type of connector used and the pin-out varies. This leads to some variation of the I2C cable system standard.

Various I2C wire connector standard


There is not yet an international standard for an I2C cabling system. The following presents the available I2C cable standard and pin out created by various system brands on the market.

At this moment of writing, there are 5 types of I2C cable systems that I have found, out of the seven I2C system brand names. Those with the same background colour mean that the cabling system is compatible and can be inter-swap with one another.

The recommended standard I2C cabling to implement, I would personally prefer to follow

  • Grove (Seeed Studio), STEMMA (Adafruit) for standard I2C cabling system.
  • qwIIC (Sparkfun), STEMMA QT (Adafruit) for mini-connector I2C cabling system.

Grove (Seeed Studio)

2mm pitch

Compatible to:

  • STEMMA (Adafruit)
I2C pinout for Grove Ecosystem from Seeed Studio

STEMMA (Adafruit)

2mm pitch

Compatible to:

  • Grove (Seeed Studio)
I2C pinout for STEMMA from Adafruit

qwIIC (Sparkfun)

1mm pitch

Compatible to:

  • STEMMA QT (Adafruit)
I2C pinout for qwIIC connect system from Sparkfun Electronics

STEMMA QT (Adafruit)

1mm pitch

Compatible to:

  • qwIIC (Sparkfun)
I2C pinout for STEMMA QT from Adafruit

Gravity (DFROBO)

2mm pitch

Compatible to:

  • Grove (Seeed Studio)
  • STEMMA (Adafruit)
I2C connector pinout for DFRobot Gravity

Breakout Garden (PIMORONI)

2.54mm pitch

I2C socket pin out Breakout Garden from Pimoroni

nodeLynk Interface

2.54mm pitch

I2C connector pinout of nodeLynk

Check out our best seller general purpose Cable Tester tool.