Book Image

Android Things Projects

By : Francesco Azzola
Book Image

Android Things Projects

By: Francesco Azzola

Overview of this book

Android Things makes developing connected embedded devices easy by providing the same Android development tools, best-in-class Android framework, and Google APIs that make developers successful on mobile. With this book, you will be able to take advantage of the new Android framework APIs to securely build projects using low-level components such as sensors, resistors, capacitors, and display controllers. This book will teach you all you need to know about working with Android Things through practical projects based on home automation, robotics, IoT, and so on. We’ll teach you to make the most of the Android Things and build enticing projects such as a smart greenhouse that controls the climate and environment automatically. You’ll also create an alarm system, integrate Android Things with IoT cloud platforms, and more. By the end of this book, you will know everything about Android Things, and you’ll have built some very cool projects using the latest technology that is driving the adoption of IoT. You will also have primed your mindset so that you can use your knowledge for profitable, practical projects.
Table of Contents (15 chapters)
Title Page
About the Author
About the Reviewers
Customer Feedback

How to control a LED strip using an Android app

In this first Android project, we want to control an LED strip using an Android app. In more detail, the Android app connects directly to the Android Things app that, in turn, controls one or more LED strips through Arduino boards. As we stated in Chapter 5, Create a Smart System to Control Ambient Light, in this project the Android Things app behaves like a gateway acting as a unique point of access. This approach has several benefits, which were highlighted in Chapter 5, Create a Smart System to Control Ambient Light. In this application context, we exploit the built-in web server implemented in the Android Things app. The idea that stands behind this is to create an Android app that uses the HTTP protocol to remotely control the Android Things app (like a master-slave pattern). To this purpose, we can reuse the Android Things app we have developed and attach to it the Android app. In this way, we can control the Android Things app using...