PaulS:
But, you must send the 32 bits between toggling the latch pin. What you are doing now is toggling the pin between each group of 8 bits.
No, that is not correct.
Op's code:
digitalWrite(latchPin, LOW);
shiftOut(dataPin, clockPin, MSBFIRST, dataCA);
shiftOut(dataPin, clockPin, MSBFIRST, dataGREEN);
shiftOut(dataPin, clockPin, MSBFIRST, dataBLUE);
shiftOut(dataPin, clockPin, MSBFIRST, dataRED);
digitalWrite(latchPin, HIGH);
That shifts out 4 x 8-bit values then raises latchPin. The 74HC595 is +ve edge triggered. [u]That is correct.[/u]
Nielska:
the bits I send through the shift registers don't go further then the second shift register.
You must have a hardware fault between the second and third shift register.
Check your wiring.
Yours,
TonyWilk