6

I got a Speaker pHAT for my Pi Zero. According to the pinout, it only uses 5 GPIO pins, so plenty of room to add something else.

The problem is, I'm not sure what's the best way to physically attach something after the hat is attached.

Two solutions come to mind:

  1. Soldiering a wire directly to the pin on the other side of either the Pi or the hat. The downside here is that it would be permanent.

  2. Wire wrapping around the male header between the Pi and the HAT. The 11mm header seems useful here as an extension of sorts, as it leaves plenty of room to wire wrap when attached:

hat with 11mm header

However, wire wrapping sounds flimsy at best.

Is there an elegant alternative to wire wrapping or perhaps some other means of attaching something to one of the unused pins when the HAT is on? Something like a ring tongue terminal that I could put on a single GPIO pin perhaps?

If not, what's the best way to go ahead with wire wrapping (i.e. any tips and tricks)?

3
  • They make boards that allow using multiple hats like this gearbest.com/arduino-scm-supplies/… Apr 27, 2017 at 22:11
  • I know of these, but it seems like an overkill - I literally need a single pin to attach a sensor (and power, but I can draw this from a different source).
    – fstanis
    Apr 27, 2017 at 23:10
  • To do proper wire wrapping you need a tool and 30ga solid wire so it is not as simple as it sounds. Given that pressure is pounds divided by area, the the sharp corners have so little area the pressure is large enough to weld the wire to the pin.
    – PaulF8080
    May 5, 2017 at 17:22

2 Answers 2

1

How about using a header that has extra long pins so that they stick as far past the speaker pHat as pins would normally stick? I'm thinking something like this: https://www.adafruit.com/product/2223

6
  • That's the header I have - however, I already have the headers on both the Pi and the HAT soldiered, so I'm looking how I could actually use it?
    – fstanis
    May 2, 2017 at 16:08
  • what kind of header do you have on the pi?
    – honi
    May 3, 2017 at 18:19
  • and what kind of header is on the HAT?
    – honi
    May 3, 2017 at 18:19
  • The Pi has a male header, the HAT (on the photo) has a female one.
    – fstanis
    May 5, 2017 at 13:47
  • 1
    I'd remove the header on the HAT, and replace it with the extra long pin header you've got. The pins will stick out the top side of the HAT and then you can use standard female jumper cables. the female 40-pin on the bottom side of the hat can be plugged directly into the pi 40-pin male header
    – honi
    May 7, 2017 at 3:06
0

You could check on https://pinout.xyz/ which pins are actually needed by the HAT and use jumper wires to connect them, leaving the remaining ones accessible.

Your Answer

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

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