Pages: [1]   Go Down
Author Topic: TLC5940 - 1st works, 2nd not :/  (Read 593 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 37
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all,

I'm stuck in a project.

Quick description:
I want to illuminate my desks.

I bought this 5050-clusters for that (18pcs):
Front & Back:

Common Anode, for 12V

I try to use 4 TLC5940.
Ch0 -> LED1-Red
Ch1 -> LED1-Green
Ch2 -> LED1-Blue
Ch3 -> LED2-Red
Ch4 -> LED2-Green
Ch5 -> LED2-Blue
...
...

5 "Cluster" on each TLC (Ch 16 not in use)

Look like this (Front & Back):

(Missing on picture: Cables to the LEDs and some soldering... but you get the idea)

Power:
The TLCs get the Power from the Arduino (5V), the leds by a lab-powersupply - 12V
Ground from power supply and Arduino are connected to each other.
All anodes are connected directly to the power supply.

Problem:
The 1st TLC works fine, doesnt get warm at all, just as it should be.
The 2nd TLC doesnt work at all smiley

Doesnt get warm either, but the LEDs just dont light up.

For testing I used the "Basic_Use" Script from the TLC Library. I also edited the tlc_config.h (#define NUM_TLCS 2).

Currently there are only LEDs on TLC 1 & 2.

Can anybody help? Do you need more information?

Thx a lot in advance
Alex
Logged

0
Offline Offline
Shannon Member
****
Karma: 162
Posts: 10523
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There are some 2-wire components on that board?  Are they the decoupling capacitors?  (And if not
that could easily be why its malfunctioning).  A more close-up pic would help with seeing if there's a wiring error.
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Newbie
*
Karma: 0
Posts: 37
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have no decoupling capacitors on (tut says its optional) but I got some here... could test that...

here are two bigger pictures:

http://www.sams.de/up/arduino-board/pr03-pcb-front2.jpg
http://www.sams.de/up/arduino-board/pr03-pcb-back2.jpg
Logged

Dubuque, Iowa, USA
Offline Offline
Edison Member
*
Karma: 33
Posts: 2280
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you adjust NUM_TLCS in tlc_config.h and delete the existing Tlc_5940.o file so the change will take effect?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 37
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

As I wrote in the beginning: Yes I edited the config.h

And there is no more tlc_5940.o to delete for a long time. (Since 2 versions?)
Logged

Dubuque, Iowa, USA
Offline Offline
Edison Member
*
Karma: 33
Posts: 2280
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh snap.

So you why don't you have the SCLK connected between the chips? Each chip will need that signal.

Not clear on the purpose of the GSCLK but it seems that should be connected as well.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 37
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

dammit.... i forgot to loop sclk and gsclk =)

why didnt I see that? smiley
Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 121
Posts: 4598
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Not clear on the purpose of the GSCLK but it seems that should be connected as well.

GSCLK is the clock signal that drives the chip's internal PWM counters. It won't work without it.


Logged

No, I don't answer questions sent in private messages...

Denmark
Offline Offline
God Member
*****
Karma: 8
Posts: 549
Please don't send questions as PM!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Du you mind me asking why you blocked the website address on the product ? is it a secret ? I would like to know who makes these LED modules, incase i want to buy some like those...

// Per
Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 64
Posts: 6055
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have no decoupling capacitors on (tut says its optional) but I got some here... could test that...

I don't know what a "tut" is, but decoupling capacitors are not optional.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 178
Posts: 12289
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't know what a "tut" is...

http://en.wikipedia.org/wiki/Tutankhamun

Given his status it's not surprising he's wrong about the capacitors.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 515
Posts: 31567
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I have no decoupling capacitors on (tut says its optional)
Sure it is optional. It goes with the option of if you want it to work or not.
http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html
Logged

0
Offline Offline
Shannon Member
****
Karma: 162
Posts: 10523
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Where is the tutorial that made that claim?  Can it be corrected?
Logged

[ I won't respond to messages, use the forum please ]

Pages: [1]   Go Up
Jump to: