Calulating BJT base resistance for PIC led switching?


Results 1 to 12 of 12

Threaded View

  1. #1
    xnihilo's Avatar
    xnihilo Guest

    Default Calulating BJT base resistance for PIC led switching?

    Hi,

    Hoping this is not too off topic.
    I need my PIC to switch an ultrabright led.

    Using a BC182L general purpose NPN transistor from futurlec
    (http://www.futurlec.com/Transistors/BC182L.shtml)
    and an ultrabright led from futurlec
    (http://www.futurlec.com/LED/LED5YULB.shtml)

    I need to use a BASE resistor for my BJT.

    I'm using the ultrabright led at 2.4V 20mA with a 9V power supply, so I will be using a 330 ohms limiter resistor (9V-2.4V/0.02A)
    Then I've checked the web to find clues to calculate RB for the BJT but there are parameters I don't understand.

    according to
    http://www.kpsec.freeuk.com/trancirc.htm
    I should calculate the RB value with a pretty simple formula but when I have to find the Ic for the load, I'm stuck. How can I determine the right load resistance? Does it mean the total resistance of the current limiter for the led AND the resistance of the led? If so how can I calculate the resistance?
    I did not find the value of the led resistance in the specs of the led.
    Maybe using:
    U=R*I -> R = 2.4V/0.02A = 120 ohms?
    Then I should add the 330 ohms of the led current limiting resistor to have the Ic value using: 9V/.450Kohms = 20 mA?
    If so, then the RB should be (if HFE min is 100 and PIC supply is 5V):
    (5V*100)/(5*0.02A) = 5KOhms

    Am I right?
    Thanks for any hints...


    PS: I should add some voltage drop value somewhere for the transistor?


    In the same idea, I also have to switch an LM555 times but I don't know what value I should consider as the LM555 (the 'load') current and resistance...
    Last edited by xnihilo; - 10th November 2008 at 12:16.

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 : 1

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