Electronics Led it up!

Discussion in 'Modding' started by Kickn, 23 Jun 2004.

  1. Kickn

    Kickn What's a Dremel?

    Joined:
    7 Oct 2003
    Posts:
    219
    Likes Received:
    0
    okay - cheasy title but a serious question :wallbash:

    I've got this:

    [​IMG]

    which works fine when I energise the HDD LED + and PWR LED + pins but when I hook it into the PC, power the pc on, both sets of leds (pwr and hdd) come on when there is no HDD activity - I know this is something simple that i've overlooked or whatever but I just cant see the solution.

    oh ya the LED's are fed with a 12v line.

    Thanks,
     
  2. kill_me_quick

    kill_me_quick Big and Blue

    Joined:
    7 Jan 2004
    Posts:
    941
    Likes Received:
    1
    It might be better to try the electronics forum (PM a mod to move it)

    Are the transistors upside down, shoudlnt the emitter be at the bottom?
     
  3. mrplow

    mrplow obey the fist!!

    Joined:
    5 Sep 2001
    Posts:
    2,563
    Likes Received:
    23
    To electronics!
     
  4. cpemma

    cpemma Ecky thump

    Joined:
    27 Nov 2001
    Posts:
    12,328
    Likes Received:
    55
    HDD you're right to use a PNP, but try without the 330R pull-up, just a base resistor to the -pin. If for some reason the +pin isn't the full 5V it's maybe doing a pull-down enough to turn the tranny on.

    Easier with optoisolators. ;)

    :blush: I've just read the post again, the 12V supply is the problem. You can't get the PNP bases over 5V, so they're always on. You need the pull-up from the -pin through about 10k to the 12V line, but I don't think that's safe with 5V logic. Either use 5V for the leds, a second NPN transistor to level-shift, or use optoisolators & 1 NPN.
     
    Last edited: 23 Jun 2004
  5. Kickn

    Kickn What's a Dremel?

    Joined:
    7 Oct 2003
    Posts:
    219
    Likes Received:
    0
    I would have thought that these (BC640's) could handle that voltage but I've never used them with 12v so your probably right :)

    Just on the use of optoisolators - why would I still need the NPN? I don't really have a choice with the LED's as they are blue and white and both need over 5v's.

    Thanks for your help!
     
  6. Kickn

    Kickn What's a Dremel?

    Joined:
    7 Oct 2003
    Posts:
    219
    Likes Received:
    0
  7. cpemma

    cpemma Ecky thump

    Joined:
    27 Nov 2001
    Posts:
    12,328
    Likes Received:
    55
    The BC640 transistors can handle 12V no problem (80V max) but to turn them off you've got to raise the base voltage to just over (12-0.6)=11.4V which you can't do with a 5V high. :wallbash:

    The opto-darlington is OK for 50mA (2-3 leds in parallel) but any more the NPN booster is needed. A cheap transistor will handle 200mA or more and will be fully on, the darlington may not be.
    If you're taking that from the Rapid specs, that's Vf(max) with typos added, normal Vf is around 3.6V. Check the genuine Kingbright specs. ;)
     
  8. Kickn

    Kickn What's a Dremel?

    Joined:
    7 Oct 2003
    Posts:
    219
    Likes Received:
    0
    Thanks everyone - after looking at it I did see that it was the 12v. I had switched this to give the LED's more voltage but I just simply took the resitors out all together and am running them off 5v's and its great :)

    I had drawn this up when I was planning to use 5v in the first place :wallbash:

    Cheers again!
     
  9. SteveyG

    SteveyG Electromodder

    Joined:
    23 Nov 2002
    Posts:
    3,049
    Likes Received:
    8
    Don't do that. You still need the resistors for your LED's (68R or greater).
     
  10. Kickn

    Kickn What's a Dremel?

    Joined:
    7 Oct 2003
    Posts:
    219
    Likes Received:
    0
    why? it seems to be working fine :)

    or is that just a stupid question?
     
  11. MrSaLTy

    MrSaLTy What's a Dremel?

    Joined:
    13 May 2002
    Posts:
    50
    Likes Received:
    0
    It may seem to be working fine but if your driving the LEDS above the recommended fV then they will probably burn out rather quickly.
     
  12. SteveyG

    SteveyG Electromodder

    Joined:
    23 Nov 2002
    Posts:
    3,049
    Likes Received:
    8
    ...And more importantly way above their maximum rated current. Consider the VI characteristic curve for a diode and you'll see why those resistors are needed.
     

Share This Page