Yun Jin Yonggledel임동교
Published © GPL3+

Innovation Lab #18 Shift Register_LED

Bongilcheon High School_Innovation Lab Project.

BeginnerProtip15 minutes824
Innovation Lab #18 Shift Register_LED

Things used in this project

Story

Read more

Schematics

Shift Register_LED

Shift Register_LED

Code

Shift Register_LED

Arduino
Control eight LEDs with the Shift Register.
int latchPin = 4;
int clockPin = 3;
int dataPin = 2;

void setup() 

{
  pinMode(latchPin, OUTPUT);
  pinMode(dataPin, OUTPUT); 
  pinMode(clockPin, OUTPUT);
}

void loop() 
{
  for(int i=0; i<8; i++){
    digitalWrite(latchPin, LOW);
    shiftOut(dataPin, clockPin, LSBFIRST, 1<<i);
    digitalWrite(latchPin, HIGH);
    delay(500);
  }
}

Credits

Yun Jin Yong

Yun Jin Yong

6 projects • 10 followers
gledel

gledel

100 projects • 115 followers
Looking back on my childhood, I was happy when I was making something and I was proud of myself. "Making is instinct!"
임동교

임동교

0 projects • 12 followers

Comments