TLC5940 HELP!

hi,

I want control LED strip using arduino nano and TLC5940NT.
I build everything but something miss, because every TLC output finally gives lover Voltage.
First gives ~9.6V, next lower, next lower....six TLC output gives only 9V....

I dont know how to draw schematic but try to explain:

TLC output -> BC556B -> C2073 -> LED strip "-"
5V to BC556B Emitter I get using 12V power supply and L7805 (dont use any resistors or capacitors)
Arduino Nano GND and VIN connect to 12V power supply.

so why after C2073 I dont get 12V? C2073 only open 12V "-". I thing C2073 is not fully open and I get only 9V or lower. Could it be that if I use more than one TLC output TLC cant fully open BC556B which cant fully open C2073 and in result I get lover and lover final voltage?

I use 1m 4.8W 12V LED strip / channel

You should probably draw a schematic anyway, I don't quite understand your setup!

If you don't know how to draw it because you don't have a PC program, use pen and paper!
If you don't know how at all, look up some schematics and symbols (PNP, NPN transistors etc) online, if you're unsure about the IC's, draw a block with pin numbers.

here is schematic. I dont know if I draw wright because I dont know how to do this. I hope it takes a bit sharper image what I say.

The TLC9540 does not source power it only sinks it. This makes your design wrong.

Therefore you will need a pull up resistor on the base of each of those transistors. Mark which one is the emitter with the conventional arrow. Why are you using a 5V regulator, I can't see the point? If you must use a regulator you must use a capacitor each side of the regulator and saying you don't is not acceptable.

Does this show two power supplies? If so, you need a very large capacitor on the one driving the LED strip.

How many LEDs are there on this strip and what strip is it? Link please.

At least that clears up a few things...

First off, C2073 is not a MOSFET transistor although you drew it like one. It's a regular NPN transistor and you could have driven it directly off the TLC5940.

BC556, it looks weird the way you put it in the schematic and also you don't have any current limiting resistor on the base! Fortunately for you I think you connected in a way that you didn't burn any components.

Again, what is your idea of having both the BC 556 and the C2073?
Why the 7805?

You could try doing TLC output, base resistor, C2073, LED strip. However BJT transistors like the C2073 are not really meant for PWM, so you might have to find a MOSFET, but I guess you can try it out at least, see if it works!

Udklip.PNG

EDIT: Didn't check that TLC only sinks current, read what mike said :wink:

Udklip.PNG

Like this maybe

Udklip2.PNG

Udklip2.PNG

Grumpy_Mike:
The TLC9540 does not source power it only sinks it. This makes your design wrong.

Therefore you will need a pull up resistor on the base of each of those transistors. Mark which one is the emitter with the conventional arrow. Why are you using a 5V regulator, I can't see the point? If you must use a regulator you must use a capacitor each side of the regulator and saying you don't is not acceptable.

Does this show two power supplies? If so, you need a very large capacitor on the one driving the LED strip.

How many LEDs are there on this strip and what strip is it? Link please.

how many ohms resistors I should use?

here is scheme with red arrow emitter: Inked-WP-20190122-16-14-11-Pro-8146-LI hosted at ImgBB — ImgBB

5V regulator is for C2073 transistor. TLC5940 is not powerful enough to open 16 C2073 transistors so between TLC and C2073 I put BC556B transistor to open 5V for C2073 transistor. I dont want to use other power supply (5V) so I use L7805 to make 5V from 12V.

No, its one 12V power supply.

In strip is 60 x SMD3528, 4.8W, 12V. One TLC channel = 1m LED strip

GeronimoDK:
Like this maybe

Udklip2.PNG

but C2073 is NPN and TLC gives negative output, so shouldn't I have to use PNP transistor?

GeronimoDK:
Like this maybe

Udklip2.PNG

holy shit it works! :smiley:
but dont fully turn off it because of not MOSFET transistor C2073.

I use IRF540 instead C2073 and it wors great.

First output is 9.72V and six output is only 9.05V so if I connect all 16, in channel 16 it would be less then 9V....

but dont fully turn off it because of not MOSFET transistor C2073.

I use IRF540 instead C2073 and it wors great.

You sure it works great and fully turns off?

yes, it works. Test only with one output (because have only one mosfet transistor). Today try with 8 transistors.

I would be more worried about it being able to fully turn ON with 5V signals. Unless OP dropped the regulator and has 12V to the gate. Then still more changes have to be made to that circuit...

using IRF640 close perfect.
today I buy IRF610 and it not full close. In LED strip I can see little bit light.

Put a pull-down resistor on the gate.

And do show us your current circuit. There may me more issues.

Put a pull-down resistor on the gate.

No, it needs to be a pull up because the TLC5940 is only a current sink and pulling it up to 12V is the right way to drive an external N-channel FET.

But the point the OP is missing is that the strip is not switching off fully, maybe he hasn’t noticed yet or tested it in a dark environment but the strip will not fully turn-off if wired like this.

This is because when the TLC5940 is sinking current and thus an LED wired in the conventional way will be on, in that circuit it will be off. There is an inversion between signal and light level.

This would not normally be a problem just that the numbers would be inverted driving it. But this chip works in slightly an odd way in that when the LEDs are set to be on at full brightness it produces a PWM signal that is not fully on but one that has a duty cycle such that is one clock pulse short of fully on. Fine in normal operation as you won’t be able to see such a small brightness change. However, when you invert that signal like in the circuit here it has one clock cycle on and the rest of them off. Meaning the LEDs can never be fully off.

Intriguing why the OP doesn’t spot this, but it is real and so the circuit used is crap. No one should believe it works. The only thing I can think of is that the circuit is so piss poor it will not respond quickly enough to drive the LEDs on for such short a time.

So I would conclude that it is the IRF640 that is the poor component and the IRF610 that is the good one.

sorry I use IRF540 not IRF640, my mistake. And it fully turn off, I dont know about fully turn on because I cant see small difference of bright led.

I use schematic like GeronimoDK made, but dont use any resistor between 12V + and LED strip +.

When I switch IRF540 to IRF610 LED strip led dont fully turn off.

I can film it if you want.

And then I programming TLC to turn on LED strip I have to write:

Tlc.set(7, 0);

so if I understand wright then I power on TLC output it close IRF540, if I do nothing with TLC output IRF540 is open, wright?

And it fully turn off,

No are you not reading what I say?

The transistor fully turning off is not the problem. The transistor not turning on “fast enough” is masking the problem you have due to faulty design of the circuit.

Grumpy_Mike:
No are you not reading what I say?

The transistor fully turning off is not the problem. The transistor not turning on “fast enough” is masking the problem you have due to faulty design of the circuit.

so how should I build everything to do it right? can you draw I scheme?
I run fade up and down code and it looks "fast enough" for me, no lag or blinking. But if circuit is bad I want to know how to do it right.

What is "very slow" for a MOSFET or an LED is still orders of magnitude faster than your eyes can see.

fix me if I'm wrong:
TLC is faster then transistor can work. right?