If you are looking for the Chapter 7 content for the 2nd Edition of Exploring Arduino, please click here.
Shift Registers
Parts List
- Arduino Uno
- USB A-B Cable
- Red LEDs (x8)
- Yellow LEDs (x3)
- Green LEDs (x4)
- 220Ω Resistors (x8)
- SN74HC595N Shift Register
- Sharp GP2Y0A41SK0F IR Distance Sensor with Cable
- Jumper Wires
- Breadboard
Code
Download Code (1st Edition, Chapter 7)
(Also available on GitHub)
Useful Links
- Arduino shiftOut() Function Reference
- 74HC595 Shift Register Datasheet (PDF)
- Sharp IR Distance Sensor Datasheet (PDF)
Errata
- Figure 7-8 is particularly hard to understand in greyscale (print copies of the book). The color version below should be much clearer, as it clearly shows the yellow, red, and green LEDs.
Color Wiring Diagrams & LED Diagram
Videos
Watch a demo of the “Light Rider” display created in the chapter:
Watch a demo of the distance-responsive light meter created in the chapter: