Here is a pinout of the 74HC595.
Here is a Fritzing wiring example with an Arduino Uno
The Arduino website has some example code to get all eight LED's to light up correctly as well as further adding in more 74HC595's to control even more LED's. Click here
Manufacturer Part No: 74HC595N
Package / Case: PDIP-16
Technology : CMOS
Number of Elements : Single
Number of Bits : 8
Logic Family : HC
Logical Function : Shift Register
Output Type : 3-State
Propagation Delay Time : 285ns
Operating Supply Voltage (Typ) : 2.5/3.3/5V
Operating Temp Range : -55C to 125C
Operating Supply Voltage (Min) : 2V
Operating Supply Voltage (Max) : 6V
Operating Temperature Classification : Military
Mounting : Through Hole
Pin Count : 16
Great for led matricesI used 2 of these to drive my 16x5 led matrix clock. Work great, leds are bright and have been working for over a month now without any issues. I also have to mention their toughness on soldering temperature, didnt use DIP sockets, soldered very close to the body of the chip and worked without any problems. Great value and great price too!
Perfect for low power applicationsI used 8 of these for an 8x8x8 LED cube and they worked great. The only drawback is that if you want to be able to turn on all of the outputs at once, the current needs to be limited to 6ma per pin. But on the plus side, I made a few mistakes while wiring them up the first time and shorted pins together briefly on more than one occasion with no permanent damage done. This is a pretty tough little IC!
Good Shift Registers for ArduinoThese Shift Registers are great. I'm using them for the ShiftPWM library and these light RGB leds nice and bright. I've tried the Fairchild version and leds are not as bright. These are GOOD!