Access to gpio when use pHat Speaker?


I just bought the speaker. I am plan to use 1 more sensor. But the speaker already block all pins…Is there any way to access the rest of the gpio without buy some extensions gadget?


As long as you don’t use any of the pins that the Speaker pHat uses, you should be able just to solder some jumper cables directly onto the top of the pins that stick through the pHat.
You can find the pins the Speaker pHat uses here:

yes, but the speaker phat has the female connector which you just plug the phat to raspi 40 pins. I cannot access the rest of the pins. I thought “HAT” means you can access the pins on top of speaker?


You could use:


Or a stackable header (if you haven’t soldered on onto Speaker pHAT already)

Or just solder directly onto the pins.

Or solder underneath the pins on the Pi itself.

Yeah, i thought about option 1 and 2. Option 3 is too late…already soldered. Option 5 and 6 would work but not reusable?

Thnks for the options, though :)


Solder on a female/male header to the bottom? :D

1 Like

Very funny. Take him away, pirates!

About why doesnt it connect to GROUND? I do see pins and 5V but no GROUND. 5 cables only?


Ground is documented as a little “pip” that covers the physical number instead of a complete bar. It’s there, but subtle. This is to avoid the visual noise that having a whole bunch of ground pins would add to most pinouts. If in doubt, it’s wise to assume every ground pin should be connected and work from there. While the Pi has a continuous ground plane, you can never trust a HAT or pHAT to.


So what you are saying is that i am need to connect all GROUND from Pi to the speaker?

Current i am use 1 GROUND to Speaker. When i run the, it sounds loud and awful.

If your board is soldered onto all 40 of the Pi’s headers, it should be connected to at least one ground pin; all that’s needed, since to connect it to all of them would mean re-wiring the printed circuit board!
I don’t believe a lack of proper grounding would affect the audio quality of your board noticeably, but it might be worth re-flowing your joints just to make sure. :)

It’s possible that your audio issues might be caused by some alsa config files, or because your speakers are being ran at simply a too high a volume (I’m unsure of their limits, since I have none myself.)

Thanks for the info.

That is what i thought. Anyway, i use the breadboard to test the speak with PIR sensor and it’s working, with 1 GROUND only.


1 Like