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 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.
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.
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!
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?
Hello Jordan, the answer to your questions is Yes. You can have two different outputs for a single input.
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?
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!
Did you ever create an enclosure for this board?
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.
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.
Thanks for the tips!
This is an open project, you are welcome to push changes https://github.com/dansku/audio_switch
Do you have a part number for the items you described?
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.
Amigo, no seu caso funciona o estÃ©reo?
Sim, o conector Ã© estÃ©reo.
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!!!
Agora que li no About que vocÃª Ã© brasileiro ;). Bem que eu desconfiei pelo nome mas nem me liguei.
Check the eagle file, there you will be able to see all connections.
Thank you, i knew that i had to learn how to use EAGLE sometime.
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?
Sore that would be great!
Hello is it okay if i use a TRRS Socket instead just a normal Jack ?
i just need to leave the mic pin unused right ?
Daniel, excelente post. Realmente Ã© isso que eu estou precisando. NÃ£o tem como comprar este switch jÃ¡ pronto?
I also wanted to buy it! but did not find it! most of them are unfortunately without the switch!