Calulating BJT base resistance for PIC led switching?


Results 1 to 12 of 12

Threaded View

  1. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Connect your NPN transistor with the emitter to ground then you can calculate the resistor in this way:

    R = (Vin - 0.7)/Ib

    Where:
    Vin = pic output (5 v)
    0.7 = base/emitter diode threshold
    Ib = desired base current ( 2mA is what you need for saturating 20 mA load)

    Nearest value = 2,2 K

    LM555 can be connected directly to 9 V PS and the output (pin 3) can drain your 20 mA load without any problem. So you can connect your led + 330 ohms directly to the IC.

    Al.
    Last edited by aratti; - 10th November 2008 at 16:37.
    All progress began with an idea

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 06:14
  2. Free Project - 245 LED Display
    By T.Jackson in forum Code Examples
    Replies: 221
    Last Post: - 16th August 2009, 04:59
  3. new and need help
    By smeghead in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd November 2008, 20:19
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. can't even flash an LED
    By bruno333 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th April 2005, 13:27

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts