I've researched this for a while now and can't find any answers for the life of me.. How can I add a headphone jack to an audio amp with speakers that disables the speakers when headphones are plugged in? There are only two possible explanations I can think of: there would have to be some sort of physical switch that cuts the speaker lines when headphones are plugged in, or something would have to be coded in a chip to disable the speakers. Can someone tell me how it's done?
On the mechanical option for disconnecting speakers...
This is as old as the hills...probably 1960's. (An interweb search for '3.5mm socket changeover buy' leads you to some.)
1 is GND 2 is AmpL and normally connected to 4 SpkrL 3 is AmpR and normally connected to 5 SpkrR
When you plug the headphones in, 2/3 are sprung away from 4/5 to disconnect the speakers and are now connected to the headphones. Unfortunately, all of the speaker power is now being thumped into the headphones. If the headphones have a different/higher impedance to normal speakers, as they certainly do these days, it sounds trebley.
On the electronic option...
Here's an example circuit, showing one way of doing it. When the headphones are plugged in, the resistors pull the detect voltage to high and constant. This signals to the amplifier circuit to deliver a signal suitable for headphones.