Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Android Things Projects

You're reading from  Android Things Projects

Product type Book
Published in Jun 2017
Publisher Packt
ISBN-13 9781787289246
Pages 232 pages
Edition 1st Edition
Languages
Author (1):
Francesco Azzola Francesco Azzola
Profile icon Francesco Azzola

Table of Contents (15) Chapters

Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface
Getting Started with Android Things Creating an Alarm System Using Android Things How to Make an Environmental Monitoring System Integrate Android Things with IoT Cloud Platforms Create a Smart System to Control Ambient Light Remote Weather Station Build a Spying Eye Android with Android Things

Building the Arduino project


In this paragraph, we will implement the Arduino project. The first step is connecting the RGB LED strip to Arduino, as described in the following figure:

As you can see, the wiring is very simple. The WS2812 peripherals have only one data pin that is connected to the Arduino pin 5 (PWM).

Note

Do not forget to connect the ground all together to have a common reference.

Now it is time to start developing the code. To handle the RGB LED strip we will use a library developed by Adafruit that makes it very easy to manage every RGB LED available on the strip. You can directly use the source code of this sketch and upload it into your Arduino Uno board, skipping all the following steps. You can find the source code once you have downloaded the book project source code. Anyway, it is useful to follow this guide step by step because it helps you to better understand how to implement the Android Things app.

Therefore, the first step is installing this library:

  1. Open Arduino IDE...
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}