i want to build a bluetooth speaker with an additional audio-input jack.
When the 3.5mm audio-plug is inserted, i want to switch off the bluetooth-module, so that i can switch between these two audio input signals. The bluetooth-module is powered by 5V via USB-Connector.
The audio-jack has a detection-pin which is connected to GND when the plug is inserted. I am searching for a circuit which turns off the bluetooth-module when the detection pin goes to GND.
I am very new to electronics, but nevertheless i tried to create a little schematic and i dont know if it'll work. Here pin 1 of the switch is the detection-pin and pin 3 is the GND-pin of the audio jack. So when the plug is inserted the "switch is pressed" (i did not found a usable audio jack for me in eagle)
I dont know if i have to use a transistor or if some pullup/pulldown resistors only should do the job.
Thanks in advance !
Just for clarification: The BT Module isn't transmitting anything. It is a receiver for the second audio-input-signal. Anything i want to do is to switch to the jack as audio-input when a plug is inserted. The audio-signal then goes to a LM386 Amplifier driving an 8-Ohm Speaker.
PS.: Since the circiut will be soldered to a perfboard, i cannot use any SMD-Packages.