Home Page Icon
Home Page
Table of Contents for
Android Things Quick Start Guide
Close
Android Things Quick Start Guide
by Raul Portales
Android Things Quick Start Guide
Title Page
Copyright and Credits
Android Things Quick Start Guide
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Code in action
Conventions used
Get in touch
Reviews
Introducing Android Things
Technical requirements
What is Android Things?
Internet of Things (IoT) vs. smart devices
Android Things vs. other platforms
Emulators and testing
Android Studio
Design concepts behind Android Things
Displays are optional
Home activity support
Permissions
Android Things Console
Supported APIs
Hardware you will need
Android Things developer kits
Raspberry Pi
NXP Pico iMX7D
Rainbow HAT
Components, circuits, and so on
Wires and breadboards
Setting up a developer kit
Installing Android Things
Configuring Wi-Fi using the script
Configuring Wi-Fi using the system UI
Connecting to your Android Things
Creating an Android Things project
Manifest
Gradle configuration
Activity code
Summary
The Rainbow HAT
Technical requirements
Android Things architecture
Peripheral lifecycle
User space drivers
LEDs
The Arduino way
Threads
Coroutines
Using Handler and Runnable
Using Timer and Timertask
Buttons
Button driver
Debouncing
Button input drivers
Piezo buzzer
Alphanumeric display (Ht16k33)
Temperature and pressure sensor (Bmx280)
Direct read
Continuous updates with sensor driver
Adding pressure driver
LED strip (Apa102)
Summary
GPIO - Digital Input/Output
Technical requirements
Making the code work on any developer kit
Using GPIO for output
LEDs
Relays
Using GPIO for input
Buttons
Button driver
Input drivers
Controlling buttons directly with GPIO
Other sensors
Other usages of GPIO
DC motor controller (L298N)
Stepper motor (28BYJ-48) with controller (ULN2003)
Ultrasonic distance sensor (HC-SR04)
LCD display (TM1637)
Summary
PWM - Buzzers, Servos, and Analog Output
Technical requirements
PWM overview
Piezo buzzers
Servos
Using the servo driver
Tweaking the servo configuration
PWM as analog output
Summary
I2C - Communicating with Other Circuits
Technical requirements
Overview of I2C
Addressing circuits
Revisiting Rainbow HAT components
Alphanumeric display (Ht16k33)
Temperature and pressure sensor (Bmx280)
Extension components
Analog to digital converter (ADC) – PCF8591
Analog sensors
PWM expander – PCA9685
GPIO expander – PCF8575
Small displays
Other I2C sensors
Accelerometer/gyroscope – MPU6050
Summary
SPI - Faster Bidirectional Communication
Technical requirements
Overview of SPI
LED strip
Usage on displays
LED matrix
SPI version of SSD1306
Summary
The Real Power of Android Things
Technical requirements
Using Android UI
Companion apps and communication
REST API using NanoHttpd/Retrofit
Firebase Realtime Database
Nearby
Advertising and discovering
Initiating and confirming connections
Sending and receiving data
More cool stuff
TensorFlow – image classifier
Publish subscribe buses
Google Assistant – Home control
Online resources
Summary
Pinouts diagrams and libraries
Raspberry Pi Pinout
NXP iMX7D Pinout
Supported and unsupported libraries
Unsupported features
Common intents and content providers
Available Google APIs 
Unavailable Google APIs
Other Books You May Enjoy
Leave a review - let other readers know what you think
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
Title Page
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset