«

»

Oct
22

Audio output selector

Using my headphones with my computer is frustrating.  Whenever I want to use my headphones, I have to move my computer so I can access the back panel, unplug my computer speakers, and plug-in my headphones.  Okay, maybe it isn’t that difficult, but it should be easier.  How about a device that allows you to select between headphones or computer speakers?

Solution

After some careful thought, I realized such a device could be implemented using three 3.5mm jacks and one dual-pole dual-throw (DPDT) switch (see the schematic below).

audio-output-selector

As you can see, the DPDT switch simply selects whether the input is connected to the headphones or the computer speakers.

Other Possibilities

A similar device can be implemented using two dual-pole single-throw (DPST) switches.  This would allow the user to select headphones, computer speakers, or both.  A much more sophisticated implementation might include operational amplifiers allowing the user to adjust the gain on each output.


9 comments

  1. Sam says:

    jackpot. this is so cool!

  2. Jared Huntington says:

    You can always adjust the gain passively by just using a potentiometer. An op amp would be nice for boosting signals though. You could also just use a SPDT and leave the grounds connected together at all times. Nice work! I need to make one of these.

  3. kris says:

    @jared
    I like the idea of using a potentiometer to passively adjust the gain. Usually I have the maximum gain at the output of my PC which is good for my computer speakers, but bad for my headphones. The potentiometer would allow me to passively lower the gain for the headphones while delivering the maximum gain to the speakers.

    Unfortunately you have to use a DPDT switch because it is a 2-channel stereo signal. Even with the DPDT switch, the grounds are connected together at all times. Thanks for the comment!

  4. roochie says:

    I’m trying to build my own audio switch which is essentially exactly the same as this one. Problem is when testing my TRS sockets, I get mono sound (i.e. audio is only coming out from my left speaker) I’ve checked my wiring over and over so I doubt its that. Could it be that my TRS socket only plays Mono? I just need clarification on whether there is are mono only sockets and stereo sockets.

  5. Kris says:

    Roochie, check your audio cable. You might be using a cable with TS jacks (mono). You can tell by looking at the jacks. The link below has a picture of 4 jacks. The jacks from left to right are: 2.5 mm TS, 3.5 mm TS, 3.5 mm TRS, and 6.35 mm TRS. All of your audio cables must have TRS jacks for stereo sound. Thanks for the comment!

    http://en.wikipedia.org/wiki/File:Photo-audiojacks.jpg

  6. Patrick says:

    What program did you use to make the drawing? I looking for a real simple cad type program for drawing such as this.

  7. Kris says:

    I used Cadsoft Eagle which is fairly easy to use if you intend on making a printed circuit board. However, if you just want to make a simple drawing, it probably isn’t the best solution.

  8. Trevor says:

    This is EXACTLY what I was looking for. Didn’t want to spend $20 + $20 shipping on a device I could make for a few bucks. Question: When you mention, “Even with the DPDT switch, the grounds are connected together at all times”, are the grounds for the jacks connected TO anything within the box (like, each other), or are they taken care of by the male connectors?

    A little new to electronics.

    Thanks

  9. Kris says:

    Thanks for the comment. Yes, all of the ground connections are connected together. The 3.5mm jacks should have 3 solder lugs: 1 for left audio, 1 for right audio, and 1 for ground. All of the ground lugs should be connected together.

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=""> <strike> <strong>