This chapter describes how to create a system that uses Android Things to control ambient light. During this project, we will explore how to use the Android Things app to control IoT boards such as Arduino. As we will see later, Android Things can be used as an IoT gateway that manages one or more remote IoT boards in a master-slave architecture.
The main topics covered in this chapter are:
- How to use Android Things in a master-slave architecture
- Implementing an Arduino sketch to control a RGB LED strip
- How to use HTTP protocol to exchange data
- Creating an Android Things UI
At the end of this chapter, we will build a real-life working IoT project based on Android Things that we can use in our home to manage LED lights.