• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Microcontroller Tips

Microcontroller engineering resources, new microcontroller products and electronics engineering news

  • Products
    • 8-bit
    • 16-bit
    • 32-bit
    • 64-bit
  • Applications
    • Automotive
    • Connectivity
    • Consumer Electronics
    • Industrial
    • Medical
    • Security
  • EE Forums
    • EDABoard.com
    • Electro-Tech-Online.com
  • Videos
    • TI Microcontroller Videos
  • EE Resources
    • DesignFast
    • eBooks / Tech Tips
    • FAQs
    • LEAP Awards
    • Podcasts
    • Webinars
    • White Papers
  • EE Learning Center

How to accurately measure header/connector pitch

September 20, 2017 By Scott Thornton 6 Comments

Sometimes when you’re working with a microcontroller unit evaluation board, you need to connect a ribbon cable to the board’s header. If the ribbon cable isn’t specified, how do you know what to order that will fit the header on the MCU board? The pitch of a connector refers to the distance between the pins on a connector. If you don’t have a datasheet or a known part number for a connector, determining the pitch of the connector can be difficult, especially if the distance between the pins (pitch) is very small (often the case).

A pin header, often simply called a header, is an electrical connector with one or more rows of exposed male pins set in a plastic base. A header with female connections is referred to as a header connector. A header or header connector is often a main junction or connection point for interfacing one piece of equipment or device to another. Headers are used to connect with a ribbon cable, or as “jumpers” where electrical connections are made from pin-to-pin or where alligator clips can be temporarily attached.

Figure 1: The pitch of a header is measured from the center of one pin to the next (A). For accuracy, one can also measure from outside edge of the first pin to the inside edge of the last pin (B), in which case A = B/(C-1). (Source: KCR)

A jumper can also be called a shunt and is used to quickly connect one pin or terminal to another. Many development boards use a jumper instead of a switch. For example, you might have to set a jumper for boot-up mode and then move the jumper to another position for programming mode. A header with just one pin is a test point. Other names for headers are: board-to-board connectors (for connecting printed circuit boards to each other), terminal strips, pin strip headers (usually a single row of pins set in a plastic base) and board stackers (since they can be used to set a daughter card, for instance, on top of another board). For the newest of newbies, you might want to know that a male connector has pins and a female connector is also called a receptacle and has holes. Putting them together is called mating (I didn’t make this stuff up, folks. But someone has to tell the newbies about the birds and the bees in the electronics world.)

Connector pitch (distance between pins)

The pitch of a header is measured from the center of one pin to the next (Figure 1, measurement A). If that’s difficult to do with accuracy, you can measure pitch another way. Referring to Figure 1, to measure the pitch (A) of a pin header, measure from the outside edge of the first pin to the inside edge of the last pin (B). Then count the number of pins in the row (C). The pitch, equivalent to A, is equal to B/(C-1), or A = B/(C-1).

If there are two or more rows of pins on the header, then you will want to measure the distance between each row as well. The pitch of the connector is not always the same as the pitch of the ribbon cable, however. A two-row connector with pin spacing at 0.1 inches (2.54 mm) will require a ribbon cable pitch at half of the connector mating pitch, or 0.05 inch (1.27 mm, the most common pitch on ribbon cables).

Figure 2: Ribbon cable is usually either gray or rainbow. The red stripe is intended to indicate the pin one conductor of the gray cable. The header on the rainbow cable is an IDC connector header and cuts through cable insulation and somewhat into the conductors in the ribbon cable so as to make a good electrical conductor.  (Source: Wikipedia, User: Heron)

To measure the pitch of a ribbon cable, measure the cable from outside-edge to outside-edge of the cable, then divide by the number of conductors. Ribbon cable conductors are also called “ways.” This means that a ribbon cable with eight conductors would be called 8-way ribbon cable. Most rainbow-hued ribbon cables are colored in order of resistor values. The red stripe of an all-gray ribbon cable usually means that the red conductor is connected to pin 1.

 

Filed Under: FAQ, Featured, microcontroller Tagged With: basics, FAQ

Reader Interactions

Comments

  1. Yannick says

    June 19, 2019 at 8:06 am

    Is your first image correct? A appears to be demonstrating the distance between a pin and another pin that is 2 pins away, not an adjacent pin. The verbal description seems to contradict the image and its confusing.

    Reply
  2. Aimee Kalnoskas says

    July 2, 2019 at 6:20 pm

    Yes, you are right! Fixed!

    Reply
  3. Jack says

    March 11, 2020 at 9:45 pm

    Cool article but now the diagram shows the measure from the center of one pin to the left edge of the adjacent pin. I think this is meant to be a center-to-center measurement.

    Reply

Trackbacks

  1. Intel Management Engine and its applications are a backdoor with total PC access - NSO News says:
    May 3, 2020 at 3:01 am

    […] How to accurately measure header/connector pitch […]

    Reply
  2. Libreboot – Frequently Asked Questions says:
    May 3, 2020 at 3:45 am

    […] How to accurately measure header/connector pitch […]

    Reply
  3. Why is the latest Intel hardware unsupported in libreboot? - NSO News says:
    May 3, 2020 at 4:01 am

    […] How to accurately measure header/connector pitch […]

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

DesignFast

Component Selection Made Simple.

Try it Today
design fast globle

EE Training Center Classrooms

“ee

“ee

“ee

“ee

“ee

Subscribe to our Newsletter

Subscribe to weekly industry news, new product innovations and more.

Subscribe today

RSS Current EDABoard.com discussions

  • Upconverting a 20 GHz signal to 28 GHz
  • Need simple Buckboost current source controller IC for 2A ...nothing exists?
  • Sine Wave Generation with SPI and TIM interrupt in STM32
  • Determining Polarity
  • How calculate PNP turn OFF resistor in BuckBoost converter?

RSS Current Electro-Tech-Online.com Discussions

  • Simple data logger with monitoring of a load on off time for 60 days
  • Simulation not outputting anything on LTSpice (asc file attached)
  • Tesla coil progress
  • QA pass
  • after few times programming debugger can't recognize microcontroller(stm32f101vbt6)

Follow us on Twitter

Tweets by MicroContrlTips

Footer

Microcontroller Tips

EE World Online Network

  • DesignFast
  • EE World Online
  • EDA Board Forums
  • Electro Tech Online Forums
  • Connector Tips
  • Analog IC Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • Wire and Cable Tips
  • 5G Technology World

Microcontroller Tips

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us
Follow us on TwitterAdd us on FacebookFollow us on YouTube Follow us on Instagram

Copyright © 2021 · WTWH Media LLC and its licensors. All rights reserved.
The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media.

Privacy Policy