Hi,
I'm working on a project to control the brightness of 8 high-power leds indepently using an Arduino and a TLC5940. Later I also want to add DMX input.
I have experience with programming, but only a little experience with electronics, so I still have some questions.
I am using this tutorial I found here to get started, and I have connected the TLC5940 like this:
GND - GND
VCC - 5V
SIN - Pin 2
BLANK - Pin 9 (TIMER1)
GSCLCK- Pin 11 (TIMER2)
XLAT - Pin 3
SCLCK - Pin 4
VPRG - Pin 5
DCPRG - Pin 6 (to program current limiter)
If I understand the tutorial correct, I can just leave XERR and SOUT disconnected?
And if I don't need the dot correction setting, I can just connect DCPRG to 5V?
The tutorial also doesn't mention IREF. From the pictures here it seems that this is connected to a resistor that is connected to GND?
In the datasheet I found a picture where a 640 Ohm resistor is connected, is this correct?
If I understand correctly, the current through this resistor is also applied to the outputs, so using 5V I can simply calculate the required resistor for the current that I need (and 640 ohm means only 8 mA)?
Also, is the DC programming just a linear value scale that current (so a value of 32 would mean half the current) or does it work differently?
In the beginning of the playground example, the DC is set to 3, so this means hardly any current will be delivered to the outputs?
I can understand most of the program, but the Timer part looks a little cryptic, and I haven't found any tutorials on how the timers should be set, can anyone give me a pointer to some more info?
Finally, if the outputs are indeed current-limited, I can just connect leds to it without a resistor?
