# Pimoroni line out gpio pin

**URL:** <https://forums.pimoroni.com/t/pimoroni-line-out-gpio-pin/14132>\
**Category:** Support\
**Created:** [June 3, 2020, 5:18pm UTC](https://forums.pimoroni.com/t/pimoroni-line-out-gpio-pin/14132 "2020-06-03T17:18:36Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![olivfpv](https://avatars.discourse-cdn.com/v4/letter/o/e8c25b/32.png) [@olivfpv](https://forums.pimoroni.com/u/olivfpv)\
**Post date:** [June 3, 2020, 5:18pm UTC](https://forums.pimoroni.com/t/pimoroni-line-out-gpio-pin/14132/1 "2020-06-03T17:18:36Z")

</div>

Hi,

I have a raspberry zero and the lineout running with raspberry os desktop  
I figured out how to use only the board audio out and everything is working fine when I plug the board directly to the raspberry  
For my project, I need to use some of the Gpio pin of the raspberry for a relay and a on off button  
I found the line out pins used here, [https://pinout.xyz/pinout/pirate\_audio\_line\_out](https://pinout.xyz/pinout/pirate_audio_line_out)  
When I wire with these pins I have nothing on screen and a ultra distorted audio  
any idea how to solve this ?

I hope I’m clear enough, thank you

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [June 3, 2020, 6:51pm UTC](https://forums.pimoroni.com/t/pimoroni-line-out-gpio-pin/14132/2 "2020-06-03T18:51:40Z")

</div>

So now its hooked up with Jumper wires, and not plugged in directly?  
If yes, did you connect the two grounds on pin 25 and 39?  
If you use this,

> **[ProtoZero – Pimoroni Store](https://shop.pimoroni.com/products/protozero)**
>
> The ProtoZero is a prototyping board for the Raspberry Pi Zero, that also fits the A+, B+ and Pi2.

  
with a stacking header  
[https://shop.pimoroni.com/?q=11mm](https://shop.pimoroni.com/?q=11mm)  
You can plug it into the Pi Zero, and your pirate audio in on top of that.  
Then wire your relay etc to the proto zero. I used one with my Pirate Radio to add my own bigger buttons.  
 ![DSCF1063m](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/c/c9c3a79f4535289a724339a171d564cec54a9efd.jpeg)

---

<div class="post-metadata">

**Author:** ![olivfpv](https://avatars.discourse-cdn.com/v4/letter/o/e8c25b/32.png) [@olivfpv](https://forums.pimoroni.com/u/olivfpv)\
**Post date:** [June 3, 2020, 7:25pm UTC](https://forums.pimoroni.com/t/pimoroni-line-out-gpio-pin/14132/3 "2020-06-03T19:25:11Z")

</div>

thank you so much for your reply !  
yes now everything is hooked up with jumper wire  
I just tried with pin 25 and 39 no audio at all and no screen  
for this project I only use pin 27 and 22 for a 5V relay and pin 23 & 24 for an on off switch  
[https://pinout.xyz/pinout/pirate\_audio\_line\_out](https://pinout.xyz/pinout/pirate_audio_line_out)  
this page say line out use 13 pin but it doesn’t look to work and it don’t mention the 25 and 39 ground  
I don’t need to use the display of Pimoroni board, what are the pin who needs to be connected to make the audio work ??  
I would think about the protozero solution but for this project I really only need a audio out

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [June 3, 2020, 7:45pm UTC](https://forums.pimoroni.com/t/pimoroni-line-out-gpio-pin/14132/4 "2020-06-03T19:45:23Z")

</div>

Physical Pin number 22 (BCM 15), 23 (BCM 11) and 24 (BCM 8) are in use by the Pirate Audio.  
22 is Amp Enable, 23 is LCD SPI SCLK, and 24 is LCD SPI CS. Connecting something else to these pins is going to mess things up.  
If you look close Pin 25 and 39 have a black boarder around them, signifying they are used.  
Look at the other pins labeled ground and you will see the difference.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [June 3, 2020, 7:50pm UTC](https://forums.pimoroni.com/t/pimoroni-line-out-gpio-pin/14132/5 "2020-06-03T19:50:07Z")

</div>

The sound uses i2s. BCM 18 pin 12, BCM 19 pin 35 and BCM 21 pin 40, and maybe one or two more.

---

<div class="post-metadata">

**Author:** ![olivfpv](https://avatars.discourse-cdn.com/v4/letter/o/e8c25b/32.png) [@olivfpv](https://forums.pimoroni.com/u/olivfpv)\
**Post date:** [June 3, 2020, 8:34pm UTC](https://forums.pimoroni.com/t/pimoroni-line-out-gpio-pin/14132/6 "2020-06-03T20:34:24Z")

</div>

when I connect :  
22 (BCM 15), 23 (BCM 11) 24 (BCM 8), 25 and 39 ground  
BCM 18 pin 12, BCM 19 pin 35 and BCM 21 pin 40  
I also connected the pin 2 5V power  
nothing is happening  
I also tried with only BCM 18 pin 12, BCM 19 pin 35 and BCM 21 pin 40 but same nothing is working  
the board is still working when directly pinned to the raspberry

.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [June 3, 2020, 8:47pm UTC](https://forums.pimoroni.com/t/pimoroni-line-out-gpio-pin/14132/7 "2020-06-03T20:47:11Z")

</div>

Both grounds pin 25 and 39 need to be connected. Other than that it looks like you have all the other required pins connected. If you also have the relay and button wired up, remove them as a test.  
What are you using for jumpers? You need male to female jumpers.

---

<div class="post-metadata">

**Author:** ![olivfpv](https://avatars.discourse-cdn.com/v4/letter/o/e8c25b/32.png) [@olivfpv](https://forums.pimoroni.com/u/olivfpv)\
**Post date:** [June 3, 2020, 9:05pm UTC](https://forums.pimoroni.com/t/pimoroni-line-out-gpio-pin/14132/8 "2020-06-03T21:05:12Z")

</div>

sorry I forget to mention than pin 25 and 39 were also connected  
I’m using classic Dupont 2.54 mm male to female jumper  
[https://www.amazon.com/gp/product/B07GD2BWPY/ref=ppx\_yo\_dt\_b\_asin\_title\_o05\_s00?ie=UTF8&psc=1](https://www.amazon.com/gp/product/B07GD2BWPY/ref=ppx_yo_dt_b_asin_title_o05_s00?ie=UTF8&psc=1)

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [June 3, 2020, 9:12pm UTC](https://forums.pimoroni.com/t/pimoroni-line-out-gpio-pin/14132/9 "2020-06-03T21:12:56Z")

</div>

You doing everything right, I have no idea why it doesn’t work though?

---

<div class="post-metadata">

**Author:** ![olivfpv](https://avatars.discourse-cdn.com/v4/letter/o/e8c25b/32.png) [@olivfpv](https://forums.pimoroni.com/u/olivfpv)\
**Post date:** [June 3, 2020, 9:16pm UTC](https://forums.pimoroni.com/t/pimoroni-line-out-gpio-pin/14132/10 "2020-06-03T21:16:58Z")

</div>

I think so, thank you to have take your time to answer !  
I have one last question :  
using something breaking / prototyping board like ProtoZero duplicate gpio pin  
Doest it means that if I use one I will be able to use GPIO which are note use by the Pimoroni board ?

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [June 3, 2020, 9:23pm UTC](https://forums.pimoroni.com/t/pimoroni-line-out-gpio-pin/14132/11 "2020-06-03T21:23:59Z")

</div>

Yes, the Proto Zero will give you access to all the GPIO pins. Things like i2c can have multiple devices connected. Stuff like i2s are one device only. Any unused GPIO can be setup to do what you want.  
Here I used a Proto Hat to connect multiple breakouts to a Pi A+. I actually have a second one that plugs on top of the first one with a shutdown button wired up. I ran out of room on the first one.

 ![DSCF1463](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/5/5264fa9227feaffb5ae198c3e73ec199f1b6739b.jpeg)

---

<div class="post-metadata">

**Author:** ![olivfpv](https://avatars.discourse-cdn.com/v4/letter/o/e8c25b/32.png) [@olivfpv](https://forums.pimoroni.com/u/olivfpv)\
**Post date:** [June 4, 2020, 12:14am UTC](https://forums.pimoroni.com/t/pimoroni-line-out-gpio-pin/14132/12 "2020-06-04T00:14:29Z")

</div>

ok understood  
thank you again for these explanation I’will use a usb sound card more easy for what I want to do and I will keep the Pimoroni for an other project
