adafruit-arduino-lesson-4-eight-leds.pdf
(
923 KB
)
Pobierz
Arduino Lesson 4. Eight LEDs and a Shift Register
Created by Simon Monk
Last updated on 2013-06-24 10:15:50 PM EDT
Guide Contents
Guide Contents
Overview
Parts
Part
Qty
2
3
4
4
4
Breadboard Layout
The 74HC595 Shift Register
Arduino Code
Brightness Control
Other Things to Do
6
8
10
13
15
© Adafruit Industries
http://learn.adafruit.com/adafruit-arduino-lesson-4-eight-leds
Page 2 of 15
Overview
In this lesson, you will learn how to use eight large red LEDs with an Arduino without needing to
give up 8 output pins!
Although you could wire up eight LEDs each with a resistor to an Arduino pin (like we did for an
RGB LED in Lesson 2) you would rapidly start to run out of pins on your Arduino. If you don't
have a lot of stuff connected to your 'duino it's OK to do so - but often times we want buttons,
sensors, servos, etc and before you know it you've got no pins left. So, instead of doing that,
you are going to use a chip called the
74HC595 Parallel to Serial Co nverter.
This chip
has eight outputs (perfect) and three inputs that you use to feed data into it a bit at a time.
This chip makes it a little slower to drive the LEDs (you can only change the LEDs about 500,000
times a second instead of 8,000,000 a second) but it's still really really fast, way faster than
humans can detect, so it's worth it!
© Adafruit Industries
http://learn.adafruit.com/adafruit-arduino-lesson-4-eight-leds
Page 3 of 15
Parts
To build the project described in this lesson, you will need the following parts.
Part
Qty
5mm Red LED
8
270 Ω Resistors (red, purple, brown
stripes)
8
74HC595 Shift Register
1
Half-size Breadboard
1
© Adafruit Industries
http://learn.adafruit.com/adafruit-arduino-lesson-4-eight-leds
Page 4 of 15
Arduino Uno R3
1
Jumper wire pack
1
© Adafruit Industries
http://learn.adafruit.com/adafruit-arduino-lesson-4-eight-leds
Page 5 of 15
Plik z chomika:
MamToCzegoChcesz
Inne pliki z tego folderu:
adafruit-arduino-lesson-9-sensing-light.pdf
(788 KB)
Arduino-sample-code-EZ-COM-MEGA.pdf
(733 KB)
ArduinoTutorials(1).pdf
(1570 KB)
RobotOpen_Lib_v1_1_x.pdf
(62 KB)
adafruit-proto-shield-arduino.pdf
(2555 KB)
Inne foldery tego chomika:
Zgłoś jeśli
naruszono regulamin