Calulating BJT base resistance for PIC led switching?


Results 1 to 12 of 12

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Ok, i'm a poor teacher, but i think the following may help.
    <hr>
    You need to know the Hfe parameter of your BJT(gain). Here at 20mA, the minimum you may have should be 80.

    To make sure you saturate it properly, some will divide the Hfe parameter by 2, some by 5, and some others by 10.

    Let's use 5, so we have Hfe=16
    <hr>
    The base current is the Collector current/Hfe = 20/16 = 1.65 mA

    Assuming your PIC may give 5V at it's output, the base resistor will be
    (5-Vbe)/1.65mA = (5-0.7)/1.65mA = 2.606 K...

    anything in this range or lower will work.

    HTH
    Last edited by mister_e; - 10th November 2008 at 16:45.
    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