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 traffic light controller


You can find traffic light controller devices at road intersections. They're used to manage vehicle movement on the road. Every traffic light consists of three lamps—red, yellow, and green. These colors have the following meaning:

  • Red: Drivers must stop their vehicle

  • Yellow: Drivers should prepare to start to drive or start to stop

  • Green: Drivers must drive their vehicle

A sample traffic light can be seen in the following figure:

These traffic lights are usually placed at the corner of a road intersection, as shown in the following diagram. You can see them on your left- or right-hand side. Sometimes, they're shown over the top of your vehicle:

In general, there can be two, three, four or n road intersections. We know that a traffic light needs three lamps, so to implement n road intersections, you need at least 3n lamps. You may need walking and do not work lamps. Some traffic road intersections can be seen in the following figure:

In this chapter, I will...

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}