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

Introducing a 7-segment display


In general, a 7-segment display consists of seven LEDs, and an additional LED is used for a dot (DP pin). This then allows us to display each of the 10 decimal digits 0 to 9 on the same 7-segment display.

There are two types of LED 7-segment displays, named common cathode (CC) and common anode (CA). Each LED has two connecting pins: the anode and the cathode. A sample LED datasheet can be found at http://www.kitronik.co.uk/pdf/7_segment_display_datasheet.pdf.

We can show a number on the 7-segment display by combining LED lighting through its pins. For instance, if we want to display the number 7, we should turn on LEDs a, b, and c. To turn an LED on/off, we can use Raspberry Pi GPIO:

Furthermore, we are going to build a program to display the numbers 0 to 9 using Python. The following is the hardware required:

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}