Shift Register + LED Array & Arduino: 5 Examples

by drselim in Circuits > Arduino

1332 Views, 1 Favorites, 0 Comments

Shift Register + LED Array & Arduino: 5 Examples

Arduino & Shift Register Led Array

I know that there are many examples on this topic however I wanted to make a simple and compact instructable with five examples:

1)One way shift

2)Two way shift

3)Two way shift with increasing speed

4)Random LED

5)Random Fill

Supplies

Arduino Uno (original or any clone), male-male jumper cables, 8 LEDs, 8 33o Ohm Resistors, Breadboard, Arduino IDE

Circuit Setup

connection1.png
arduino_shift_register_fritzing.png

The connections:

-All LEDs through 330 Ohm resistors and to 8 output pins of the 74HC595 shift register

-Shift Register Vcc pin to Vcc of Arduino

-Shift Register GND pin to GND pin of Arduino

-SRCLR active low output to Vcc

-OE active low output to GND

-SER input of Shift Register to Pin 12 of Arduino

-RCLK pin of the Shift Register to Pin 10 of Arduino

-SRCLK pin of the Shift Register to Pin 11 of Arduino

5 Examples:

Use the following code to shift in one way:

https://github.com/selimg76/microcontroller/blob/m...

Use the following code to shift back and forth:

https://github.com/selimg76/microcontroller/blob/m...

Use the following code to shift back and forth with increasing speed:

https://github.com/selimg76/microcontroller/blob/m...

Use the following code to make a random LED on:

https://github.com/selimg76/microcontroller/blob/m...

Use the following code to fill all LEDs randomly:

https://github.com/selimg76/microcontroller/blob/m...

If you like the content please subscribe to my YouTube channel for similar tutorials and projects.

https://www.youtube.com/c/drselim

Thank you