Calulating BJT base resistance for PIC led switching?


Results 1 to 12 of 12

Threaded View

  1. #9
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    let's see..
    CASE 1:
    normal red led driven by pic
    I need 2V, 15mA, driven by 5V from PIC
    I will need 200 Ohms current limiter (5-2/0.015) between led and PIC.
    OK

    CASE 2:
    ultrabright led supplied by 9V battery, controled by a BJT (BC182L, HFE(min) = 80) driven by PIC (5V)
    Current limiter to get 2.1V 20mA with 9V => (9-2.1/0.02) = 345 Ohms
    Then for the Base current limiter I will have: 80/5 = 16 => 20/16, 5-0.7/1.25 = 3.44 KOhms resistor or less
    OK!

    CASE 3:
    infrared led supplied by 9V battery, controled by a MOSFET (IRLD110) driven by pic (5V)
    Current limiter to get 1.4V 250mA: 9-1.4/0.25 = 30.4 Ohms
    Right too... BUT
    P=I*I*R = 250mA*250mA * 30.4 = ~2Watt
    sometime it's nice to place some led in serie to drop the current a little and avoid to brown your PCB... nice to heat an enclosure though

    CASE 4:
    One Pic pin controls a BJT (BC182L) to pull to GND a pin of another PIC.
    The pins of the two pic are connected via a 1K resistor, so current between pics will be 5/1000=5mA
    5/16 = 0.3125, 5-0.7/0.3125 = 13.76K resistor or less to be used as base current limiter
    OK
    CASE 5:
    LCD backlight controled by pic (5V) via a BJT (BC182L). Backlight need 5V 70mA.
    70/16 = 4.375, 5-0.7/4.375 = 0.98K or less to be used as base current limiter.
    OK

    CASE 6:
    A 5V, 30mA relay controled by a pic (5V) via a BJT (BC182L).
    30/16 = 1.875, 5-0.7/1.875=2.29K or less to be used as a base current limiter
    OK
    CASE 7:
    A PIC (5V) is used to pull to GND the TRIGGER pin of a LM555 via a 1K current limiter (so we will have 5V, 5mA) and a BJT (BC182L).
    5/16 = 0.3125, 5-0.7/0.3125 = 13.76K resistor or less to be used as base current limiter
    OK

    Sounds like you understood correctly what i said... easy huh?
    Last edited by mister_e; - 19th November 2008 at 20:36.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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