Drive the sixteen LEDs in cascade using three output pins of the Arduino. When running the program, you will see that the green LEDs will count from 0 to 255, and the red LEDs will count from 255 to 0.
Proteus schematic diagram
The dual 8-bit binary counter project needs the following parts:
Arduino
Protoboard
74HC595 shift register IC x 2
Red LED x 8
Green LED x 8
560 ohms resistor x 16
Wires
Tinkercad schematic diagram
Selección de pines
Definir los pines que controlan Latch, Clock, Data
Método SETUP
Configurar todos los pines como salida
Método LOOP
Conteo de 0 a 255
Configuración de pin latch a bajo para permitir el flujo de datos
Cambio de los primeros 8 bits
Cambio de los segundos 8 bits
Arduino Code
Proteus simulation
Arduino real-life implementation