Adafruit_TLC59711 Chain

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Philipp_Kotek
 
Posts: 5
Joined: Thu May 04, 2023 6:44 am

Adafruit_TLC59711 Chain

Post by Philipp_Kotek »

Hi there,
I have a question about the Adafruit TLC59711 4 channel RGB LED drivers.
It is statet that i can chain the modules. Connect CO->CI and DO -> DI, all other Pins(V+,GND,..) are also connected correctly.
My problem is that, when i want to drive the 13nd channel the 1st one also lights up, vice versa. So it seems that every channel from each board gets the same signal(tlc.setPwm(n,val) == tlc.setPwm(n+12,val)). NUM_TLC59711 is also set to 2.

Is there a way to drive each channel from the corresponding channel of the other board independend from another, or is this intendend as chained?

Thank you for your support.

Best regards.

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

Re: Adafruit_TLC59711 Chain

Post by adafruit_support_bill »

Please post the code you are using.

User avatar
Philipp_Kotek
 
Posts: 5
Joined: Thu May 04, 2023 6:44 am

Re: Adafruit_TLC59711 Chain

Post by Philipp_Kotek »

Code: Select all

#include "Adafruit_TLC59711.h"
#include <SPI.h>

#define NUM_TLC59711 2 //Number of Modules
//Arduino Nano Pinning
#define data   11
#define clock  13

Adafruit_TLC59711 tlc = Adafruit_TLC59711(NUM_TLC59711, clock, data); //Setup Modules

void setup() {
  tlc.begin();
  tlc.write();
}

void loop() {
  tlc.setPWM(0, 65535); //set Ch1 to max value
  tlc.write();
}
This would be my code. I only test the first LED Pin (LED0 R0(first Module)/Ch0). And now the problem is that the first LED Pin(LED0 R0(second Module)/Ch12) also lights up.

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

Re: Adafruit_TLC59711 Chain

Post by adafruit_support_bill »

That shouldn't happen. Can you post a photo showing all of your wiring & connections?

User avatar
Philipp_Kotek
 
Posts: 5
Joined: Thu May 04, 2023 6:44 am

Re: Adafruit_TLC59711 Chain

Post by Philipp_Kotek »

I have two boards.
Each open drain output channel of the LED Driver boards is connectet to a PMOS to increase the driving power.
V+ of the drive boards is powerd by 12V.
The Arduino Nano with 5V.

Each board functions properly but the communication between does not.
Attachments
Chain_Error_2.jpg
Chain_Error_2.jpg (445.91 KiB) Viewed 169 times
Chain_Error_1.jpg
Chain_Error_1.jpg (403.38 KiB) Viewed 169 times

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

Re: Adafruit_TLC59711 Chain

Post by adafruit_support_bill »

If you change the code to flash the LEDs, do both LEDs flash?

Code: Select all

void loop() {
  tlc.setPWM(0, 65535); //set Ch1 to max value
  tlc.write();
  delay(500);
  
  tlc.setPWM(0, 0); //set Ch1 to min value
  tlc.write();
  delay(500);
}

User avatar
Philipp_Kotek
 
Posts: 5
Joined: Thu May 04, 2023 6:44 am

Re: Adafruit_TLC59711 Chain

Post by Philipp_Kotek »

Now I got a really weard behaviour.
The first LED(Ch0) flashes and then the seconed LED(Ch12) lights up for the rest of the 500ms. Afterwards both are dark for 500ms.

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

Re: Adafruit_TLC59711 Chain

Post by adafruit_support_bill »

Let's take the external circuitry out of the equation for now. Wire a couple of LEDs just between V+ and R0.

User avatar
Philipp_Kotek
 
Posts: 5
Joined: Thu May 04, 2023 6:44 am

Re: Adafruit_TLC59711 Chain

Post by Philipp_Kotek »

I now noticed, that the first chip gets a little bit warmer than the second one.
Mybe the first one has a defect. I will replace it and then i will let you know.

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

Return to “Arduino”