BC337 not working - darlington???


Closed Thread
Results 1 to 12 of 12
  1. #1

    Default BC337 not working - darlington???

    Hi Guys,

    I'm using a pic12f675 to drive 5 groups of LEDs like the schematic bellow:



    As a driving transistor I'm using a BC337 but it looks like there's not enough current comming from each output of the PIC to drive the transistors (the LEDs are lit so poorly).

    If I connect the base of the transistor (with the 1K resistor) directly to the positive they lit very bright. I also tried with 470 ohms and less.

    So, I'm thinking that maybe a darlington transistor could help me with this.

    I already have the PCB done (see bellow) and I don't want to do it again, just replace the BC337 with something that might work. Any ideas?




    Thanks!

    Daniel.
    Last edited by DanPBP; - 14th October 2007 at 08:48.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Use a N channel MOSFET. You may have to bend the pins some to fit.

    Open question --- Why are so many people making the PCB and then trying to get things working? What happened to prototyping on a test board (bread board) to identify components needed?
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Lightbulb Possible without damage ...

    Hi,

    Instead of placing the 337 between 100R and the anodes of your leds ... place it between cathodes and Ground ...

    so simple as that !!! ... for next time you draw your PCB




    not to change the existing PCB ... use a P-channel Mosfet and invert your pic output level ...

    Alain

    PS: Hi, McCrack ... your N channel won't turn on the leds : its gate might be at a ~ 8.4v level ... far from PIC output limits !!!
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    PS: Hi, McCrack ... your N channel won't turn on the leds : its gate might be at a ~ 8.4v level ... far from PIC output limits !!!
    I guess I should have stated a 5volt or less saturation on the gate.
    Dave
    Always wear safety glasses while programming.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    First, thanks for you answers!

    And one more question, could this darlington transistor work?

    MPSA14 http://www.onsemi.com/pub/Collateral/MPSA13-D.PDF

    Daniel.
    Last edited by DanPBP; - 14th October 2007 at 20:34.

  6. #6
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Default OHM's law is critical!

    My first bit of advice would be to learn OHM's law. If you have a collector resistor of 100 ohm, and VC (voltage collector) is 7.2V, the most amount of current you'll squeeze out is: VC - (0.6 + 3.2) / 100 = ~34mA The 0.6 is the emitter drop on the transistor while the 3.2 is the drop on the LEDs.
    Last edited by T.Jackson; - 15th October 2007 at 07:01.

  7. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink

    Hi, Trent ...

    There are TWO leds in series ...

    7.2 - 3.2 - 3.2 - .6 = ... .2v

    .2 v / 100 ohms = ... 2 mA

    and the light was ... NOT !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  8. #8
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Default

    Must be those new white LEDs. Never used them.

  9. #9
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Default

    Hi, Trent

    Buuuuuut,

    you forgot the BC 337 base is @ 5v level !!!

    so, Emitter is @ 4.4v !

    4.4 - 3.2 -3.2 = - 2v !!! LOL

    The leds NEVER give any light !!! ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  10. #10
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Default

    It's an NPN transistor, meaning the base must be at 0.6V greater than the emitter in order for it to turn on. I too fail to see how it would ever switch on if those LEDs are in fact 3.2V types.
    Last edited by T.Jackson; - 15th October 2007 at 11:56.

  11. #11


    Did you find this post helpful? Yes | No

    Default

    Hi Guys,

    The circuit as I posted works fine with more than 5 volts on the base of the transistor, fully bright LEDs.

    Yesterday, I did a new PCB with the BC337 placed between cathodes and ground and now they work just fine with the PIC.

    Thanks for your help! Btw, I'm a software guy, sometimes electronics beats me.

    Daniel.

  12. #12


    Did you find this post helpful? Yes | No

    Default

    Hi Guys,

    I owe you a pic and a video of the final product, a "neon light" for my street R/C car...

    I made two of them, one for each side... Maybe I will make one for the front and one for the back with less LEDs...



    The software is not finished yet, just a test to see how it works... The idea is to generate different patterns according to the throttle/break signal given to the servos...



    Regards!

    Danie.

Similar Threads

  1. 16F877A with 20MHz XTAL not working?
    By ustredna in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 19th August 2011, 15:04
  2. 2x16 lcd not working with pic16f72
    By vu2iia in forum Schematics
    Replies: 4
    Last Post: - 16th February 2011, 14:59
  3. Blink.Bas on 18f45k20 Newbie seeks working example.
    By DiscoEd in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 29th December 2009, 03:36
  4. Pic 16 F628A not working
    By turkuaz in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 17th March 2009, 12:26
  5. Hserin not working...
    By robert0 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 22nd August 2005, 12:25

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