Shift registers? Controlling LEDS with one pin?

Can someone point me to a good tutorial for this? I am for some reason having trouble finding one. I prefer a video tutorial but what ever will do.

For a shift register you'll need two pins, one for the clock and one for the data. Search for "Arduino LED 74HC595" perhaps?

Hi, some help here:

74HC595 Serial-In-Parallel-Out Expander This IC is a Shift Register so that 8 bits of data can be 'shifted' into it over just 2 wires. This is often used to add more functional Digital Outputs to Arduino. It is most often controlled by the Arduino standard function shiftOut. See the Reference Page: http://arduino.cc/en/Reference/ShiftOut

Multiple 74HC595 chips can be connected in series so that the same 2 or 3 Arduino pins can control 8 or 16 or 24 etc. output bits.
Arduino shiftOut Tutorial: http://arduino.cc/en/Tutorial/ShiftOut

74HC595 DATA SHEET: and more available on the ArduinoInfo WIKI here - http://arduinoinfo.info
See: http://arduino-info.wikispaces.com/Popular-ICs and scroll down to the 595...

Fantastic information guys. Thank you so much.

Here's a way to read a parallel-in/serial-out register with one pin:

Perhaps it can be adapted to work with an output shift register. Probably not, because you have to be able to control both the data and the clock that tells the chip that the data is ready.

terryking228:
74HC595 Serial-In-Parallel-Out Expander This IC is a Shift Register so that 8 bits of data can be 'shifted' into it over just 2 wires. This is often used to add more functional Digital Outputs to Arduino. It is most often controlled by the Arduino standard function shiftOut. See the Reference Page: http://arduino.cc/en/Reference/ShiftOut

You can control a 595 with two wires only if you connect the shift register and storage register clocks together. I wouldn't generally recommend that because it exposes the transient and incorrect data patterns being shifted in to whatever device is connected to the shift register and that can cause glitches or other unexpected behavior. Shift in all your bits, then latch them into the storage register. Three wires required for that.

Here's a way to read a parallel-in/serial-out register with one pin:

Another approach is to use a rc network.

it exposes the transient and incorrect data patterns being shifted in to whatever device is connected to the shift register

Whether that is a problem will depend on the device connected to the shifter register's output. HD44780 for example would have no problem here - see the use of HC164 on those displays.

dhenry:

Here's a way to read a parallel-in/serial-out register with one pin:

Another approach is to use a rc network.

it exposes the transient and incorrect data patterns being shifted in to whatever device is connected to the shift register

Whether that is a problem will depend on the device connected to the shifter register's output. HD44780 for example would have no problem here - see the use of HC164 on those displays.

Hey, I agree with you there, but why not just 164s instead of the 595s if you are not going to use those (extremely useful) latches anyway? They are cheaper at Jameco at least.

Shift Register Tutorial

They are cheaper at Jameco at least.

595's are 15 cents here: http://goo.gl/e02E0

I like playing with many of these low-cost chips, and having what I usually need on the weekend, so I made up this package of 70 ICs:
http://goo.gl/19egs

DISCLAIMER: Mentioned stuff from my own shop...

I bought a couple of those packages from you and a blue LCD display back in June and it was all good stuff. Thanks. I hope you are doing well.

but why not just 164s instead of the 595s if you are not going to use those (extremely useful) latches anyway?

Maybe you don't have hc595? not sufficient amount of hc595? ...