Benadryl
Posts: 4
Joined: Sat Jun 09, 2018 10:31 am

How do I add a headphone jack?

Sat Jun 09, 2018 10:51 am

I'm currently making a tablet from an old LCD and and an LCD controller board. The controller board takes audio from the raspberry pi and outputs it to L-, L+, R- and R+ connectors. Is there a way of having an audio jack between the audio connectors and the speakers so that when a pair of headphones is plugged in. No audio goes to the speakers.

I have attached a rough diagram so you can see what I mean.

Thanks
Attachments
Screenshot_20180609-115004.jpg
Screenshot_20180609-115004.jpg (87 KiB) Viewed 992 times

drgeoff
Posts: 8442
Joined: Wed Jan 25, 2012 6:39 pm

Re: How do I add a headphone jack?

Sat Jun 09, 2018 9:10 pm

The simple way of switching off speakers when headphone are plugged in is to use a headphone jack containing "switches" which are opened when the plug is present. However this requires that the two speakers have one side commoned so that they are L, R and GND just like the headphones. If your controller board contains an audio amplifier and is really producing L+, L-, R+ and R-, then you CANNOT use that technique.

Benadryl
Posts: 4
Joined: Sat Jun 09, 2018 10:31 am

Where would I get a switch like that?

Sun Jun 10, 2018 2:23 pm

Where would I get a switch like that?

User avatar
Z80 Refugee
Posts: 358
Joined: Sun Feb 09, 2014 1:53 pm

Re: How do I add a headphone jack?

Sun Jun 10, 2018 6:26 pm

It's a standard part. Put "switched stereo jack socket" in the eBay search box.
Military and Automotive Electronics Design Engineer (retired)

