South UK
Offline
Sr. Member
Karma: 1
Posts: 479
|
 |
« on: December 29, 2012, 09:53:54 pm » |
Hi all.
I am trying to control some LED downlighters (3w). I had the circuit working from arduino PWM pins with BC337's nicely, but I have now got hold of some TLC5940 IC's so want to use them. Because they sink current I had to get some BC327's instead.
Not sure why but the BC327's are getting very hot? I'm switching about 350mA through them (same load as BC337's) and have the base connected through a 1k resistor to one of the pins on the TLC5940 (the TLC is set as constant current drivers 20mA on all pins). I have also tried other values to current limit from the base, 1K does not seem to be fully saturating the transistor, and lower than 1k the things gets super hot!
I hooked up the same circuit using both the BC337 & 327, obviously driving the base high or low according to the transistor, and same behavior, the 327 getting very hot and the 337 staying cool?
Really confused about this at the moment!
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 22
Posts: 1370
Now, More Than Ever
|
 |
« Reply #1 on: December 29, 2012, 10:06:02 pm » |
Whereas you were using NPN (337), you're using PNP (327) instead?
Schematic.
|
|
|
|
|
Logged
|
Don't Be Upset By The Results You Didn't Get With The Work You Didn't Do
|
|
|
|
South UK
Offline
Sr. Member
Karma: 1
Posts: 479
|
 |
« Reply #2 on: December 29, 2012, 10:22:34 pm » |
Yes that's right, I was doing digital and analog writes from the arduino pins using the NPN's and it was working OK, the TLC5940 works fine too when sinking 20mA from LED's directly.
Attached is a schematic of how I have connected it
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 3
Posts: 230
|
 |
« Reply #3 on: December 29, 2012, 10:36:40 pm » |
That's not the way you hook up a PNP This is 
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 22
Posts: 1370
Now, More Than Ever
|
 |
« Reply #4 on: December 29, 2012, 10:38:26 pm » |
Right. And.. does the TLC output ever get up to 12V?
|
|
|
|
|
Logged
|
Don't Be Upset By The Results You Didn't Get With The Work You Didn't Do
|
|
|
|
Offline
Full Member
Karma: 3
Posts: 230
|
 |
« Reply #5 on: December 29, 2012, 10:50:04 pm » |
He needs to rethink this after reading the data sheet The TLC5940 sinks power only can use pwm for fading to look at this and think about flow of current
|
|
|
|
|
Logged
|
|
|
|
|
South UK
Offline
Sr. Member
Karma: 1
Posts: 479
|
 |
« Reply #6 on: December 29, 2012, 10:52:44 pm » |
Thanks, just corrected the wiring error, still the same issues though  getting red hot. Measuring the TLC output between the 12v rail, when set to 4095 its nearly at 12v - about 11.5v, set to 2000 the pin is about 5v?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 22
Posts: 1370
Now, More Than Ever
|
 |
« Reply #7 on: December 29, 2012, 11:01:47 pm » |
The TLC outputs are open-collector, open-drain?
(Elaborate.)
|
|
|
|
|
Logged
|
Don't Be Upset By The Results You Didn't Get With The Work You Didn't Do
|
|
|
|
Offline
Full Member
Karma: 3
Posts: 230
|
 |
« Reply #8 on: December 29, 2012, 11:04:21 pm » |
You hooked them up backward, they may be bad now and two the TLC5940 should not be hooked to the base your led should be hooked to the Tlc pins to sink current and the collector of the PNP
The TLC can only float it's pins which is going to heat up them PNP. There not push pull there open-collector
|
|
|
|
« Last Edit: December 29, 2012, 11:07:11 pm by be80be »
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 22
Posts: 1370
Now, More Than Ever
|
 |
« Reply #9 on: December 29, 2012, 11:05:05 pm » |
LED downlighter (3W).
Are those supposed to run from a current regulated source?
|
|
|
|
|
Logged
|
Don't Be Upset By The Results You Didn't Get With The Work You Didn't Do
|
|
|
|
Offline
Full Member
Karma: 3
Posts: 230
|
 |
« Reply #10 on: December 29, 2012, 11:11:09 pm » |
The hole setup is wrong really.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 22
Posts: 1370
Now, More Than Ever
|
 |
« Reply #11 on: December 29, 2012, 11:17:41 pm » |
Hole thing? PNP, majority carrier - holes?
Still, these LED downlights, they need a regulated current, not a straight shot between Gnd and 12V ?
|
|
|
|
|
Logged
|
Don't Be Upset By The Results You Didn't Get With The Work You Didn't Do
|
|
|
|
South UK
Offline
Sr. Member
Karma: 1
Posts: 479
|
 |
« Reply #12 on: December 29, 2012, 11:31:54 pm » |
Sorry but I'm a little lost now. How should I be connecting it? I thought that instead of the TLC5940 sinking current through an LED it could sink through the base of the PNP?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 3
Posts: 230
|
 |
« Reply #13 on: December 29, 2012, 11:35:34 pm » |
Can you post a link to your leds and are you wanting to use PWM for dimming?
|
|
|
|
|
Logged
|
|
|
|
|
United Kingdom
Offline
Faraday Member
Karma: 130
Posts: 4644
|
 |
« Reply #14 on: December 30, 2012, 06:20:29 am » |
I would connect them like this and set the TLCs to 25mA or greater to make sure they saturate. But we really need to known the details of the LEDs that you are trying to control.
|
|
|
|
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
|