# Speaker pHAT Pinouts?

**URL:** <https://forums.pimoroni.com/t/speaker-phat-pinouts/3879>\
**Category:** Support\
**Created:** [January 27, 2017, 4:57pm UTC](https://forums.pimoroni.com/t/speaker-phat-pinouts/3879 "2017-01-27T16:57:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![billynm25](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@billynm25](https://forums.pimoroni.com/u/billynm25)\
**Post date:** [January 27, 2017, 4:57pm UTC](https://forums.pimoroni.com/t/speaker-phat-pinouts/3879/1 "2017-01-27T16:57:55Z")

</div>

Hi, I’m connecting my Speaker pHAT to a Mini Black Hat Hack3r and i don’t see the pinouts on pinout.xyz yet.  
Are they published anywhere else ?  
Next task is to bling it up with a PiGlow and Blinkt VU.

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [January 27, 2017, 5:08pm UTC](https://forums.pimoroni.com/t/speaker-phat-pinouts/3879/2 "2017-01-27T17:08:32Z")

</div>

you can see a draft [here](https://github.com/Gadgetoid/Pinout.xyz/raw/master/src/en/overlay/speaker-phat.md). basically it uses the I2S interface for the DAC and the I2C interface for the SN3218 (VU).

… if you want to add a blinkt VU, make sure to bookmark our new pivumeter repo:

> **[pimoroni/pivumeter](https://github.com/pimoroni/pivumeter)**
>
> pivumeter - ALSA plugin for displaying VU meters on various Raspberry Pi add-ons - derived from ameter

to install, just run:

```
 setup.sh blinkt

```

… it’s worth noting though that @gadgetoid is still working on it, but a `git pull` + `setup.sh blinkt` at a later date will bring all improvements. We’ll also likely have a ‘simple installer’ at a later point.

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [January 27, 2017, 6:46pm UTC](https://forums.pimoroni.com/t/speaker-phat-pinouts/3879/3 "2017-01-27T18:46:55Z")

</div>

err - just to clarify - if you use Blinkt as a VU, the one on the speaker-phat will not be active/functional.

… on the other hand, the piglow uses the same SN3218 chip, and you can just snap one on the GPIO alongside the Speaker pHAT and both will emit a signal. the one of the piglow won’t necessarily be particularly meaningful in term of pattern but that is to be expected.

I’m not sure if @gadgetoid has plans to profile up the piglow for pivumeter, but if so, it would be an either/or support I would expect, meaning not expecting it to be used in addition to a speaker-phat.

---

<div class="post-metadata">

**Author:** ![robertbon](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@robertbon](https://forums.pimoroni.com/u/robertbon)\
**Post date:** [January 27, 2017, 8:28pm UTC](https://forums.pimoroni.com/t/speaker-phat-pinouts/3879/4 "2017-01-27T20:28:13Z")

</div>

Hi, I’m trying to link my Pi Zero with the Speaker pHAT using jumpers, so that I can carry on prototyping on my breadboard.

From what I can tell from the draft document linked above, I need link pin 2 (5v power), one of pins 6, 9, 14, 20, 25, 30, 34 and 39 (ground) and pins 3, 5, 12, 35 and 40 (i2c/i2s).

Is this correct?

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [January 27, 2017, 8:43pm UTC](https://forums.pimoroni.com/t/speaker-phat-pinouts/3879/5 "2017-01-27T20:43:41Z")

</div>

yes, absolutely correct!

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [January 27, 2017, 8:51pm UTC](https://forums.pimoroni.com/t/speaker-phat-pinouts/3879/6 "2017-01-27T20:51:59Z")

</div>

here’s a screengrab while waiting for the page to go up:

 ![](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/6/6a083f706a4d232adad22bfe0f48101ffc66f639.png)

---

<div class="post-metadata">

**Author:** ![jimeneyborg](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jimeneyborg](https://forums.pimoroni.com/u/jimeneyborg)\
**Post date:** [April 25, 2018, 4:44am UTC](https://forums.pimoroni.com/t/speaker-phat-pinouts/3879/7 "2018-04-25T04:44:13Z")

</div>

Hi, did your jumper cable setup work for you? I tried connecting the draft layout exactly to same position pins on pi zero board (using pin 6 for ground) - but i get nothing.  
When I plug the speakerphat directly into the pi zero header however it works…

---

<div class="post-metadata">

**Author:** ![fpgaminer](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@fpgaminer](https://forums.pimoroni.com/u/fpgaminer)\
**Post date:** [December 11, 2018, 8:16pm UTC](https://forums.pimoroni.com/t/speaker-phat-pinouts/3879/8 "2018-12-11T20:16:09Z")

</div>

Adding my experience here for future travelers.

I also needed to write my Speaker pHAT using jumper wires. Following the pinout on pinout.xyz I wired up the three I2S lines, the two I2C lines, 5V, 3.3V, and one of the GND connections.

(Be extra careful when doing this, as it’s easy to get the orientation wrong and wire things incorrectly, which could damage your Pi and/or pHAT. Remember that the pHAT sits on top of the Pi, so its pinout is essentially mirrored when you flip it over to plug in jumper wires.)

The result was a garbled speaker. My initial attempt wired only pin 34 as ground.

So I added a second ground wire; pin 14. Now the speaker sounds fine.

There’s no schematic or board layout for the Speaker pHAT that I’m aware of, so it’s hard to know if the Speaker has a split ground plane; if only one ground connection just wasn’t enough grounding; or what. I’m not going to explore further. But hopefully this helps others who run into similar issues.
