TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit...
-
Upload
robyn-bates -
Category
Documents
-
view
214 -
download
1
Transcript of TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit...
![Page 1: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/1.jpg)
TLC5940 controller / 16 RGB LEDs
Eric Moore 1/25/2009
http://www.stonedcoder.org/~druid/balloon/Files and image of circuitALL PIN NUMBERS ARE SIMPLIFIED
![Page 2: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/2.jpg)
Materials
• 1 Breadboard• Jumper cables – either bought or made• 1 Arduino• 16 RGB LEDs• 3 resistors – anything with a k that works
You need a laptop and cable to load the code in to the arduino. If you haven’t done that before, stop and follow the tutorials at arduino.cc
![Page 3: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/3.jpg)
Insert chip on board, leave 1 pin open on the left, and 2 open between chips – use ruler /
straightedge to bend pins if needed
![Page 4: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/4.jpg)
Note the 2 spaces between chips, now tie pins 1 and 14 on each chip
to pins 1 and 16 on the opposite side of the breadboard
![Page 5: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/5.jpg)
Note the yellow lines, now we will add our power lines to the chip
![Page 6: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/6.jpg)
Insert ties to ground (7 and 10)
![Page 7: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/7.jpg)
Insert ties to high (8) and connect SOUT (12) to SIN (3)
![Page 8: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/8.jpg)
Now tie pin 11 to pin 11 on chips 2 and 3
![Page 9: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/9.jpg)
Do the same with pins: 2, 4, 5, and 6
![Page 10: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/10.jpg)
Now pins 1, 2, 3, 4, 5, 6, 7, 8, 10, and 11 should be connected on the
third chip
![Page 11: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/11.jpg)
When you are done, your board should look like this, hopefully
cleaner
![Page 12: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/12.jpg)
Tie pin 9 to ground w/ a resistor on all 3 chips
![Page 13: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/13.jpg)
Arduino time!
![Page 14: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/14.jpg)
Pin 4 on the first chip…
![Page 15: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/15.jpg)
Goes to pin 8 on the ‘duino
![Page 16: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/16.jpg)
Pins 9 and 10 on the ‘duino go to pins 5 and 6 on the first chip
![Page 17: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/17.jpg)
Arduino 12 goes to chip1 pin2Arduino 13 goes to chip1 pin3
![Page 18: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/18.jpg)
11 arduino goes to chip1 pin11
![Page 19: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/19.jpg)
Your board should look like
this
![Page 20: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/20.jpg)
Connect red to anode AKA high (+5 or +3.3)
Connect blue to black cathode AKA low or ground
![Page 21: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/21.jpg)
Connect to either a power supply, or
the arduino directly.
![Page 22: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/22.jpg)
Now for the LEDs!The long leg is the anode, and run
to high.
![Page 23: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/23.jpg)
Bend the anode (long leg) away from the other legs, making sure that the pin that is alone on one side is to your left, and you bend toward you. This ensures all the
LEDs are in the same order.
![Page 24: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/24.jpg)
Insert the LED into breadboard pins 1-2-3 with anode in the RED bus
![Page 25: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/25.jpg)
15 LEDs later…
![Page 26: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/26.jpg)
Connect the RED bus on one side of the board with the RED bus you just inserted all the anodes in to.
![Page 27: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED.](https://reader037.fdocuments.us/reader037/viewer/2022110402/56649e565503460f94b4ea3c/html5/thumbnails/27.jpg)
All done! Program your arduino and enjoy!