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

transistors


Post ReplyPost New Topic
< Prev Topic Next Topic >
adhuot01 
Member - Posts: 11
Member spacespace
Joined: April 02, 2008
Location: Kentucky, United States
Posted: April 15, 2008 at 3:55 AM / IP Logged  
How do I use transistor to take a negative input and output a positive.  I was thinking maybe I could use a 741 op-amp with the inverting amplifier cofiguration vin/vout =-r2/r1 with r2=r1 12v(-) in should output 12 v(+) correct? Or can I use an npn or pnp transistor to do this?  If so how do it do it and what specific transistor should I use.  I am trying to make an led that I will put in my shift knob turn on with the dash lights, which is simple, a 1k resistor and 12v led then ground it and hook up to the dash light option in the fuse box, but I also want the same led to turn on when the door is open, which operates using a ground switch.  I will also need to use diodes so the doors dont turn on the dash lights and vis versa.  Does anyone have a solution?
Andy Huot
i am an idiot 
Platinum - Posts: 13,671
Platinum spaceThis member consistently provides reliable informationspace
Joined: September 21, 2006
Location: Louisiana, United States
Posted: April 15, 2008 at 4:27 AM / IP Logged  
This can easily be done with a relay and a diode, if nobody else helps you with this today, I can draw you a diagram tonight. If the LED is a 12 volt device the 1K resistor is already built into it. If it is a standard LED you will need the resistor.
KPierson 
Platinum - Posts: 3,527
Platinum spaceThis member consistently provides reliable informationspace
Joined: April 14, 2005
Location: Ohio, United States
Posted: April 15, 2008 at 10:01 AM / IP Logged  

You can do this with a PNP transistor, such as a 2N3906.

You would wire your signal through a 220 ohm resistor to the base of the 3906.  Wire the collector to 12vdc and your output will be the emitter (going through your 1000 ohm resistor to the LED).

When your signal wire goes to ground it will turn the transistor on and output the 12vdc signal.

Kevin Pierson
dualsport 
Silver - Posts: 983
Silver spacespace
Joined: September 27, 2005
Location: United States
Posted: April 16, 2008 at 2:51 AM / IP Logged  
Yep, PNP would be the ticket, might try a higher value resistor for the base. Since it's only switching an LED; a 2.2k should be fine, since the current gain is probably at least 20.
The base current would only be about 5mA, which would still be able to switch 100mA.
KPierson 
Platinum - Posts: 3,527
Platinum spaceThis member consistently provides reliable informationspace
Joined: April 14, 2005
Location: Ohio, United States
Posted: April 16, 2008 at 5:27 AM / IP Logged  
Yeah, that wouldn't be a bad idea.  The 220 ohm value is the value I use for 5vdc systems.  It would still work, on 12vdc but a higher value wouldn't hurt.  I usually try to limit the base current to around 25mA; a 560 ohm resistor will acomplish that.  For your small LED load, dualsport is correct, you could go much, much higher.  The beta of that transistor, I believe, is around 50.
Kevin Pierson

Sorry, you can NOT post a reply.
This topic is closed.

  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
Thursday, May 9, 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