I have 3 daisy-chained 74HC595 Shift Registers with 8 RGB LEDs to program a Light Bar.
So, my project has 1 Shift Register per color.
Problem : The Shift for Red color seems to be the "Master" (it's the one directly connected to my Arduino UNO board), it means that when I put a red color on an output, the others are completely off !
I use Bellavance's HC595 Library. Before, I used Timo Denk's ShiftRegisterPWM and ShiftRegister74HC595 libraries, which lead to the same problem.
#include <HC595.h>
const int chipCount = 3;
int data = 2;
int clock = 3;
int latch = 4;
HC595 leds(chipCount, latch, clock, data);
int last = leds.lastPin();
void setup(){
/*
pinMode(data, OUTPUT);
pinMode(clock, OUTPUT);
pinMode(latch, OUTPUT);*/
leds.reset();
leds.setPins(8, 23, HIGH); //0 to 7 are Red color. They seem to turn off green (8 to 15) and blue (16 to 23)
}
void loop(){
//Tried leds.setPins here but does nothing to the problem.
}
With the SifhtRegisterPWM Library, I put 128 to Red with 255 to Green and Blue, the RGBs are white ! But not with the 2 others, which don't use PWM.
How can they be turned off if they have the same latch as the first shift ?
Uhh yes, but not completely in my sense, because as I said before, i will add an IR Receiver.
Placing a delay after all the SendByte functions in code of @kolaha in a translateIR function will display red.
Perhaps you are having more of an eccentric day than a genius day today
No one on the topic seems to have figured out why the blue and green LEDs go out when the red LEDs are on. I think the answer might be right there in @dj_math 's diagram.