Go Down

Topic: Manage ON-OFF Led with 24 channel PWM LED (Read 207 times) previous topic - next topic

gianni49

I have a 24-channel 12-bitl pwm led driver connected to the Arduino UNO R3 to manage 24 normal LEDs in ON or OFF states. When I set channel n to the ON state, when I change the channel and select channel m and set it to ON, the led connected to channel n goes into the OFF state. How can I keep the status of the channels static? It's possible to do it? Forgive my imperfect English. Thank you.

slipstick

Can you post please the specification of your "24-channel 12-bitl pwm led driver" or a link to it?

The code you are using to drive it and a diagram showing how everything is connected would also be useful.

Steve

gianni49

The board to manage the  Led is Adafruit 24-Channel 12-bit PWM LED Driver - SPI Interface - TLC5947. The hardware work fine. I choose an address and send the led lighting command and the LED lights up.
I leave the LED on and I try to turn on another LED, but when I send the ignition command the previous LED goes off. I would like the previously lit LED to remain on.
Here is my sketch

gianni49

Problem?
substitute lines og sketch :

#define data  4
#define clock 5
#define latch 6

with:

#define data  10
#define clock 11
#define latch 12

gianni49

Hi,
II do not know how, but the problem has solved itself.

Go Up