If you are looking for the Chapter 9 content for the 1st Edition of Exploring Arduino, please click here.
Shift Registers
Parts List
- Arduino Uno or Adafruit METRO 328
- USB cable (Type A to B for Uno, Type A to Micro-B for METRO)
- Half-size or full-size breadboard
- Assorted jumper wires
- 220Ω resistors (×8)
- 5mm red LEDs (×8)
- 5mm green LEDs (×4)
- 5mm yellow LEDs (×3)
- Sharp GP2Y0A21YK0F IR distance sensor with JST cable
- SN74HC595N shift register
Code
Download Code (2nd Edition, Chapter 9)
(Also available on GitHub)
Useful Links
- Arduino shiftOut() Function Reference
- 74HC595 Shift Register Datasheet (PDF)
- Sharp IR Distance Sensor Datasheet (PDF)
Videos
Watch a demo video of the “Light Rider LED Animation” project from this chapter:
Watch a demo video of the “Distance-Responsive LED Bar Graph” project from this chapter: