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.
Adafruit_TLC59711 Chain
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit_TLC59711 Chain
Please post the code you are using.
- Philipp_Kotek
- Posts: 5
- Joined: Thu May 04, 2023 6:44 am
Re: Adafruit_TLC59711 Chain
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();
}
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit_TLC59711 Chain
That shouldn't happen. Can you post a photo showing all of your wiring & connections?
- Philipp_Kotek
- Posts: 5
- Joined: Thu May 04, 2023 6:44 am
Re: Adafruit_TLC59711 Chain
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.
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 (445.91 KiB) Viewed 168 times
-
- Chain_Error_1.jpg (403.38 KiB) Viewed 168 times
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit_TLC59711 Chain
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);
}
- Philipp_Kotek
- Posts: 5
- Joined: Thu May 04, 2023 6:44 am
Re: Adafruit_TLC59711 Chain
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.
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.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit_TLC59711 Chain
Let's take the external circuitry out of the equation for now. Wire a couple of LEDs just between V+ and R0.
- Philipp_Kotek
- Posts: 5
- Joined: Thu May 04, 2023 6:44 am
Re: Adafruit_TLC59711 Chain
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.
Mybe the first one has a defect. I will replace it and then i will let you know.
Please be positive and constructive with your questions and comments.