This is the code repository for Android Things QuickStart Guide, published by Packt.
**Build your own smart devices using the Android Things platform **
Android Things is the IoT platform made by Google, based on Android. It allows us to build smart devices in a simple and convenient way, leveraging on the Android ecosystem tools and libraries, while letting Google take care of security updates.
This book covers the following exciting features:
- Understand key design concepts of Android Things and its advantages
- Set up an Android Things Developer Kit
- Interact with all the components of Rainbow HAT
- Understand how peripheral protocols work (GPIO, PWM, I2C, and SPI)
- Implement best practices of how to handle IoT peripherals with in terms Android Things
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
dependencies {
[...]
implementation 'com.google.android.things.contrib:driver-rainbowhat:+'
}
Following is what you need for this book: This book is for developers who have a basic knowledge of Android and want to start using the Android Things developer kit.
With the following software and hardware list you can run all code files present in the book (Chapter 1-7).
Chapter | Software required | Hardware required | OS required |
---|---|---|---|
1 to 7 | Android Studio 3.1 or newer | Windows, Linux or MacOS | |
1 to 7 | Android Things Developer Kit | Windows, Linux or MacOS | |
1 to 7 | Rainbow HAT | Windows, Linux or MacOS | |
3-6 | Breadboard and cables | Windows, Linux or MacOS | |
3 | 3v3 Relay | Windows, Linux or MacOS | |
3 | PIR motion sensor | Windows, Linux or MacOS | |
3 | MQ135 | Windows, Linux or MacOS | |
3 | L298N (and DC motors) | Windows, Linux or MacOS | |
3 | 28YBJ-48, ULN2003 | Windows, Linux or MacOS | |
3 | HC-SR04 | Windows, Linux or MacOS | |
3 | M1637 | Windows, Linux or MacOS | |
4 | Tower Pro MG90S | Windows, Linux or MacOS | |
4 | LEDs | Windows, Linux or MacOS | |
5 | PCF8591 | Windows, Linux or MacOS | |
5 | Moisture sensor | Windows, Linux or MacOS | |
5 | PCA9685 | Windows, Linux or MacOS | |
5 | PCF8575 | Windows, Linux or MacOS | |
5 | LCD display and controller | Windows, Linux or MacOS | |
5 | MPU6050 | Windows, Linux or MacOS | |
6 | MAX7219 | Windows, Linux or MacOS | |
5 to 6 | SSD1306 | Windows, Linux or MacOS |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Click on the following link to see the Code in Action:
Raul Portales Raul Portales is a software engineer who has had a love for computers, electronics, and gadgets in general for as long as he remembers.
He jumped into Android as soon as it was released. Raul has worked on social networks, education, healthcare, and even founded a gaming studio and a consultancy company. Specializing in mobile and UX, he speaks frequently at conferences and meetups.
Raul's love for electronics reignited when Google announced Android Things. He started tinkering with it with the first Developer Preview, which lead to adding the IoT category on his Google Developer expert profile.
Click here if you have any feedback or suggestions.
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.