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
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

Creating a dashboard


While the app is running, it acquires data from sensors and sends the values acquired to the Artik cloud. We can use these values to create charts and visualize the data using different formats. Data charts offer a better way to analyze the data. Let us see how to do it:

  1. Log in to the Artik cloud.
  2. Go to https://my.artik.cloud/ and selectCharts:
  1. Click on Chart in the left top of the window to add the variable we used to collect data from the Android Things board. Add temperature and pressure.
  2. Adjust the time range to fit the period when you sent the data.
  3. At the end, you will see a chart like the following:
  1. Notice the temperature, the pressure, and the different charts used to represent these two variables.
  2. You can use other chart types to better represent your information.

Data logging

While charts give an overview of the values acquired by the Android Things app we developed, we can use other ways to show data. We can visualize all the requests Android Things clients made to...