Author Topic: Help with circuit to drive LED lights  (Read 6515 times)

0 Members and 1 Guest are viewing this topic.

Offline FirethelaserTopic starter

  • Newbie
  • Posts: 5
Help with circuit to drive LED lights
« on: May 01, 2012, 05:03:33 pm »
Hello,

(Please see attached schematic)

I have a set of 6 simple LED's that are each hooked to the single pole side of their own SPDT switch. The other poles are connected to a 5v source and 0-5v square wave signal source fed from a ZTX458 transistor. The switch selects between these two sources with the LED's activating when the square wave signal goes low (they blink).

My problem is that when the switch selects the square wave source, the fourth LED (from the left) fails to blink. The rest of them do. I checked the LED and it was not defective. When I measure the voltage drop on this LED I get 1.7v as compared the 0.4v I am getting with the other LED's.

When I remove this fourth LED, then the fifth one fails the blink. I used a 330 ohm resistor for this one because I ran out of 380 ohm resistors. I am wondering if this is the problem because the currents are not evenly distributed to the LED's? Any insight is greatly appreciated.
 

Online IanB

  • Super Contributor
  • ***
  • Posts: 11858
  • Country: us
Re: Help with circuit to drive LED lights
« Reply #1 on: May 01, 2012, 05:31:05 pm »
I don't think you need to have your 117 ohm resistor on the collector of the transistor. What happens if you remove it?
 

Offline bilko

  • Frequent Contributor
  • **
  • Posts: 405
  • Country: 00
Re: Help with circuit to drive LED lights
« Reply #2 on: May 01, 2012, 05:43:17 pm »
I don't think you need to have your 117 ohm resistor on the collector of the transistor. What happens if you remove it?
You will probably have to buy another transistor  :(
 

Offline T4P

  • Super Contributor
  • ***
  • Posts: 3697
  • Country: sg
    • T4P
Re: Help with circuit to drive LED lights
« Reply #3 on: May 01, 2012, 05:55:00 pm »
Eh ... where do i start?
Oh , did you only have the ZTX458 ? That's a pretty high voltage and high cost transistor  ::)
Err ... i'm not entirely sure the transistor is happy driving 5 equal LED's then suddenly 1 unequal LED . LED's require constant current and i have never actually heard of somebody who placed a unequal LED before ....
But what staggers me is why would the 5th LED not blink? That i don't know .
 

Offline TerminalJack505

  • Super Contributor
  • ***
  • Posts: 1310
  • Country: 00
Re: Help with circuit to drive LED lights
« Reply #4 on: May 01, 2012, 06:03:27 pm »
The 117 ohm resistor is way too small.  It isn't going to allow the transistor's collector to get down near 0V.  Use something like a 10k resistor.
 

Offline MikeK

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: us
Re: Help with circuit to drive LED lights
« Reply #5 on: May 01, 2012, 06:03:55 pm »
I don't think you need to have your 117 ohm resistor on the collector of the transistor. What happens if you remove it?

It depends on the transistor and the collector supply.  If the supply can provide more current than the limit of the transistor, the collector current will only be limited by the gain.  If it's around 200, the collector current will be around 0.5A, which is too much if it's a TO-92 package.

EDIT: Also, what Jack said.  :)
« Last Edit: May 01, 2012, 06:06:09 pm by MikeK »
 

Offline FirethelaserTopic starter

  • Newbie
  • Posts: 5
Re: Help with circuit to drive LED lights
« Reply #6 on: May 01, 2012, 06:07:07 pm »

I had the ZTX lying around so i used it. I have it biased so that I am getting 40mA in the collector. The load for the sources require only microamps of current so it is more than enough.

I did not think the unequal resistance would be much of a problem since they do not differ by that much (50 ohms). Now I have to search for a 380 ohm to replace it with.
 

Offline TerminalJack505

  • Super Contributor
  • ***
  • Posts: 1310
  • Country: 00
Re: Help with circuit to drive LED lights
« Reply #7 on: May 01, 2012, 06:18:10 pm »
If you tie the transistor's base (through the 2.2k resistor) to 5V and measure the voltage at the collector what do you get?

I'm guessing based on the behavior you are reporting that it is going to be in the neighborhood of 3V to 3.5V.  You want it to be near 0V.

The reason that particular LED isn't coming on is that there isn't enough voltage to forward bias it.  This is due to a large chuck of voltage being dropped across that 117 ohm resistor.  Use a much larger resistor.
 

Offline FirethelaserTopic starter

  • Newbie
  • Posts: 5
Re: Help with circuit to drive LED lights
« Reply #8 on: May 01, 2012, 06:32:42 pm »
If you tie the transistor's base (through the 2.2k resistor) to 5V and measure the voltage at the collector what do you get?

I'm guessing based on the behavior you are reporting that it is going to be in the neighborhood of 3V to 3.5V.  You want it to be near 0V.

The reason that particular LED isn't coming on is that there isn't enough voltage to forward bias it.  This is due to a large chuck of voltage being dropped across that 117 ohm resistor.  Use a much larger resistor.

