Things used in this project

Schematics

Shift Register_LED
Shift Register_LED
18 2 rvaspgaoab

Code

Shift Register_LEDArduino
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

Db07e4f07629c483bfbb379117cc4a2c
Yun Jin Yong
1 project • 7 followers
Contact
 gxbnoqxssw
gledel
2 projects • 20 followers
Looking back on my childhood, I was happy when I was making something and I was proud of myself. "Making is instinct!"
Contact
10603306 786335834768742 8959820454179648553 n
임동교
0 projects • 7 followers
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog