I wired up my arduino uno with the SN74HC595 as shown in the fritzing image, but when I turned it on, all the leds lit up and stayed like that, instead of blinking. I've tried a different chip, a different breadboard, and different code, but it doesn't work. What am I doing wrong? (The fritzing sketch isn't very clear, 4 leds are connected to outputs 0-3, MR is high and OE is low, and Data goes to arduino pin 8, latch to pin 9 through a 0.1uf cap to ground, and clock goes to pin 10)
The cap there is WRONG, and this should have been corrected 10 years ago.
There are unfortunately more of these uncorrected blunders in the guides of this site.
Leo..
I removed the capacitor and when I plugged it back in, it still didn't work and all the leds are lit.
Also, the leds do have resistors, but I forgot to put them in the picture.
Check the wiring of these:
int latchPin = 9; >> HC595 pin 12
int clockPin = 10; >> HC595 pin 11
int dataPin = 8; >> HC595 pin 14
Add a 0.1uF cap from 16 to Gnd.