the12volt.com spacer
the12volt.com spacer
the12volt.com spacer
the12volt.com spacer
icon

Transistors to switch leds on/off


Post ReplyPost New Topic
< Prev Topic Next Topic >
recognition 
Member - Posts: 3
Member spacespace
Joined: February 08, 2006
Location: United Kingdom
Posted: February 09, 2006 at 7:09 AM / IP Logged  

Hi, I'm new!

Right, I need to wire up a blue led and red led. They need to switch from red to blue when 12v signal is applied.

I have used relays before but found them to noisy  (I want a silent operation)

I have a basic understanding of transistors but could do with some guidance.

Or alternatively, I know I can switch from blue -> red without a relay or transistor because the red led has less resistance then the blue, but can I make it work the other way round?

Cheers!

firstrax 
Copper - Posts: 113
Copper spacespace
Joined: January 18, 2006
Posted: February 09, 2006 at 7:37 AM / IP Logged  

Transistors to switch leds on/off -- posted image.

coppellstereo 
Silver - Posts: 785
Silver spacespace
Joined: November 21, 2005
Location: United States
Posted: February 09, 2006 at 9:38 PM / IP Logged  

what is PNP and NPN ?

firstrax 
Copper - Posts: 113
Copper spacespace
Joined: January 18, 2006
Posted: February 09, 2006 at 9:45 PM / IP Logged  
coppellstereo wrote:

what is PNP and NPN ?

Basically,

PNP, 0 or -volts on the base switches the transistor on.

NPN, + volts on the base switches it on.

coppellstereo 
Silver - Posts: 785
Silver spacespace
Joined: November 21, 2005
Location: United States
Posted: February 09, 2006 at 9:50 PM / IP Logged  
I think I understand.  I'm new to reading these schematics.
firstrax 
Copper - Posts: 113
Copper spacespace
Joined: January 18, 2006
Posted: February 09, 2006 at 10:07 PM / IP Logged  
Its like relays. The first few times we touch them they seem strange and complex. But after wiring up a few they become just another tool.
recognition 
Member - Posts: 3
Member spacespace
Joined: February 08, 2006
Location: United Kingdom
Posted: February 10, 2006 at 3:59 AM / IP Logged  

Thanks for the diagram, but I think that works in the opposite way to what I want.

When 0v from the input, red should be on and blue off.

When theres 12v from the input, it should be blue on and red off.

Should i just swap the PNP and NPN transistors around?

Also, I've been trying to make this but with no luck. would I need NPN transistors for this schmatic?

Thanks for your help!

Transistors to switch leds on/off -- posted image.

firstrax 
Copper - Posts: 113
Copper spacespace
Joined: January 18, 2006
Posted: February 10, 2006 at 8:15 AM / IP Logged  

Try this.

Transistors to switch leds on/off -- posted image.

Probobly not enough current to the bases to forward the transistors. Try a pull up on the base of the second transistor. Might also want to lower the resistance of the base resistors to get more current through the base. You can go all the way down to the hundreds without damage.

Yes those should be PNP. Recommend 2N3904.

Also, if the input to the base of the first transistor floats when not connected to 12v you will need put a pull down resistor on it. If you float a base its anyones guess what state of saturation it will be in.

firstrax 
Copper - Posts: 113
Copper spacespace
Joined: January 18, 2006
Posted: February 10, 2006 at 8:17 AM / IP Logged  
recognition wrote:

Thanks for the diagram, but I think that works in the opposite way to what I want.

When 0v from the input, red should be on and blue off.

When theres 12v from the input, it should be blue on and red off.

Should i just swap the PNP and NPN transistors around?

Your right, opposite.

Swap the leds, not the transistors.

firstrax 
Copper - Posts: 113
Copper spacespace
Joined: January 18, 2006
Posted: February 10, 2006 at 8:20 AM / IP Logged  
firstrax wrote:

Those should be PNP. Recommend 2N3904.

I meant to say NPN.

10 times fast, npn,npn,npn........................

Page of 2

  Printable version Printable version Post ReplyPost New Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

  •  
Search the12volt.com
Follow the12volt.com Follow the12volt.com on Facebook
Sunday, April 28, 2024 • Copyright © 1999-2024 the12volt.com, All Rights Reserved Privacy Policy & Use of Cookies
Disclaimer: *All information on this site ( the12volt.com ) is provided "as is" without any warranty of any kind, either expressed or implied, including but not limited to fitness for a particular use. Any user assumes the entire risk as to the accuracy and use of this information. Please verify all wire colors and diagrams before applying any information.

Secured by Sectigo
the12volt.com spacer
the12volt.com spacer
the12volt.com spacer
Support the12volt.com
Top
the12volt.com spacer
the12volt.com spacer