Table of Contents
Arduino BLINK Blueprints
Credits
About the Authors
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
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
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started with Arduino and LEDs
Arduino boards
Different Arduino boards
How to choose an Arduino board for your project
Arduino UNO
Arduino IDE
Installing Arduino IDE
On Windows
On Linux
On Mac
Understanding Arduino IDE
Before you start
Power supply
Verifying connection
"Hello World"
Using serial communication
Serial write
Serial read
The world of LED
Summary
2. Project 1 – LED Night Lamp
Introduction to breadboard
Structure of a breadboard
Using a breadboard
Controlling multiple LEDs
Simple traffic light controller
LED fading
Pulse width modulation (PWM)
Using PWM on Arduino
Creating a mood lamp
Using an RGB LED
Why do RGB LEDs change color?
Designing a mood lamp
Developing an LED night lamp
Introduction to switch
Pixar lamp
Summary
3. Project 2 – Remote Controlled TV Backlight
Introduction to IR LEDs
What is IR LED?
Applications of IR LED / IR communication
IR sensors
Working mechanism
Programming a basic IR sensor
How to receive data from a TV remote
LED strips
Controlling an LED strip with Arduino
Summary
4. Project 3 – LED Cube
Getting started with soldering
What you will need
Safety tips
Designing an LED cube
Required components
Principle behind the design
Construction
Mistakes to avoid
Fixing to the board
Programming a 4*4*4 LED cube
Summary
5. Sound Visualization and LED Christmas Tree
Introduction to sound visualization
How to visualize the sound
What is FFT (fast fourier transform)
Sound visualization using Arduino
Developing an LED Christmas tree
Summary
6. Persistence of Vision
Creating your own Persistence of Vision
Programming an LED array
Different types of motors
DC motors
Servo motors
Stepper motors
Different applications of motors
Controlling a DC motor using Arduino
Synchronizing an LED array with a motor
Bringing your efforts to life
Using your hands for rotation
Using two different Arduinos or external motors
Use existing real-life devices
Summary
7. Troubleshooting and Advanced Resources
Troubleshooting
Can't upload program
LED is dim
Resources – advanced users
Projects
Twitter Mood Light
Secret knock detecting door-lock
LED biking jacket
Twitter-enabled coffee pot
Useful resources
Hackaday
The Arduino blog
The Make magazine
Bildr
Instructables
Tronixstuff
Adafruit
All About Circuits
Hackerspaces
The Arduino forum
Summary
Index
Copyright © 2016 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 authors, 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: May 2016
Production reference: 1240516
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78528-418-2
www.packtpub.com
Authors
Samarth Shah
Utsav Shah
Reviewer
Timothy Gorbunov
Commissioning Editor
Nadeem Bagban
Acquisition Editors
Ruchita Bhansali
Prachi Bisht
Content Development Editor
Merint Mathew
Technical Editor
Pramod Kumavat
Copy Editor
Safis Editing
Project Coordinator
Francina Pinto
Proofreader
Safis Editing
Indexer
Hemangini Bari
Production Coordinator
Melwyn Dsa
Cover Work
Melwyn Dsa
Samarth Shah is a software engineer by profession and maker by heart. He leads maker activities at Pune Makers and heads Infosys Robotics Club. He loves building creative/innovative prototypes using the latest hardware/sensors (Raspberry Pi, Arduino, Kinect, Leap Motion, and many more) and software. He has given talks at various national and international conferences. He has authored a book on Raspberry Pi entitled Learning Raspberry Pi, Packt Publishing. During the day, he works on various data visualization techniques and UI frameworks. At night, he does blogging, reading, writing, and many more things. You can read more about him at http://samarthshah.com.
Utsav Shah is an instrumentation engineer who loves to work on the latest hardware as well as software technologies. He has been featured on India's leading website http://yourstory.in and Ahmedabad Mirror (Times Group) for his research work on "Converting sign language into speech" using a Leap Motion controller. Apart from his regular work at Infosys Limited, he manages activities of Infosys Robotics Club. In his leisure time, he loves to read books and work on cutting-edge technologies.
Timothy Gorbunov was born in the USA. At a young age, he fell in love with building and constructing things just like his dad. Tim became very good at Origami and started to sell it at elementary school. As he grew up, Tim leaned more towards electronics because it fascinated him more than any other hobby. Creating circuits that buzzed or flashed was one of Tim's favorite things to do. As time went by, he started exploring more advanced electronics and programming, and from that point on, he became more and more knowledgeable in electronics. He got hired to help create cymatic light shows at Cymaspace. There, he helped start Audiolux devices, a company that specializes in sound reactive technologies, by helping design their products. Tim does many other things other than electronics, such as fishing and hiking, but most importantly Tim believes in God. Tim spends a lot of time studying the Bible, praying, and going to church. He wants ever...