So I'm a recent newbie to the world of electronics and have been working on a personal project using the Pi Zero W but I've reached a snag when it comes to sorting out audio.
I have 2 problems I'm trying to figure out:
1) Mute speakers when 3.5mm male is in female jack and vice versa. 2) Control the volume for both speakers and 3.5mm.
Now I've seen tutorials online on how to create an amp op circuit using a 3.5mm plug for amplifying a internal speaker but seen nothing so far online in regards to using a 3.5mm jack.
I was told by an electronics buddy I could use an audio switching MOSFET and to look at differential OP amps as circuit boards but still alot of it confuses me.
At current my project is using a piezo speaker with the goal of simply playing single notes. Although for other parts of my project I will be using sound files and want to also eliminate any loss of sound quality when transferred between speaker/3.5mm.
Any help will be appreciated if able to help. Remember I'm newbie to this so apologies if I don't pick up answer straight away and know exactly what you're talking about.
Edit: I see answers I can understand the 5pin jack and the pins shorting out stuff. What I'm more concerned about is forming the circuit itself. As in are any helpful videos or images that you could point me? Cause there's 1 thing saying it but to be actually able to see it then makes all the better sense to myself.
Edit 2:
I think I've managed to understand it all correctly and following google searches as well got the circuit wired for potentiometer and speaker but could do with a checking with to see if I've got it all right (See image below).