Problem with TLC5947

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
whaleworks
 
Posts: 3
Joined: Tue Oct 16, 2012 11:18 am

Problem with TLC5947

Post by whaleworks »

I am having trouble getting going with the TLC5947; I have stripped the project all the way back to just the sample set up, using the example file from the library, with three single LEDs hooked up to 0,1,2 on the board. If I run the sketch as is, the LEDs are on, full brightness, all the time.

I commented out the entire contents of loop() and placed this instead:

tlc.setLED(0,0,4095,0);
delay(2000);
digitalWrite(oe,HIGH);
delay(2000);
digitalWrite(oe,LOW);

Based on my understanding of the code, this should flash just the center of the three LEDs on/off at 2 second intervals, but what actually happens is that all three (actually all of the outputs on the board) flash on/off.

I have tried various permutations of setLED and setPWM, but I get no response, the only thing I have working is cycling the oe pin. I have tried a few different TLC boards, with the same results, which leads me to believe that I have missed something here.

Any help is appreciated!

User avatar
adafruit_support_bill
 
Posts: 88092
Joined: Sat Feb 07, 2009 10:11 am

Re: Problem with TLC5947

Post by adafruit_support_bill »

Post the code you are using and a photo of your setup and we'l see if we can spot the problem.

whaleworks
 
Posts: 3
Joined: Tue Oct 16, 2012 11:18 am

Re: Problem with TLC5947

Post by whaleworks »

Code: Select all

#include "Adafruit_TLC5947.h"

// How many boards do you have chained?
#define NUM_TLC5974 1

#define data   4
#define clock   5
#define latch   6
#define oe 7// -1  // set to -1 to not use the enable pin (its optional)

Adafruit_TLC5947 tlc = Adafruit_TLC5947(NUM_TLC5974, clock, data, latch);

void setup() {
  Serial.begin(115200);//9600);
  
  Serial.println("TLC5974 test");
  tlc.begin();
  if (oe >= 0) {
    pinMode(oe, OUTPUT);
    digitalWrite(oe, LOW);
  }
}

void loop() {
  /*colorWipe(4095, 0, 0, 100); // "Red" (depending on your LED wiring)
  delay(200);
  colorWipe(0, 4095, 0, 100); // "Green" (depending on your LED wiring)
  delay(200);
  colorWipe(0, 0, 4095, 100); // "Blue" (depending on your LED wiring)
  delay(200);
  rainbowCycle(10);
  */
  tlc.setLED(0,0,4095,0);

  delay(2000);
  digitalWrite(oe,HIGH);
  delay(2000);
  digitalWrite(oe,LOW);
}
WP_20140416_002.jpg
WP_20140416_002.jpg (528.12 KiB) Viewed 327 times

User avatar
adafruit_support_bill
 
Posts: 88092
Joined: Sat Feb 07, 2009 10:11 am

Re: Problem with TLC5947

Post by adafruit_support_bill »

Can you post one from an angle that shows the actual connections between the breakout and to the LEDs?

whaleworks
 
Posts: 3
Joined: Tue Oct 16, 2012 11:18 am

Re: Problem with TLC5947

Post by whaleworks »

sort of. I had to remove it from the breadboard for the moment, but I can show you the board end. On the breadboard side the LEDs were sharing the 12+ brown wire and the O/G/B wires were attached to one LED each.
WP_20140416_003.jpg
WP_20140416_003.jpg (379.85 KiB) Viewed 310 times
WP_20140416_003.jpg
WP_20140416_003.jpg (379.85 KiB) Viewed 310 times
Attachments
WP_20140416_004.jpg
WP_20140416_004.jpg (388.43 KiB) Viewed 310 times

User avatar
adafruit_support_bill
 
Posts: 88092
Joined: Sat Feb 07, 2009 10:11 am

Re: Problem with TLC5947

Post by adafruit_support_bill »

The connections look correct - at that end. Although the solder joints look a bit questionable. Take a look at this guide and touch up those joints.
http://learn.adafruit.com/adafruit-guid ... n-problems

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”