Pages: 1 ... 13 14 [15] 16 17 18   Go Down
Author Topic: Library for TLC5940 16-channel PWM chip  (Read 25648 times)
0 Members and 1 Guest are viewing this topic.
Seattle, WA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 81
Arduino rocks my socks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@bensaddiction: Very weird.  I don't have a Mac to test on, but can anyone else reproduce this?  Try reinstalling Arduino and then the library.
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 54
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, would anyone know what the maximum amount of tlc5940's that you can daisy chain is?
I'd like to go upto 68 or 12, but read elsewhere that +10 is problematic?
Thanks!
Logged

Eindhoven, the Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 36
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I've just finished a project with 12 daisy-chained TLC's. I'll put the project online next week. In my case I had each TLC on a separate board. The 12 boards were connected with 11x 20 cm ribbon cable. This gave me some problems with the signal after the 10th board. Because the boards go in a circle, instead of letting the signal travel from the source to the 12th (and back) I was able to split it so I had 0 - 5 and 6 - 11 for all the signals except for SOUT - SIN. That worked ok for me. But I don't think you'll have this problem when you put them all on one board.
Logged

PracticalMaker.com
Offline Offline
Jr. Member
**
Karma: 0
Posts: 68
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Where did you get the TLC's? Digikey is backordered until Sept. 14 and I can't find any elsewhere.

Can't wait until you put it online.
Logged

Eindhoven, the Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 36
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I got them (5940pwp (smd)) from rsonline.nl.
You can only order there as a company (b2b).
« Last Edit: August 21, 2009, 01:55:58 pm by Chronoless » Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 54
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Chronoless, 12 sounds great.
Would you think there will be issues to control 6 arduinos with each 11 TLC5940's on them?
Logged

Eindhoven, the Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 36
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

When your plan is to control the 6 arduinos through usb than that shouldn't be a problem. But make sure that the configured baudrate is sufficient for your application. But that all depends on the resolution mode (256 (8bit) or 4096 (12bit)) and desired refresh rate.
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 54
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks!
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 39
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

has anyone used the tlc5940 with i2c at the same time.  im trying to and getting corrupt data when receiving.  Serial works just fine at speeds of 115200 but i2c does not work.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm having some annoying probs here. I've connected the 5940 to my arduino NANO according to the schematic, triple-checked everything, but the leds still won't light. The problem seems to be voltage on the outputs. My multimeter reads about 0.2 V when i'm pumping 4000 on the channels. When alternating (slow blinking) the result is the expected (0V, 0.2V, 0V, 0.2V etc).
My usb supply voltage is 4.5V, could that have anything to do with it?
« Last Edit: September 11, 2009, 04:22:35 pm by kivao » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 39
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

the tlc does not source current it sinks it

so the setup needs to be

+--- LED --- TLCinput
also be sure your using the correct resistor value
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yeah, thanks, just found out myself. Apparently I hadn't tripled checked the schematic thoroughly enough.  smiley-grin Feel as stupid as can be.
Logged

Bonn, Germany
Offline Offline
God Member
*****
Karma: 0
Posts: 903
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

is it possible to turn off a pin so that it is used as GND for a LED?
Logged

Believe me, Mike, I calculated the odds of this succeeding against the odds I was doing something incredibly stupid[ch8230] and I went ahead

0
Offline Offline
Newbie
*
Karma: 0
Posts: 39
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

just assign the value of 4095 to the correct pin.
this should result in the led being constantly on.
Logged

Bonn, Germany
Offline Offline
God Member
*****
Karma: 0
Posts: 903
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

its not about constantly turning on a led but rather using a pin of the TLC as GND for multiplexing stuff...
Logged

Believe me, Mike, I calculated the odds of this succeeding against the odds I was doing something incredibly stupid[ch8230] and I went ahead

Pages: 1 ... 13 14 [15] 16 17 18   Go Up
Jump to: