Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Raspberry Pi LED Blueprints

You're reading from  Raspberry Pi LED Blueprints

Product type Book
Published in Sep 2015
Publisher
ISBN-13 9781782175759
Pages 180 pages
Edition 1st Edition
Languages
Author (1):
Agus Kurniawan Agus Kurniawan
Profile icon Agus Kurniawan

Table of Contents (14) Chapters

Raspberry Pi LED Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Getting Started with LED Programming through Raspberry Pi GPIO Make Your Own Countdown Timer Make Your Own Digital Clock Display LED Dot Matrix Building Your Own Traffic Light Controller Building Your Own Light Controller-based Bluetooth Making Your Own Controlled Lamps Through Internet Network Index

Driving a 7-segment display using a shift register


We have already learned how to use a shift register using 74HC595. In this section, we will try to use a shift register to drive a 7-segment display.

To drive a 7-segment display using a shift register, you can connect 74HC595 to the 7-segment module. The following is the hardware wiring:

  • 74HC595 Q0 to Q6 pins to 7-segment a to b pins

  • The 74HC595 Q7 pin to the 7-segment DP pin

  • The 74HC595 VCC pin is connected to Raspberry Pi VCC +3.3 V

  • The 74HC595 GND pin is connected to Raspberry Pi GND

  • The 74HC595 DS/Data pin is connected to Raspberry Pi GPIO25 (wPi 6)

  • The 74HC595 OE pin is connected to Raspberry Pi GPIO GND

  • The 74HC595 STCP/LATCH pin is connected to Raspberry Pi GPIO24 (wPi 5)

  • The 74HC595 SHCP/Clock pin is connected to Raspberry Pi GPIO23 (wPi 4)

  • The 74HC595 MR pin is connected to Raspberry Pi GPIO VCC +3.3 V

You can see that there are resistors on the wiring. These components are used to prevent the higher current flow on you wiring so a resistor...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}