Arduino BLINK Blueprints - Samarth Shah - E-Book

Arduino BLINK Blueprints E-Book

Samarth Shah

0,0
26,39 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

Get the most out of your Arduino to develop exciting and creative LED-based projects

About This Book

  • Learn to control TV backlighting using an IR remote
  • Get introduced to sound visualization so you are able to use sound-controlled LEDs
  • Build an exciting persistence of vision wand

Who This Book Is For

Anyone with a basic computer knowledge should be able to get the most out of this book. Although familiarity with some of the electronics would be helpful, it is not a must.

What You Will Learn

  • Set up Arduino boards to run a basic ‘Hello World' program
  • Develop a mood lamp and expand it to become an LED night lamp
  • Control TV backlight color and intensity using an IR remote
  • Develop an IR-controlled 4*4 LED cube
  • Use sound visualization to develop a sound-controlled LED Christmas tree
  • See a fun way to create interesting long exposure photographs and light displays using persistence of vision (POV) wands

In Detail

Arduino is an open-source prototyping platform based on easy-to-use hardware and software. Arduino has been used in thousands of different projects and applications by a wide range of programmers and artists, and their contributions have added up to an incredible amount of accessible knowledge that can be of great help to novices and experts alike.

Want to build exciting LED projects with Arduino? This book will be your companion to bring out the creative genius in you. To begin with, you will get introduced to the maker movement and the open source hardware development Arduino boards. You will then move on to develop a mood lamp and a remote-controlled TV backlight. As you progress through the book, you will develop an LED cube and will learn to use sound visualization to develop a sound-controlled LED Christmas tree. You will then move on to build a persistence of vision wand.

At the end of each chapter, you'll see some common problems, their solutions, and some workarounds.

Style and approach

This book takes a project based approach to building LED-based projects with Arduino.

Sie lesen das E-Book in den Legimi-Apps auf:

Android
iOS
von Legimi
zertifizierten E-Readern

Seitenzahl: 125

Veröffentlichungsjahr: 2016

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



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

Arduino BLINK Blueprints

Arduino BLINK Blueprints

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

Credits

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

About the Authors

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.

We would like to thank our parents Pareshbhai and Sandhyaben for their constant encouragement and continuous support.

About the Reviewer

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 everyone to find the truth, the fact that Jesus Christ died for every person here on earth to bring redemption from their sins and give everlasting life with him in heaven. Tim also reviewed another book, Arduino by Example, Packt Publishing, in which he gained valuable experience in reviewing.

I thank opportunities such as this one for which I can use what I know to help bring books to life. I thank many people in my life who have allowed me to start my interest in this field as well as the Internet for being such a great resource for answering many of questions.

www.PacktPub.com

eBooks, discount offers, and more

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 <[email protected]> for more details.

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 PacktCopy and paste, print, and bookmark contentOn demand and accessible via a web browser

Preface

Arduino is an open source prototyping platform based on easy-to-use hardware and software. Arduino has been used in thousands of different projects and applications by a wide range of programmers and artists, and their contributions have added up to an incredible amount of accessible knowledge that can be of great help to novices and experts alike.

This book will be your companion to bring out the creative genius in you. Asyou progress through the book, you will learn how to develop various projects with Arduino.

What this book covers

Chapter 1, Getting Started with Arduino and LEDs, introduces you to different Arduino boards followed by installation instructions for the Arduino IDE. You will write a "Hello World" program using the Arduino IDE and will learn about serial communication.

Chapter 2, Project 1 – LED Night Lamp, presents you with some cool stuff of controlling LEDs and will show you how to control different LEDs with an artistic approach.

Chapter 3, Project 2 – Remote Controlled TV Backlight, teaches you the basics of IR LEDs and the basics of IR communication. Once you have learnt about programming IR sensor, you will use an IR sensor to control the TV backlight using a remote.

Chapter 4, Project 3 – LED Cube, introduces you to soldering in detail. You will also understand how to create a 4*4*4 LED Cube using the Arduino UNO board.

Chapter 5, Sound Visualization and LED Christmas Tree, shows you how to visualize sound using Arduino and then we will develop an LED Christmas tree.

Chapter 6, Persistence of Vision, helps us create an even more intensive experience by moving LEDs using motors. You will create a Persistence of Vision wand using an LED array and a motor.

Chapter 7, Troubleshooting and Advanced Resources, starts with common troubleshooting techniques. The second and last part of the chapter discusses resources that will be useful if you want to do advanced stuff with Arduino.

What you need for this book

All you need is an Arduino IDE and the enthusiasm to work on interesting projects.

Who this book is for

Anyone with basic computer knowledge should be able to get the most out of this book. Although familiarity with some of the electronics would be helpful, it is not a must.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "If you have downloaded "Windows ZIP file for non admin install", extract it and you will find arduino.exe."

A block of code is set as follows:

// the setup function runs once when you press reset or power the board void setup() { // initialize digital pin 13 as an output. pinMode(13, OUTPUT); }

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Make sure you have selected Arduino UNO under the Tools | Board section."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail <[email protected]>, and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for this book from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

You can download the code files by following these steps:

Log in or register to our website using your e-mail address and password.Hover the mouse pointer on the SUPPORT tab at the top.Click on Code Downloads & Errata.Enter the name of the book in the Search box.Select the book for which you're looking to download the code files.Choose from the drop-down menu where you purchased this book from.Click on Code Download.

You can also download the code files by clicking on the Code Files button on the book's webpage at the Packt Publishing website. This page can be accessed by entering the book's name in the Search box. Please note that you need to be logged in to your Packt account.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

WinRAR / 7-Zip for WindowsZipeg / iZip / UnRarX for Mac7-Zip / PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Arduino-BLINK-Blueprints. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from https://www.packtpub.com/sites/default/files/downloads/ArduinoBLINKBlueprints_ColorImages.pdf.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at <[email protected]> with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at <[email protected]