Tristated output to two common Base transistor issue


Closed Thread
Results 1 to 40 of 55

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi Roger,

    Try that:

    If you use standard LEDs, replace the 22 Ohm resistors with 100 Ohm resistors.

    Best regards,

    Luciano

    EDIT: The note about the resistors is only if you use this circuit.
    To drive two standard LEDs (max 20 mA) you don't need transistors.
    Last edited by Luciano; - 6th September 2007 at 21:21.

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    20 LED's,... 20 Transistors, 20 Resistors. Start adding diodes, half-watt resistors.... Yuck!

    I think I'd just go with 3 of these

    <table><tr><td><a href="http://www.allegromicro.com/en/Products/Part_Numbers/6277/6277.pdf"><img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1974&stc=1&d=118911366 1"></a></td><td>

    Don't even need resistors on each LED.

    Up to 24V for LED drive.

    Set it for 50ma constant current.
    Shiftout the LED states

    And that's it.
    </td></tr></table>

    http://www.allegromicro.com/en/Produ.../6277/6277.pdf
    About $1.50 each in single quantities.
    <br><br>
    Attached Images Attached Images  
    DT

  3. #3
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263


    Did you find this post helpful? Yes | No

    Exclamation Current-hungry circuit

    One problem I see with Luciano's suggested circuit is that the two 22-ohm resistors form a voltage divider (!) pulling a maximum of 114 mA (5 volts / 44 ohms = 0.114 amps) when the LEDs are doing nothing. 10 channels of this is 10 x 114 mA = 1.14 amps.
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

  4. #4
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Wink

    Hi Russ,

    The circuit is for the brake light of a car, so the circuit gets the power
    only when the brake pedal is pressed. Also consider that power is generated
    by the alternator, so this current will also decelerate the car when the driver
    activates the brakes ...

    Best regards,

    Luciano

  5. #5
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Luciano View Post
    The circuit is for the brake light of a car, so the circuit gets the power only when the brake pedal is pressed.
    Aha! Thanks! In that case, Roger should go ahead and give your circuit a try!
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

  6. #6
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi,

    There are ony two 22 ohm resistors for the 20 LEDs.


    Best regards,

    Luciano
    Last edited by Luciano; - 6th September 2007 at 23:55.

  7. #7
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263


    Did you find this post helpful? Yes | No

    Red face Mea culpa!

    BrianT advised me by private message that I had oversimplified my earlier analysis, and he is right. I looked only at the voltage divider created by the resisitors built into the transistors and neglected to consider the diode drop across the base-emitter junctions of the transistors. The circuit, redrawn, looks like this:

    <IMG SRC="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1980&stc=1&d=118913663 8">

    With the diode junctions in place (a nominal 0.7 VDC drop across each), two voltages change: At A, 4.3 volts; at C, 0.7 volt. At B, it remains 2.5 volts. Both transistors are still "turned on" if there is no voltage present (a high-impedance state) at B.
    Attached Images Attached Images  
    Last edited by RussMartin; - 7th September 2007 at 05:33.
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

  8. #8
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi Roger,

    After testing my circuit on a breadboard I have found out
    that the circuit works, but the current available for the LEDs
    is too low for your application where the forward current of
    the LEDs is 50mA.

    Best regards,

    Luciano

Similar Threads

  1. Help changing CCP3 output pin
    By ChrisHelvey in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th July 2008, 02:30
  2. Bit Banging input to output on PIC16F876A
    By Bronurstomp in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 26th June 2008, 19:50
  3. Serious Serial Situation Setbacks...
    By Dansdog in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th February 2007, 03:46
  4. Using LEDs as light sensors
    By skimask in forum Code Examples
    Replies: 3
    Last Post: - 30th December 2006, 22:19
  5. HSEROUT Newbie question/problem
    By Mark Scotford in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 11th July 2006, 14:44

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