My question is, should I just experiment with different values for the cap, or add another one in parallel with the existing one? Or is it unlikely that I will eliminate the latching 'blip'' completely regardless of my cap choice?
Nothing elaborate going on in code.. just a small test of the lights. The code produces expected results (back and forth sweep effect of the LEDs), except for that pesky little blip on the Q0-attached LED when latching. I'll post the whole test sketch below. I *am* using the Analog pins of the Arduino for GPIO (because D0 thru D13 will be otherwise occupied on the final project) and that's where the data, clock, and latch are wired.
Code: Select all
byte lightsOut[]= {15, 23, 27, 29, 30, 29, 27, 23}; // values for 'sweep' light effect
byte lIndex=0;
void setup() {
pinMode(A1, OUTPUT); // latch
pinMode(A0, OUTPUT); // data
pinMode(A2, OUTPUT); // clock
}
void loop() {
digitalWrite(A1, LOW);
shiftOut(A0 ,A2, MSBFIRST, lightsOut[lIndex]);
digitalWrite(A1, HIGH);
delay(64);
lIndex++;
if (lIndex>7) lIndex=0;
}