Pages: 1 2 3 [4] 5   Go Down
Author Topic: 6x TLC5940 32 rgb leds  (Read 10278 times)
0 Members and 1 Guest are viewing this topic.
Denver, CO
Offline Offline
Jr. Member
**
Karma: 0
Posts: 54
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Alrighty, I wanted to add a color organ to this beast. I was thinking on using this circuit and instead of the 3904's just connect to the input of the analog inputs.
 


I figured the code would go something like:

value1 = analogRead(pin);

if (value1 > somearbitrarynumber){
Tlc.set(0, 4095);
}
if (value1 > someothernumber){
Tlc.set(1, 4095);
}
...etc

Or maybe something like this:

value1 = analogRead(pin);
value2 = analogRead(anotherpin);
power = value1 * multiplier;     //(multiplier most likely will be 4)
power2 = value2 * multiplier;
 for (int channel = 0; channel < 16; channel += 1) {
     
     Tlc.set(channel, power);
      }
 for (int channel = 16; channel < 32; channel += 1) {
     
     Tlc.set(channel, power2);
      }

In that schematic I found i'm not sure what the pin 11 and pin 4 connected to vcc and gnd are going to. I'm assuming I can ignore it. I'm also assuming 12v is VCC.

I'll have videos of the fully strung fiber optic this weekend, I"m so excited to see how this turns out.



Logged

Denver, CO
Offline Offline
Jr. Member
**
Karma: 0
Posts: 54
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

the 11 and 4 pin are for IC1

The only thing i'm not too sure on is how to calibrate for the input analog range of 0-5v for the arduino without an oscilloscope. Will the 20k pots be enough? Will this circuit produce  wave forms 0-12v?or ??
Logged

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

As that circuit can output up to 12V you better include some diode protection on the inputs to the arduino to prevent damage.
Logged

Denver, CO
Offline Offline
Jr. Member
**
Karma: 0
Posts: 54
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Isn't that what the 1N4002's would be connected to?
Logged

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

No, those are the envelop follower diodes.
You need a seriese resistor and catcher diodes to each rail.
Logged

Denver, CO
Offline Offline
Jr. Member
**
Karma: 0
Posts: 54
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Here it is wired up with the fiber optic. I can't wait to program morepatterns



https://www.youtube.com/watch?v=WaFdIu16Cco&feature=youtube_gdata_player

Logged

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

Well done looks cool.
Logged

Denver, CO
Offline Offline
Jr. Member
**
Karma: 0
Posts: 54
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

As far as calibration without an oscilloscope goes I should be able to play a sine wave respective to the frequency being passed, then slowly turn up the pot and print the analog read out to the serial line. Or could I use a volt meter with respect to ground (or vground?) and read it as the RMS value and adjust it for P-P value?
Logged

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

Quote
Or could I use a volt meter
It depends on the quality of the meter, some cheap ones do not respond well to high frequencies.
Logged

Florida
Offline Offline
Sr. Member
****
Karma: 4
Posts: 431
hookedup!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That looks fantastic. 
Logged

Yorkshire England
Offline Offline
Sr. Member
****
Karma: 2
Posts: 267
Arduino good init
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yep, looks great
Logged

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

Hi there! I´m new to the Arduino world and have little experience with the TLC5940.

I´ve looked through the posts trying to find a way to drive more current using the same IC and found what seems the more suitable one here > http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1271193991 <

I would like to drive 16 Cree RGBW LEDs and I need some 350 mA per channel. Would this be OK? Any suggestion?

Thanks in advanced!
Logged

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

Yes 16 of those should work. You will need a good power supply and a lot of decoupling capacitors as well.
Logged

Denver, CO
Offline Offline
Jr. Member
**
Karma: 0
Posts: 54
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes that is the same circuit i used and it works nicely. As Mike said make sure you use a good power source such as a computer power supply that has the 5v and 12v readily available.
Logged

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

Thank you guys! Now, about decoupling capacitors what would you recommend?

Logged

Pages: 1 2 3 [4] 5   Go Up
Jump to: