ryanrhinoy
Published

74HC595 Serial to Parallel Shift Register

This project does a serial to paralell shift using LEDs

BeginnerFull instructions provided426
74HC595 Serial to Parallel Shift Register

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
74HC595
×1
5 mm LED: Red
5 mm LED: Red
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

10 Pc. Jumper Wire Kit, 5 cm Long
10 Pc. Jumper Wire Kit, 5 cm Long

Story

Read more

Schematics

74HC595 microchip

Code

serial_to_paralell_shift

C/C++
int latchPin=11;
int clockPin=9;
int dataPin=12;
int dt=250;
 
byte LED1s=0b10101010;
byte LED2s=0b01010101;
 
void setup() {
  // put your setup code here, to run once:
Serial.begin(9600);
pinMode(latchPin,OUTPUT);
pinMode(dataPin,OUTPUT);
pinMode(clockPin,OUTPUT);
}
 
void loop() {
  // put your main code here, to run repeatedly:
digitalWrite(latchPin,LOW);
shiftOut(dataPin,clockPin,LSBFIRST,LED1s);
digitalWrite(latchPin,HIGH);
delay(dt);
digitalWrite(latchPin,LOW);
shiftOut(dataPin,clockPin,LSBFIRST,LED2s);
digitalWrite(latchPin,HIGH);
delay(dt);
}

Credits

ryanrhinoy
3 projects • 1 follower

Comments