Build a 3.5mm Audio Switch

audio mux p2

I moved to Berlin a few months ago to start working as Lead Electronics Engineer at UNU Motors. As soon as I found my own place (after spending three months apartment hunting), I decided to buy a good audio monitor, so I could listen to music and watch videos with a decent audio quality. My choice was a BX5 M-Audio audio monitor, great speaker at a very good price. The only annoying thing is that every time I wanted to listen music from my computer, I had to take the P2 plug from the RaspberryPi (running OSMC) and connect to my mac, and vice versa… To fix this problem, I decided to make a small PCB where I can plug everything together and then flip a switch to toggle inputs.

I had a few 3PDT switches at home, so I decided to use them on the board, but I could have also used a DPDT switch by connecting all the grounds together. After ordering the PCB from OSH Park and testing it, I decided to share the project with the world, maybe it will be useful for someone out there. The board was designing using Eagle Cad and you can download the project clicking here or visiting the GIT repository.

The circuit

3pdt switch
The 3PDT switch has 9 pins, left, right and ground for each connector. Following the positions from the image above I created the board that will switch all three connections from two different inputs. The result is the PCB below.

audio mux p2 PCB
The board I sent to OSH Park had a small problem, the drill size was a bit too small and the switch didn’t fit in the holes, so I had to solder them on top. It still worked, but didn’t look as good as I wanted. The files I am sharing now already have the hole size fixed, so you don’t need to worry about that anymore.

Parts

You can find the audio sockets and the 3PDT switch on eBay. The PCB you can Order from OSHPark.

In a near future I will build a 3D Printed case for the board, once that’s done I will share it here!

More photos

20160409-IMG_8111 20160410-IMG_8129
20160410-IMG_8127 20160410-IMG_8125
20160409-IMG_8104

17 comments on “Build a 3.5mm Audio Switch

  1. Jordan Murphy April 10, 2016 7:30 pm

    Does this work in the opposite direction? For instance, can you plug a source into one side, and separate monitors into the side-by-side 3.5 mm jacks and use the switch to determine which output you are using?

    • dansku April 11, 2016 4:08 am

      Hello Jordan, the answer to your questions is Yes. You can have two different outputs for a single input.

  2. Alan February 12, 2017 1:01 pm

    I made one of these from your board, with the intention of switching one source between headphones/speakers, but I get a lot of interference on the speakers. Have you had an issue with that?

    • dansku March 8, 2017 4:12 pm

      Can you share a picture?
      The only problem with the board is that it makes a click sound when I switch. Also if I select a side where the cable is not plugged I can hear a noise. Other than that, it’s all good!

  3. Johnny July 25, 2017 3:47 pm

    Did you ever create an enclosure for this board?

    • dansku July 27, 2017 12:00 pm

      Hey Johnny, I have not, but it is a good idea!
      Feel free to share if you make one, or I will probably make one soonish.

  4. Don Kennedy August 15, 2017 8:36 pm

    Great project! Nice PCB, though as an audio person it should be a shielded (groundable) container / enclosure. As to the clicks, they should reduce “appreciably” with the use of fully wired grounds (no switching the commons, just solder them across at the switch) and the use of a “Make before Break” switch. When switched, the contacts in use remain closed until the motion of the switch blades closes into its new circuit position, at which point the old circuit opens. There is a selection of body and duty types. The momentary halving of the circuit impedance effectively attenuates any clicks that might have been caused by open circuit switching.

    • Alan B October 23, 2017 5:32 pm

      I’m also curious about a part number. My board works well after grinding out some notches for bulky audio cables, and using ferrite beads. The clicks on switching are the only nuisance.

      Thanks for sharing the project, Daniel.

  5. Caio Araujo October 19, 2017 8:56 am

    Amigo, no seu caso funciona o estéreo?

    • dansku October 19, 2017 10:27 pm

      Sim, o conector é estéreo.

  6. Thales Pomari May 5, 2018 12:14 am

    Nice project, i’m a starter in electronic projects and i’m learning on my own. I’m from Brazil and I have no one that could make this pcb for me, so my only way to do this is using a veroboard or something similar. Could you send me the connections scheme to reproduce in the veroboard, please? Thank you!!!

  7. Thales Pomari May 5, 2018 12:15 am

    Agora que li no About que você é brasileiro ;). Bem que eu desconfiei pelo nome mas nem me liguei.

    • dansku May 5, 2018 8:02 pm

      Opa!

      Check the eagle file, there you will be able to see all connections.

      Cheers

      • Thales Pomari May 6, 2018 12:57 pm

        Thank you, i knew that i had to learn how to use EAGLE sometime.

  8. Emma Lovelace August 19, 2018 7:48 pm

    I made a gerber file for your board. It makes ordering PCB’s much easier. I can email you it for github if you wish?

    • dansku August 21, 2018 11:05 am

      Sore that would be great!
      Thanks 😉

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.