element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Community Hub
Community Hub
Member's Forum Using 12v at base of transistor
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Community Hub to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 29 replies
  • Answers 10 answers
  • Subscribers 537 subscribers
  • Views 6257 views
  • Users 0 members are here
  • transistor
  • 12v
  • car
Related

Using 12v at base of transistor

ntewinkel
ntewinkel over 9 years ago

Hi all,

 

I'm thinking of using a transistor in a car circuit, to switch a light depending on the state of another light.

 

So it will be 12v as the signal at the base of the transistor.

 

I have a bunch of pn2222a transistors, and I can't figure out from the datasheet what the maximum means for that. It seems to be a reverse maximum (ie, don't let the output be more than 5v over the base voltage).

 

So the question is - is it possible to switch a transistor like that using 12v at the base?

 

Thanks!

-Nico

 

ps, I know I can easily do this using relays, but those take up more space, and I'd prefer to avoid the mechanical bits.

  • Sign in to reply
  • Cancel

Top Replies

  • michaelkellett
    michaelkellett over 9 years ago +2 verified
    Short answer - no. The base of a transistor is current driven - think of the base emitter junction as being a diode (the arrow on the emitter shows the direction of conventional current when forward biased…
  • ntewinkel
    ntewinkel over 9 years ago in reply to michaelkellett +2
    Thanks Michael! To be more precise with the details, they are to switch the LED taillights on a camper trailer. I should test how much it draws. The description said 3W, but that might be for the whole…
  • D_Hersey
    D_Hersey over 9 years ago +2 suggested
    Maybe there is a POTS soln: How To Install A Trailer Light Taillight Converter In Your Towing Vehicle I am not quite sure how the brake light signal is derived from turn signals. If you can come up with…
  • michaelkellett
    0 michaelkellett over 9 years ago in reply to D_Hersey

    I've only ever seen one state machine project of any complexity implemented in PROM and it was a total and complete disaster. The idea was to avoid software and its approvals for an application of the highest integrity but the result was to end up implementing software in delays in Rs and Cs - Nico will have all the same kind of problems.

     

    A nice little AVR will do him fine - can be reprogrammed as often as he likes, is supported by free software and probably costs a lot less than a PROM and supporting logic image

     

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • D_Hersey
    0 D_Hersey over 9 years ago

    One advantage to doing it in parallel is that the circuit 'warms up' quickly.  I recommend that Nico scours the markets in search of a POTS soln. as this has got to be a common problem given the ubiquity of automobiles.  I often see lotsa one-shots outside many programmable logic  implementations as well.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 9 years ago in reply to michaelkellett

    I think Michael is right on that - I have no idea how to do anything with PROMs. I'm a software guy by day so the microcontrollers are not a big step.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 9 years ago in reply to D_Hersey

    Maybe there is a POTS soln:

     

    The only thing I can find is this:

    http://www.towready.com/products/electrical-wiring/taillight-converters/taillight-converter/!FQHI%7CfPlggV5dvshDkncux76n…

     

    But their FAQ says it doesn't support LED lights.

     

    Other than that, it's hard to find anything because most results are about converting the other way - from brake + signal in a car to a 4-wire plug. I think your link is about wiring up a connector in the car.

     

    edit:

    The good part about finding this converter is that it shows there's a solution image  I'm curious what their circuitry looks like.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 9 years ago in reply to ntewinkel

    oh wait... I might have read that wrong - it doesn't work with LED lights on the "tow vehicle", so LEDs on the trailer should be ok.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • D_Hersey
    0 D_Hersey over 9 years ago

    Computers have gotten so big that they have become well suited to emulating PROMs.  Something like bool LUT [0xFFFF];  You need a minimum address space of 2^n, where n is the number of input states.  Your bus width is dependent on the number of outputs, eight should be plenty.  You can make a coupla fns that emulate the turn signal and brake pedal inputs through the keyboard and one that emulates the various lights you have on the screen.  Your program's MPD upon receipt of a new keypress updates the array, which causes, potentially, a change on the light models shown on the screen.  I do not know why MK and co have such trouble with this method, it is a fairly common one.  I do note, in passing, that the UK was quite slow to phase out leaded gas.  Basically combinatoric logics can be supplanted with LUTs

     

    If there is a soln that works but for lightbulbs, not LEDs, you could use some kind of comparator circuit to detect when it intended to flash the bulbs and use it to drive your amplifier to power your LEDs.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 9 years ago in reply to D_Hersey

    To understand why the trivial state machines you can model with reasonably sized  arrays of look up tables consider how you might implement a delay or a counter such as you would use for debouncing the inputs of Nico's problem.

    When complex systems are modeled in a primarily state machine environments like Stateflow (a MATLAB add on) the model relies on hierarchical state machines with complex transitions as well as the ability to perform arithmetic  - these are not simple in LUTs.

     

    But you can always confound us with a suggestion (schematic)  for a functional LUT based controller that costs less and is easier to develop and debug than an AVR image

     

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 9 years ago in reply to michaelkellett

    I was just thinking about this some more...

     

    With your circuit locking the brake lights on, I think I can now make the flashers work properly.

     

    The logic is: if the brakes are not on, then light the signal light that is ON. When the brakes ARE on, light the signal light that is OFF.

     

    That would save getting into more complex microchip or PROM or whatnot.

     

    Cheers,

    -Nico

     

    (ps, camping this weekend, so I'll likely be MIA most of the time)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 8 years ago

    Hi All,

     

    I think I have to figured out now, using 4000 series logic chips. I started a new post: https://www.element14.com/community/message/213861/l/trailer-lights-logic#213861

     

    Thanks again for all of your help getting me to this point image

     

    Cheers,

    -Nico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
<
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube