27
TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 http://www.stonedcode r.org/~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED

TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009 ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED

Embed Size (px)

Citation preview

Page 1: TLC5940 controller / 16 RGB LEDs Eric Moore 1/25/2009  ~druid/balloon/ Files and image of circuit ALL PIN NUMBERS ARE SIMPLIFIED

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

All done! Program your arduino and enjoy!