I've wired up the register with 8 LEDs on the 8 outputs, 5v to the Vcc, reset, and two switches - one at the clock pin and one for the two inputs. The LEDs are wired to ground in-series with a resistor
When I switch on my power supply, all the LEDs turn on. Switching the switches doesn't do anything. What I'd like to see is: switch on input and toggle clock, one light comes on. Toggle clock, light advances and finally disappears.
I've gone over the circuit and I can't figure out what could possibly be wrong. Am I misunderstanding something about this component?
OK, at the moment I've tied both inputs together with a jumper so they're both on or both off. I'm going to add some tracing LEDs to make sure the switches are doing what I want, and I'll read that article as well.
Since it wasn't working anyway, I wired it up to the Arduino - simply replacing my switches with digital pins. shiftOut worked like a dream, as well as bit-banging (digitalWrite(signal, HIGH); digitalWrite(clock, HIGH); delay(10); digitalWrite(clock, LOW);). Again, I didn't have to change anything about the circuit itself.
So I replaced the switches with buttons, in place of the Arduino pins, and got the same problems. Pushing 'clock' with no 'signal' does nothing, but pushing 'signal' then 'clock' turns on all the lights.
Is my finger's "rise time" not fast enough? Is it counting a single button push as a bunch of rises?
Now that I have it working with Arduino I guess I'm in good shape, but I'd like to understand why my circuit isn't working.