Led Flowing Lights; Components Required - Uctronics Ultimate Starter Kit for Arduino Manual

Table of Contents

Advertisement

Overview
In this lesson, you will master how to use eight large red LEDs with an UNO or MEGA2560
board without using up 8 output pins.

Components required

Name
UNO R3 or MEGA 2560
LED
74HC595 IC
Component Introduction
The 74HC595 is an 8-stage serial shift register with a storage register
and 3-state outputs. Each of which can either be a 1 or a 0. The shift
register and storage register have separate clocks. To set each of
these values on or off, we feed in the data using the pin 'Data' and 'Clock' of the chip.
Data Clock
pin14 pin11
1
0
1
1
0
0
1
1
The clock pin is used to receive eight pulses. At each pulse, if the pin "data" is high, then a 1
gets pushed into the shift register; otherwise, a 0.
When all eight pulses have been received, enabling the pin of "Latch" copies those eight values
to the latch register. This is necessary; otherwise, the wrong LEDs would flicker as the data is
being loaded into the shift register.
The chip also has an output enable pin (OE), which is used to enable or disable the outputs
all at once. You could attach this to a PWM-capable pin of UNO and use 'analog Write' to
Lesson 2 LED Flowing Lights
Qty
1
8
1
Latch
pin12
Outputs
pin15
1
pin1
0
pin2
1
pin3
1
pin4
0
pin5
0
pin6
1
pin7
1
Name
220Ω Resistor
DuPont Wire
Breadboard
Data
1
0
Clock
1
1
0
0
1
Qty
8
17
1
1
18

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Ultimate Starter Kit for Arduino and is the answer not in the manual?

Questions and answers

Related Products for Uctronics Ultimate Starter Kit for Arduino

Table of Contents