I am getting 0.95v at the collector when the base is at 5v. This is enough to turn on the LED's but for some reason only 5/6 turn on.
 

Offline Kremmen

  • Super Contributor
  • ***
  • Posts: 1289
  • Country: fi
Re: Help with circuit to drive LED lights
« Reply #9 on: May 01, 2012, 06:54:54 pm »
If the circuit is really put together exactly as in the picture, then the 117 ohm resistor on the collector is meaningless. The 4th led fails because somewhere it is connected wrong.
The exact value of the series resistors is not critical and cannot be the reason for failure.
Nothing sings like a kilovolt.
Dr W. Bishop
 

Offline TerminalJack505

  • Super Contributor
  • ***
  • Posts: 1310
  • Country: 00
Re: Help with circuit to drive LED lights
« Reply #10 on: May 01, 2012, 07:22:42 pm »
If the circuit is really put together exactly as in the picture, then the 117 ohm resistor on the collector is meaningless. The 4th led fails because somewhere it is connected wrong.
The exact value of the series resistors is not critical and cannot be the reason for failure.

Connecting each of the switches to 5V is unnecessary as well.
 

Online IanB

  • Super Contributor
  • ***
  • Posts: 11858
  • Country: us
Re: Help with circuit to drive LED lights
« Reply #11 on: May 01, 2012, 07:31:15 pm »
I don't think you need to have your 117 ohm resistor on the collector of the transistor. What happens if you remove it?
You will probably have to buy another transistor  :(

I'm not sure why? It seems to me if you remove the resistor and leave the transistor collector open, the circuit will still work fine. In addition there will be no parasitic current flow through the collector resistor.
 

Offline Kremmen

  • Super Contributor
  • ***
  • Posts: 1289
  • Country: fi
Re: Help with circuit to drive LED lights
« Reply #12 on: May 01, 2012, 07:34:03 pm »

Connecting each of the switches to 5V is unnecessary as well.
True, forgot to add that point. But it does not actually hurt and can't explain the failure.
Nothing sings like a kilovolt.
Dr W. Bishop
 

Offline bilko

  • Frequent Contributor
  • **
  • Posts: 405
  • Country: 00
Re: Help with circuit to drive LED lights
« Reply #13 on: May 01, 2012, 07:48:51 pm »

I'm not sure why? It seems to me if you remove the resistor and leave the transistor collector open, the circuit will still work fine. In addition there will be no parasitic current flow through the collector resistor.
Oops, sorry misunderstood your comment. I thought you meant to connect the collector direct to the 5v rail. Removing the resistor is a good idea.
 

Offline FirethelaserTopic starter

  • Newbie
  • Posts: 5
Re: Help with circuit to drive LED lights
« Reply #14 on: May 01, 2012, 07:55:58 pm »
You were right Kremmen, there was an open in the circuit. I had the entire circuit already on a PCB an apparently there was a solder joint not making proper contact with a trace. That was careless of me.

About the 117 ohm resistor. I want to get around 40mA of current in the transistor. VCE for saturation was min 0.2 volts. Using KVL:

0.2+Rc*(40mA)=5

Rc is around 117 ohm

Im still a bit of a novice in electronics but I always thought there had to be a resistor in either the collector or emitter. Would'nt the transistor have burnt out if there was no resistor?
 

Offline bilko

  • Frequent Contributor
  • **
  • Posts: 405
  • Country: 00
Re: Help with circuit to drive LED lights
« Reply #15 on: May 01, 2012, 08:24:44 pm »
Would'nt the transistor have burnt out if there was no resistor?

See IanB's posts, I've edited your schematic

 

Offline Kremmen

  • Super Contributor
  • ***
  • Posts: 1289
  • Country: fi
Re: Help with circuit to drive LED lights
« Reply #16 on: May 01, 2012, 08:31:58 pm »
Ok, no surprise there then. Maybe a lesson to learn: double checking is not enough, at least triple check :)
How many times we all have heard the words "i've tried everything" when in fact 2 things were tried - and the second only because the first didn't immediately work.

That reasoning around the collector resistor is curious and confusing. The collector doesn't "need" anything in particular. You obviously don't want to short circuit the transistor but the extra resistor doesn't help there. When switched on, the leds all have the series resistor already so that takes care of that. The only thing you need for the transistor itself is to drive it sufficiently to bring it to reasonable saturation when all leds are connected, and secondly that the Icmax is enough to take the total current. (plus cooling of course if that is needed).
Nothing sings like a kilovolt.
Dr W. Bishop
 

Offline FirethelaserTopic starter

  • Newbie
  • Posts: 5
Re: Help with circuit to drive LED lights
« Reply #17 on: May 01, 2012, 08:49:46 pm »
@Kremmen: i see what you mean. It makes sense.

@yachtronics: I was confused with the edit at first but after staring at it for some time I caught the redundancy.

The circuit is already soldered up on the PCB. It works as it should now but I learned a couple of things  :D

Thanks guys!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf