4

Does the Raspberry Pi have its own connectors for the 26 GPIO pins? If not what connectors do Pi users typically use for connecting these pins to peripherals?

4 Answers 4

8

You have a couple of options:

  • Female to male jumper wires (for use with a breadboard),
  • Alternatively you can add a set of female headers to the Pi and use the more common male to male jumper wires,
  • You can use a floppy drive ribbon cable (because the cable has more pins than the Pi it will hang over the edge and prevent it from being used with a case/enclosure),
  • You can make your own ribbon cable,
  • Adafruit (and most other Pi suppliers) has a ribbon cable (also available in white though not linked) specifically made to fit the Pi that works with many of the available cases.
  • They also offer a product called the Pi Cobbler which includes a cable, PCB and headers which make protoyping with a breadboard a breeze (this too is available in two styles)

For a more permanent installation I might use a ribbon cable and etch a custom PCB.

In the end which method you choose comes down to price, convenience, and how much you will be modifying your circuit.

4

The pins are standard 0.1 inch spacing pins, so you have a lot of options including

  1. ribbon cable with IDC connectors. Good option if you want to bring all the pins to another board using a single cable. Downside is that the IDC connectors have wide sides which means you must use one that completely covers the header.
  2. single pin crimp sockets. These are commonly found on jumper wires and often used for prototyping. Not a great soloution for final systems though as connecting and disconnecting the Pi is a pain.
  3. crimp pins in larger housings. These are readilly available from large electronics suppliers but the crimp tools can be a bit pricy. You can also sometimes salvage them with wires always attatched from scrap PC cases. These can be a good soloution if you want to connect to a group of pins but not the whole header or if you need wires going off from the header to a variety of places.
  4. various styles of board to board connector including ones with long square pins that allow stacking.

Unfortunately every brand has it's own names for these things, so finding them in supplier catalogues can be a bit tricky.

1

The connector types you may be looking for are called dupont connectors and have a pitch of 2.54mm. Searching for "dupont connector kits" should yield good results.

Otherwise, rectangular connectors can be found on the common electronics supply sites, such as Digi-Key or Mouser. You'd need to pull up rectangular connectors and narrow it down to the ones that have 2.54mm pitch.

1
  • 1
    This adds nothing to the accepted answer.
    – Chenmunka
    Commented Jun 24, 2023 at 8:57
1

I'm not sure whether you mean the GPIO connector on the Pi board itself or something to mate with it. I've been looking for the former, and after much research and many dead ends found that the search you need is "Unshrouded Pin Header". You can then narrow down by pitch (2.54mm) and number of pins. I'm posting this here in the hope it saves someone else the time I've taken on this ...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.