Shift Register Mini Project

Breadboard shift register project with LEDs lit up

Project snapshot

LED control using a shift register

I made this project to learn about shift registers. Shift registers help use fewer pins by indirectly powering something like an LED. Instead of saying "low" or "high", you pass a binary.

The materials I used are:

  • 74HC595 shift register
  • 8 LEDs
  • 8 220 Ω resistors
  • Arduino Nano microcontroller

Code

Three LED patterns

I began with finding a 74HC595 shift register. Then I connected it to my microcontroller. I made sure that I wired the pins of the shift register correctly by using a data sheet.

74HC595 shift register pinout diagram

By using a USB to TTL converter, I could transfer my program into the microcontroller.

Arduino Nano connected to the shift register circuit

I made three different distinct patterns: a binary counter, a stacking effect, and an effect where a random set of LEDs light up.

Close-up of LEDs on the breadboard shift register circuit

This is the binary counter.

This is the stacking effect.

This is the random effect.