Hi!!! i've been working on a stair lighting proyect for a few days and got it working with de PWM channels of my arduino one like a charm, the leds go fade on one after the other and then off after a delay.
I use a TIP31 transistor to use a strip of SMD 12volts single color LEDs with an external power supply.
now i need to have more channels so i got a TLC5940 to extend my PWM channels to 16 or more, when i use a regular LED directly on any of the TLC's channels the LED works perfectly but when i conect the transistor circuit insted, nothing happens. i used this link from the arduino TLC5940 library page
Can you post a schematic of your curcuit? Hand-drawn on paper and photographed will be fine.
I suspect the problem is that the tlc outputs will only sink current, whereas the arduino outputs will both source and sink. This affects the choice and use of transistors.
Are you sure you even need the transistors? The tlc can sink quite a lot of current, 120mA per channel, I think.
PaulRB:
Can you post a schematic of your circuit? Hand-drawn on paper and photographed will be fine.
Probably no need to. That circuit diagram is bogus - it shows a NPN Darlington connected upside down. The emitter should go to ground and the collector to the LEDs.
on the case that the problem is that the tlc only sinks ground what transistor should i use????? i need transistors cause im using at least a meter of LED strip and that can go up to an amp per channel and also i want to be safe on the current
Ah yes, that circuit is more bogus than ever. Clearly you need PNP transistors as emitter followers, base to TLC5940, collector to ground, emitter to the LEDs. Whatever transistor can drive a couple of amps and stay cool.
But you are suggesting using them as low-side switches. I was thinking high-side. I'm no expert in transistor theory (or practice for that matter). Why low-side?
PaulRB:
But you are suggesting using them as low-side switches. I was thinking high-side. I'm no expert in transistor theory (or practice for that matter). Why low-side?
Because the chip in question is a current "sink" - essentially an open-collector driver.
so if i get the idea right because de TLC sinks current i need a PNP like TIP32 and the TIP31 is a NPN so TIP31 needs 5 volts or a high signal right????