Raspberry Pi LED Blueprints
()
About this ebook
Read more from Agus Kurniawan
Python and SQLite Development Rating: 0 out of 5 stars0 ratingsSmart Internet of Things Projects Rating: 4 out of 5 stars4/5Getting Started with Big Data Query using Apache Impala Rating: 0 out of 5 stars0 ratingsIoT Projects with NVIDIA Jetson Nano: AI-Enabled Internet of Things Projects for Beginners Rating: 0 out of 5 stars0 ratingsIoT Projects with Arduino Nano 33 BLE Sense: Step-By-Step Projects for Beginners Rating: 0 out of 5 stars0 ratingsPractical Azure Functions: A Guide to Web, Mobile, and IoT Applications Rating: 0 out of 5 stars0 ratingsRaspbian OS Programming with the Raspberry Pi: IoT Projects with Wolfram, Mathematica, and Scratch Rating: 0 out of 5 stars0 ratingsBeginning Arduino Nano 33 IoT: Step-By-Step Internet of Things Projects Rating: 0 out of 5 stars0 ratingsPractical Contiki-NG: Programming for Wireless Sensor Networks Rating: 0 out of 5 stars0 ratings
Related to Raspberry Pi LED Blueprints
Related ebooks
Learning Raspbian Rating: 5 out of 5 stars5/5Raspberry Pi Android Projects Rating: 0 out of 5 stars0 ratingsBuilding Wireless Sensor Networks Using Arduino Rating: 4 out of 5 stars4/5Learning Raspberry Pi Rating: 0 out of 5 stars0 ratingsRaspberry Pi Blueprints Rating: 0 out of 5 stars0 ratingsLearn Arduino Prototyping in 10 days Rating: 0 out of 5 stars0 ratingsArduino Android Blueprints Rating: 0 out of 5 stars0 ratingsArduino for Secret Agents Rating: 4 out of 5 stars4/5Arduino Electronics Blueprints Rating: 4 out of 5 stars4/5Getting Started with Raspberry Pi Zero Rating: 5 out of 5 stars5/5Internet of Things with Arduino Blueprints Rating: 0 out of 5 stars0 ratingsRaspberry Pi 3 Projects for Java Programmers Rating: 0 out of 5 stars0 ratingsRaspberry Pi Server Essentials Rating: 0 out of 5 stars0 ratingsIntel Galileo Essentials Rating: 0 out of 5 stars0 ratingsRaspberry Pi Robotics Essentials Rating: 0 out of 5 stars0 ratingsGetting Started with Python and Raspberry Pi Rating: 3 out of 5 stars3/5Raspberry Pi Gaming - Second Edition Rating: 0 out of 5 stars0 ratingsArduino BLINK Blueprints Rating: 0 out of 5 stars0 ratingsArduino Networking Rating: 4 out of 5 stars4/5Arduino Home Automation Projects Rating: 3 out of 5 stars3/5Raspberry Pi Robotic Blueprints Rating: 2 out of 5 stars2/5Building Smart Homes with Raspberry Pi Zero Rating: 0 out of 5 stars0 ratingsBuilding a Home Security System with Raspberry Pi Rating: 0 out of 5 stars0 ratingsLearning C for Arduino Rating: 0 out of 5 stars0 ratingsMastering BeagleBone Robotics Rating: 5 out of 5 stars5/5Raspberry Pi Robotic Projects - Third Edition Rating: 0 out of 5 stars0 ratingsThe Internet of Things: Do-It-Yourself at Home Projects for Arduino, Raspberry Pi and BeagleBone Black Rating: 0 out of 5 stars0 ratingsRaspberry Pi Computer Architecture Essentials Rating: 0 out of 5 stars0 ratingsRaspberry Pi By Example Rating: 0 out of 5 stars0 ratingsRaspberry Pi: Raspberry Pi programming for beginners, including Raspberry Pi projects, tips, tricks, and more! Rating: 0 out of 5 stars0 ratings
Hardware For You
Mastering ChatGPT Rating: 0 out of 5 stars0 ratingsiPhone Photography: A Ridiculously Simple Guide To Taking Photos With Your iPhone Rating: 0 out of 5 stars0 ratingsCompTIA A+ Complete Review Guide: Exam Core 1 220-1001 and Exam Core 2 220-1002 Rating: 5 out of 5 stars5/550 Android Hacks Rating: 5 out of 5 stars5/5Computer Science: A Concise Introduction Rating: 4 out of 5 stars4/5iPhone 14 Pro Max User Guide for Beginners and Seniors Rating: 0 out of 5 stars0 ratingsWindows 11 For Seniors For Dummies Rating: 0 out of 5 stars0 ratingsiPhone For Seniors For Dummies: Updated for iPhone 12 models and iOS 14 Rating: 4 out of 5 stars4/5Raspberry Pi Electronics Projects for the Evil Genius Rating: 3 out of 5 stars3/5Embedded Systems: World Class Designs Rating: 5 out of 5 stars5/5Samsung Galaxy S23 Ultra User Guide for Beginners and Seniors Rating: 3 out of 5 stars3/5CompTIA A+ Complete Review Guide: Core 1 Exam 220-1101 and Core 2 Exam 220-1102 Rating: 5 out of 5 stars5/5Dancing with Qubits: How quantum computing works and how it can change the world Rating: 5 out of 5 stars5/5iPhone X Hacks, Tips and Tricks: Discover 101 Awesome Tips and Tricks for iPhone XS, XS Max and iPhone X Rating: 3 out of 5 stars3/5Exploring Apple iPad: iPadOS 15 Edition: The Illustrated, Practical Guide to Using your iPad Rating: 0 out of 5 stars0 ratingsFitbit For Dummies Rating: 0 out of 5 stars0 ratingsMacs All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsBuild Your Own PC Do-It-Yourself For Dummies Rating: 4 out of 5 stars4/5Upgrading and Fixing Computers Do-it-Yourself For Dummies Rating: 4 out of 5 stars4/5iPod and iTunes For Dummies Rating: 4 out of 5 stars4/5Programming Arduino: Getting Started with Sketches Rating: 4 out of 5 stars4/5Computers For Seniors For Dummies Rating: 0 out of 5 stars0 ratingsLinux All-in-One For Dummies Rating: 3 out of 5 stars3/5iPhone 12, iPhone Pro, and iPhone Pro Max For Senirs: A Ridiculously Simple Guide to the Next Generation of iPhone and iOS 14 Rating: 0 out of 5 stars0 ratingsComputer Organization and Design: The Hardware / Software Interface Rating: 4 out of 5 stars4/5So you want to build a computer... Rating: 5 out of 5 stars5/5Creative Selection: Inside Apple's Design Process During the Golden Age of Steve Jobs Rating: 5 out of 5 stars5/5Evernote Essentials Guide (Boxed Set): Evernote Guide For Beginners for Organizing Your Life Rating: 3 out of 5 stars3/5Laptops All-in-One For Dummies Rating: 4 out of 5 stars4/5
Reviews for Raspberry Pi LED Blueprints
0 ratings0 reviews
Book preview
Raspberry Pi LED Blueprints - Agus Kurniawan
Table of Contents
Raspberry Pi LED Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started with LED Programming through Raspberry Pi GPIO
Setting up Raspberry Pi
Introducing Raspberry Pi GPIO
Blinking LEDs
Turning an LED on/off using a push button
Changing color through an RGB LED
Summary
2. Make Your Own Countdown Timer
Introducing a 7-segment display
Introducing a shift register
Driving a 7-segment display using a shift register
Working with a 4-digit 7-segment display
Building a countdown timer
Summary
3. Make Your Own Digital Clock Display
Introducing a 4-digit 7-segment display for a digital clock
Introducing an I2C OLED graphic display
Enabling I2C on Raspberry Pi
The I2C library for Python
Displaying numbers and characters
Building a digital clock using an I2C OLED graphic display
Summary
4. LED Dot Matrix
Introducing LED dot matrix display (8 x 8 LEDs)
Introducing an LED dot matrix driver
Enabling Raspberry Pi SPI
Deploying a matrix 7219 driver
Displaying a random number on the LED dot matrix display
Displaying a random character on the LED dot matrix display
Building a ball reflection game
Cascading LED dot matrix modules
Summary
5. Building Your Own Traffic Light Controller
Introducing a traffic light controller
Designing a traffic light controller
Controlling AC/DC lamps using channel relay modules
Expanding Raspberry Pi GPIO
Building a traffic light controller
Cascading traffic light controllers
Summary
6. Building Your Own Light Controller-based Bluetooth
Introducing Bluetooth
Working with Bluetooth using Raspberry Pi
Setting up a Bluetooth USB
Turning on/off Bluetooth
Enabling discoverable
Scanning for Bluetooth Devices
Introducing iBeacon
Bluetooth programming on Android
Building a remote light controller-based Bluetooth
Wiring
Building a program for Raspberry Pi
Building a Bluetooth app for Android
Testing
Summary
7. Making Your Own Controlled Lamps Through Internet Network
Connecting the Raspberry Pi to a network
Connecting to a wired network
Connecting to a wireless network
Introducing Node.js
Controlling LEDs and lamps using Node.js
Building a simple web server using Node.js
Building RESTful using Node.js
Controlling LEDs through RESTful
Building a PhoneGap application for Android
Connecting PhoneGap Android to Raspberry Pi through RESTful
Summary
Index
Raspberry Pi LED Blueprints
Raspberry Pi LED Blueprints
Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: September 2015
Production reference: 1210915
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78217-575-9
www.packtpub.com
Credits
Author
Agus Kurniawan
Reviewers
David Alcoba
Parul Sharma
Commissioning Editor
Neil Alexander
Acquisition Editor
Vivek Anantharaman
Content Development Editor
Aparna Mitra
Technical Editor
Tejaswita Karvir
Copy Editor
Dipti Mankame
Project Coordinator
Izzat Contractor
Proofreader
Safis Editing
Indexer
Hemangini Bari
Graphics
Jason Monteiro
Production Coordinator
Shantanu N. Zagade
Cover Work
Shantanu N. Zagade
About the Author
Agus Kurniawan is a lecturer, IT consultant, and author. He has experience in various software and hardware development projects, delivering materials in training and workshops, and delivering technical writing for 14 years. He has been awarded the Microsoft Most Valuable Professional (MVP) award for 11 years in a row.
He is currently doing some research and teaching activities related to networking and security systems at the Faculty of Computer Science, University of Indonesia, and Samsung R&D Institute, Indonesia. Currently, he is pursuing a PhD in computer science in Germany. He can be reached on his blog at http://blog.aguskurniawan.net, and Twitter at @agusk2010.
First, I am thankful to the entire team at Packt, especially Vivek, Aparna, Tejaswita, and the reviewers, for being so cooperative and patient with me. They have been a great help, and their feedback and hints have improved the manuscript considerably.
This book is dedicated to all open source makers, developers, contributors, and enthusiasts from Raspberry Pi communities.
I would like to thank my wife, Ela Juitasari, my son, Thariq, and daughter, Zahra, for their support and encouragement.
About the Reviewers
David Alcoba, for many years, has been working as a software engineer, who likes to play with electronics in his spare time. While he was responsible for designing and building highly secure distributed applications for the industry, he also decided to start gaining more and more knowledge of digital fabrication tools every day. Then, he realized that he'd just discovered a world where all of his different interests could be merged into a single project.
Based on this idea, he helped create Vailets Hacklab in 2014, a local community in Barcelona that aims to hack the current educational system so that kids might be come cocreators of their future through technology instead of being just consumers.
Following the spirit of this initiative, David decided to cofound Makerkids Barcelona, a small start-up focused on providing professional services for schools and organizations to engage kids into the new maker movement and follow the STEAM (science, technology, engineering, art, and mathematics) educative principles.
Parul Sharma is a commissioning engineer. He has experience in project erection and commissioning, robotics, and hardware hacking. He has a good skill set of programming languages. He also works as a freelancer for developing and mentoring projects for engineering students. He has expertise in LabVIEW, SIMATIC, TIA, and Arduino.
I would like to thank my parents to guide me to be a good human being.
www.PacktPub.com
Support files, eBooks, discount offers, and more
For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.
Why subscribe?
Fully searchable across every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via a web browser
Free access for Packt account holders
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view 9 entirely free books. Simply use your login credentials for immediate access.
Preface
An LED is a simple actuator device that displays lighting and can be controlled easily using Raspberry Pi. This book will explain processes to control LEDs using Raspberry Pi—from describing ideas to designing and implementing several projects based on LEDs, such as 7-segment, 4-digit 7-segment, and dot matrix displays. Samples of the project application are provided, such as a countdown timer, a digital clock, a traffic light controller, a remote light controller, and an LED-based Internet of Things, to get more practice with the Raspberry Pi development.
Raspberry Pi LED Blueprints is an essential reference for practical solutions to build the LED-based application. Beginning with step-by-step instructions for installation and configuration, this book can either be read from cover to cover or treated as an essential reference companion to your Raspberry Pi.
I hope that you will find this book useful and it will help you take your skills to a higher level.