I have a bi color led red/blue with a common cathode. the led will be regularly blinking with blue from a 12vdc pulsing circuit. when a sensor I have detects motion it has a wire and will send out a negative signal to the bi color led to switch it from blue to red as long as this negative signal is present. I figured I could use a couple of transistors to get this done but I'm not sure where to start. I know I will need to take this negative signal and convert it to positive for the positive side of the red led. I have 12vdc and ground as a power source.
on a side question how can I use a transistor in place of a mechanical relay that will switch with a ground command?
Welcome to the forum.
If you can make it out try this:
A npn and a pnp transistor, the pnp switches + to the red led using your - signal, then that switches on the npn which robs power from the blue led, note you need the 1k in series with the blue led as shown, even if there is allready one in the circuit driving the led.
hi finally got around to hooking the circuit up and testing it. one thing I would like it to do that it is not. the blue led is blinking via the pulsating input. when I ground the one input for the red one it goes on but the blue also continues to blink. is there a way to get the blue led to cut off power when the red led is on? maybe another transistor to stop power to the blue led?
you are correct I had the one miss wired I got it working the way I asked. but the first way I wired it might work for me as well because it gave the illusion that the red led was flashing because the way the blue was going on and off but I think I will use this circuit then add the timer to pulse the red led.
on another issue I want to use a transistor instead of a relay to switch loads because transistor will draw less currant during holding can I use a 2n6387 or 2n6667 transistor to do this?
I will have a positive trigger to activate one relay but I also will need to use a negative trigger for another realy trigger.