Android things quick start guide build your own smart devices using the android things platform
Android Things is the new Android based Operating System for the Internet of Things. With this book you will learn the core concepts by running code examples on different peripherals. Key Features No previous knowledge of IoT or microcontrollers required. Hands-On with simple code and plenty of exam...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham ; Mumbai :
Packt
2018.
|
Edición: | 1st edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630684306719 |
Tabla de Contenidos:
- Cover
- Title Page
- Copyright and Credits
- Dedication
- Packt Upsell
- Contributors
- Table of Contents
- Preface
- Chapter 1: 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
- Chapter 2: 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
- Chapter 3: 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
- Chapter 4: 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
- Chapter 5: 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
- Chapter 6: SPI - Faster Bidirectional Communication
- Technical requirements
- Overview of SPI
- LED strip
- Usage on displays
- LED matrix
- SPI version of SSD1306
- Summary
- Chapter 7: 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
- Appendix A: 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
- Index.