# Dual led and transistor 3906 3904 switching with spdt switch on and off toggle help

Hi i have 3904 and 3906 transistors, leds and spdt switch. I tried to use the 3904 so that when voltage is applied to base, it flow from power source into the led and then to ground. But now i have difficulty to use another transistor so that when 0v or ground is applied to the base of the transistor, the led will turn on. How would i do this? In other words the spdt will toggle 2 leds, one led will show the on status and the other led the off status. Schematic i drawn below is working but i need to add another led that will switch on if voltage is 0 or ground. Thanks a lot, very noob here.

• Do you need to use transistors? It doesn't seem necessary to me, with what little you wrote. – jonk Jul 2 '20 at 7:23
• i was using transistor to avoid noise from the led going in the rest of the circuit which is for audio purposes – noisanceritual Jul 3 '20 at 3:56
• Well, it just seems all you need are the two LEDs, two resistors, and the SPDT switch. – jonk Jul 3 '20 at 6:36
• Could you use a DPDT switch - one pole to switch the audio, and the other to switch the LEDs? – Peter Bennett Jul 4 '20 at 23:18

A basic solution would be to just make a copy of this circuit and invert the driving signal which is being applied to the base of the second transistor. Here is a small schematic:

You could also spare one transistor and use just a standard diode instead. Here is an example:

Edit #1

Since the driving signal is an audio signal, the following circuit can be used to detect the presence of an audio. It basically consists of amplifying the audio signal and using a peak detector to store keep the output DET high if the audio signal is present. You could use this detector to drive one of the circuits above. Maybe a buffer withh be required between both circuits in order to not overload the detected signal.

• Hi thanks for the help, but sorry that will not work with my intended purpose. The driving signal is what determines if one led is on or the other led. Can't have both leds on at the same time, i cant invert the driving signal it will make no sense in my needed purpose. I really need to just use the 3906 or similar transistor to turn on and off the led when signal at the base is near 0v or ground. – noisanceritual Jul 2 '20 at 19:17
• I am not so sure whether you understood the proposed circuits. You do not have to change the driving signal, since the additional transistors will do it for you. As you can see from the waveforms, at all times only one of the LEDs is ON. These circuits ensure that the operate in a complementary way. BTW, by driving signal I meant the common pin of your SPDT switch. – vtolentino Jul 3 '20 at 7:02
• Thanks Vtolentino, i tried your circuit on breadboard, it works like intended. Now i realise that problem is my driving signal. The driving signal for the moment is an audio signal so using your circuit makes it that both leds lights up following the audio signal and when the audio signal is off, just one led is on. I'm using a spdt swithc to activate or cut the audio signal, I think i would need to detect if the audio is active or note and have a steady DC signal for the driving signal, right? Any ideas? – noisanceritual Jul 4 '20 at 4:20
• I thought i could use the spdt pin that is connected to gnd on my schematic as the driving signal but since it's audio, it is driving both leds of your circuit following the audio + and - voltages so both leds turn on but i would need just 1 led to turn on when audio is active. Using your circuit when its muted there is just 1 led on that's fine, but both leds turn on when audio is active because it's ac and its gets below 0v as the audio waveform is generated. – noisanceritual Jul 4 '20 at 4:22
• The audio part was not included in your question. But, I updated my answer with an audio detector circuit which can be used to drive the other proposed circuits. – vtolentino Jul 4 '20 at 22:32