Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Controlled LED Display with 74HC595 Shift Register

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled LED Display with 74HC595 Shift Register

Circuit Documentation

Summary

This circuit utilizes an Arduino UNO microcontroller to control a series of red LEDs through a 74HC595 shift register. The shift register allows for the sequential control of multiple LEDs using only a few pins from the Arduino. Each LED is connected through a 200 Ohm resistor to limit the current and prevent damage to the LEDs. The circuit is designed to sequentially turn on each LED connected to the outputs of the shift register.


Component List

1. Arduino UNO

2. 74HC595 Shift Register

3. LED Two Pin (Red)

4. Resistor


Wiring Details

Arduino UNO


74HC595 Shift Register


LED Two Pin (Red)


Resistor


Documented Code

/*
 * Arduino Sketch to test the 74HC595 shift register.
 * This code will sequentially turn on each LED connected to the shift register
 * outputs QA to QH. Each LED is connected through a 200 Ohm resistor.
 * The shift register is controlled via the Arduino UNO using pins:
 * - SER (Serial Data Input) on D11
 * - SRCLK (Shift Register Clock) on D13
 * - RCLK (Storage Register Clock) on D12
 */

const int dataPin = 11;   // SER pin on 74HC595
const int clockPin = 13;  // SRCLK pin on 74HC595
const int latchPin = 12;  // RCLK pin on 74HC595

void setup() {
  // Set pins as outputs
  pinMode(dataPin, OUTPUT);
  pinMode(clockPin, OUTPUT);
  pinMode(latchPin, OUTPUT);
}

void loop() {
  // Loop through each LED
  for (int i = 0; i < 8; i++) {
    // Shift out the bit pattern
    shiftOut(dataPin, clockPin, MSBFIRST, 1 << i);
    // Latch the output to display the current LED
    digitalWrite(latchPin, LOW);
    digitalWrite(latchPin, HIGH);
    // Wait for a second
    delay(1000);
  }
}

This documentation provides a comprehensive overview of the circuit, detailing the components used, their connections, and the code that drives the functionality of the circuit.