For the best service: make your thread title properly descriptive, and put all relevant details in the first post (including links - don't make us search)!

Benadryl
Posts: 4
Joined: Sat Jun 09, 2018 10:31 am

Sun Jun 10, 2018 10:23 pm

Is it possible to combine the r- and l- and use that as the ground and then have the l+ as the left and r+ as the right

User avatar
mooblie
Posts: 49
Joined: Fri Oct 14, 2016 2:07 pm
Location: The Scottish Highlands

Re: How do I add a headphone jack?

Sun Jun 10, 2018 11:20 pm

It depends on the audio circuitry in the LCD Controller, but probably NOT. And doing so will most likely damage that circuitry in the LDC Controller permanently. Sorry. (As drgeoff said.)

User avatar
Z80 Refugee
Posts: 358
Joined: Sun Feb 09, 2014 1:53 pm

Re: How do I add a headphone jack?

Mon Jun 11, 2018 8:38 am

There are two possibilities: the speaker driver is single ended but the -ve wires are provided separately for "convenience", or the driver is double ended. Simple test: measure the resistance between the two -ve wires, if it's zero you can combine them. If it's not zero, the speaker driver is probably using an H-bridge driver arrangement to increase the volume available from a low voltage supply, in which case a more sophisticated switching arrangement is needed. It's possible, but I will have to come back to this later.
Military and Automotive Electronics Design Engineer (retired)

For the best service: make your thread title properly descriptive, and put all relevant details in the first post (including links - don't make us search)!

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 10848
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: How do I add a headphone jack?

Mon Jun 11, 2018 9:04 am

I agree with the above (+1)

If L- and L+ are not combine-able, use separate switched jacks for left and right, instead of trying to combine them into a stereo jack.

User avatar
Z80 Refugee
Posts: 358
Joined: Sun Feb 09, 2014 1:53 pm

Re: How do I add a headphone jack?

Mon Jun 11, 2018 10:29 am

Maybe, but the problem with that is I know of no headphones where the -ve wires for L and R are not commoned. You could re-wire some headphones so that L and R go to separate mono plugs, with two mono switched sockets, but also note that the volume levels driving speakers will probably not be appropriate for driving headphones, so some kind of attenuation will be required (unless you want to keep turning the volume up and down).

There exist jack sockets with multi-way switching arrangements, but they are hard to get. The easiest choices are: (1) a manual push button / toggle switch to cut off the speakers; (2) a relay to do the job of the switch, engaged by a contact in the socket. Let me explain the manual switch circuit - it should be obvious how to automate it with a relay (for which you would need a "stereo with on off switch" socket, using the on/off contact to energise the relay).

The resistors I've shown with question marks are a case of trial an error, to get acceptable volume levels in the headphones at normal volume settings for the speakers. The capacitors float the DC load of the headphones commoned to 0V (which the bridged speaker drivers are not designed for).

58D4962A-1C56-4A7E-A6AD-95D25CBCD7B4.jpeg
58D4962A-1C56-4A7E-A6AD-95D25CBCD7B4.jpeg (136.9 KiB) Viewed 804 times
Military and Automotive Electronics Design Engineer (retired)

For the best service: make your thread title properly descriptive, and put all relevant details in the first post (including links - don't make us search)!

drgeoff
Posts: 8442
Joined: Wed Jan 25, 2012 6:39 pm

Re: How do I add a headphone jack?

Mon Jun 11, 2018 2:00 pm

If the LCD controller does use H-bridge type outputs the following is a simple approach. It uses the commonly available type of switched headphone jack. The circuit does have one important limitation. The "ground" connection of the headphone socket must never be connected to actual ground. That could happen if it was mounted on a metal panel or if the socket was used as a LINE out to connect to an external amplifier. The voltage rating of the capacitor must be at least that of the supply voltage to the controller board. 1000uF is the suggested value for phones of 32 ohm impedance. Lower values will impact the bass frequencies.
Attachments
phones.jpg
phones.jpg (40.69 KiB) Viewed 784 times

User avatar
Z80 Refugee
Posts: 358
Joined: Sun Feb 09, 2014 1:53 pm

Re: How do I add a headphone jack?

Mon Jun 11, 2018 2:14 pm

I guess that would work... worth a first try anyway (cheap and simple). The risk is that the volume will be too high for the 'phones, and there is nowhere to put attenuation without also creating cross-talk.
Military and Automotive Electronics Design Engineer (retired)

For the best service: make your thread title properly descriptive, and put all relevant details in the first post (including links - don't make us search)!

Benadryl
Posts: 4
Joined: Sat Jun 09, 2018 10:31 am

Fri Jun 15, 2018 9:08 pm

There is no resistance between the two negatives meaning I can combine them. I have a switched audio jack but I can't figure out what I connect to where. I have attached a picture...
Attachments
Screenshot_20180615-220746.jpg
Screenshot_20180615-220746.jpg (214.98 KiB) Viewed 638 times

User avatar
Z80 Refugee
Posts: 358
Joined: Sun Feb 09, 2014 1:53 pm

Re: How do I add a headphone jack?

Fri Jun 15, 2018 10:11 pm

I can't tell you which contact is which on that photo of the socket - you will need to work that out for yourself (it's not rocket science).

I would have thought the rest was pretty straightforward (now you have established the negatives are common) too: common the negatives and take them to the negatives of the speaker and the common return contact on the headphone socket, then for each of the positives take them to the pin on the socket which links to each side of the headphones when plugged in. Finally, there will be contacts on the socket which have the audio feed when the headphones are out but not when they are plugged in.

Apart from not knowing which contact us which, I don't like explaining every last detail because nobody learns by being told the answer. The diagrams already given should be enough of a clue (even if not exactly right for this situation).

Note there will be nothing to moderate the headphone volume.
Military and Automotive Electronics Design Engineer (retired)

For the best service: make your thread title properly descriptive, and put all relevant details in the first post (including links - don't make us search)!

kimmysawi
Posts: 1
Joined: Fri Jun 15, 2018 10:21 am

Re: How do I add a headphone jack?

Tue Jun 19, 2018 12:25 pm

Z80 Refugee wrote:
Fri Jun 15, 2018 10:11 pm
I can't tell you which contact is which on that photo of the socket - you will need to work that out for yourself (it's not rocket science).

I would have thought the rest was pretty straightforward (now you have established the negatives are common) too: common the negatives and take them to the negatives of the speaker and the common return contact on the headphone socket, then for each of the positives take them to the pin on the socket which links to each side of the headphones when plugged in. Finally, there will be contacts on the socket which have the audio feed when the headphones are out but not when they are plugged in.

Apart from not knowing which contact us which, I don't like explaining every last detail because nobody learns by being told the answer. The diagrams already given should be enough of a clue (even if not exactly right for this situation).

Note there will be nothing to moderate the headphone volume.
Image

It was the correct image and you can use it for headphone jack (Y) Cheers

crofter
Posts: 55
Joined: Thu Feb 22, 2018 11:28 pm

Re: How do I add a headphone jack?

Tue Jun 19, 2018 3:24 pm

this will not work for a bridge amp r + - and l + - should never be connected to each outher or it will blow up the amp chip

you need 4 pole plug on the headphone

and 4 switch contacts

good luck

crofter

User avatar
Z80 Refugee
Posts: 358
Joined: Sun Feb 09, 2014 1:53 pm

Tue Jun 19, 2018 3:46 pm

crofter wrote:
Tue Jun 19, 2018 3:24 pm
this will not work for a bridge amp r + - and l + - should never be connected to each outher or it will blow up the amp chip
If you had read the whole thread you would know we've already been there, and...
Benadryl wrote:
Fri Jun 15, 2018 9:08 pm
There is no resistance between the two negatives meaning I can combine them.
Military and Automotive Electronics Design Engineer (retired)

For the best service: make your thread title properly descriptive, and put all relevant details in the first post (including links - don't make us search)!

drgeoff
Posts: 8442
Joined: Wed Jan 25, 2012 6:39 pm

Re: How do I add a headphone jack?

Tue Jun 19, 2018 5:44 pm

crofter wrote:
Tue Jun 19, 2018 3:24 pm
this will not work for a bridge amp r + - and l + - should never be connected to each outher or it will blow up the amp chip

you need 4 pole plug on the headphone

and 4 switch contacts

good luck

crofter
My circuit with the single capacitor to ground will work for a bridge amplifier. It does not connect any of the 4 amp outputs to any of the other 3.

Return to “Graphics, sound and multimedia”

Who is online

Users browsing this forum: No registered users and 7 guests