As an Amazon Associate we earn from qualifying purchases.
Almost every hobby electronics project needs a way to join a board to another board, a module or a breadboard. The most common answer is a strip of metal pins in a plastic body, often called a Berg strip. This page covers the 40-pin, 2.54 mm break-away headers we list: female, male, and a male and female pair. It explains what they are, how they differ and how to use them.
Berg strip connectors available
All three options below are 40-pin break-away headers with a 2.54 mm pitch. The price and stock figures are the ones given in the original listing.
Berg Strip – 40 Pin Break-Away Headers – Female – 2.54MM
Price: 6
Quantity remaining: 30
Berg Strip – 40 Pin Break-Away Headers – Male – 2.54MM
Price: 5
Quantity remaining: 30
Berg Strip PAIR – 40 Pin Break-Away Headers – Female & Male – 2.54MM
Price: 10
Quantity remaining: 30
Buying the pair costs 10, while a female strip and a male strip bought separately add up to 11. If you need both types, the pair is the cheaper choice.
What is a Berg strip?
A Berg strip is a row of evenly spaced metal pins held in a plastic base. Berg was originally a connector brand, and the name stuck as a general term for this style of header. You will also see them called pin headers, header strips or single-row headers.
They are used to make a removable connection between a circuit board and something else, such as another board, a sensor module, a display or a set of jumper wires. Because the connection is not soldered at both ends, you can unplug and swap parts without desoldering anything.
What “40 pin break-away” means
A 40-pin strip has 40 contacts in a single row. Break-away means the strip is made to be shortened. There is a small notch between each pin, so you can snap or cut the strip to the length you need.
This is useful because boards need different numbers of pins. A sensor might need four, a small module eight, and a development board twenty or more. One 40-pin strip can cover several of these jobs.
- Snap by hand: bend the strip at the notch until it separates. It works for quick jobs but can leave a rough edge.
- Cut with flush cutters: this gives a cleaner result. Cut through the plastic between pins and not through a pin itself.
Break the strip so that you keep the number of pins you need. Snapping through a pin position leaves a damaged contact and usually wastes the pin.
What 2.54 mm pitch means
Pitch is the distance from the center of one pin to the center of the next. 2.54 mm is the same as 0.1 inch, which is the long-standing standard spacing for through-hole electronics.
It matters because this spacing matches breadboards, perfboard and prototyping boards, as well as many development boards and modules. A strip with a different pitch will not line up with these parts, so check the pitch before you buy.
Male vs female headers
The two types are designed to mate with each other.
- Male headers have exposed metal pins that stick out of the plastic. They plug into female sockets or into a breadboard.
- Female headers have sockets, or holes, that accept male pins and jumper wire ends.
A common setup is to solder a male strip onto a module and a female strip onto the board it plugs into. Many people also solder female headers onto a board so they can swap modules or sensors without soldering again.
Which one should you pick?
- Choose male if you want to plug a board into a breadboard, or connect it with female-ended jumper wires.
- Choose female if you want a socket on the board, for example to hold a module you may replace later.
- Choose the pair if your project connects two boards directly, or if you are not sure yet and want both types on hand.
How to use break-away headers
- Count the pins you need and break or cut the strip to that length. Test fit it against the board first.
- Insert the strip into the holes of the board. For male headers, a breadboard can hold the long side of the pins upright while you solder the short side.
- Solder one pin at the end and check that the strip sits flat and straight. If it is crooked, reheat that joint and adjust it.
- Solder the remaining pins. Each joint should be shiny and cone-shaped, with solder covering the pad and the pin.
- Inspect the joints for solder bridges between neighboring pins. The 2.54 mm gap is comfortable to work with, but a bridge is still easy to make.
Tips for a reliable connection
- Keep the strip square to the board while soldering. A tilted header makes it hard to plug in other parts.
- Do not force a male pin into a female socket at an angle. Insert it straight and with even pressure.
- Avoid pulling on the wire when unplugging a jumper. Hold the connector body instead.
- Do not overheat the joint. Long contact with the iron can lift the pad from the board or soften the plastic.
- For anything that carries significant current, or that will be exposed to vibration, check the specifications of the connector you use. Basic headers suit prototyping and light signal use, but they are not designed for every application.
Where these connectors are used
Pin headers are a basic part of hobby and prototype hardware. Typical uses include:
- Adding connection points to microcontroller boards and breakout boards
- Plugging sensors, displays and radio modules into a main board
- Making custom adapter boards on perfboard
- Creating test points where you can attach a probe or a jumper wire
Frequently asked questions
Can I cut a Berg strip to a shorter length?
Yes. That is the purpose of a break-away header. Snap it at the notch between pins, or cut it with flush cutters, so that you end up with the number of pins you need.
Will these headers fit a breadboard?
The male strip will, as breadboards use the same 2.54 mm (0.1 inch) spacing. The pins go into the breadboard holes, and the female strip accepts the same kind of pins.
Do I need to solder them?
To attach a header to a circuit board in a lasting way, yes. Soldering gives a solid electrical and mechanical connection. You can also push a male strip into a breadboard without soldering, but that is only a temporary fit.
What is the difference between a Berg strip and a pin header?
In everyday use, there is none. Berg began as a brand name, and people now use it for ordinary pin headers. Check pitch, pin count and whether you need male or female, and you will have the part you want.