基本信息
源码名称:Android Things Projects.pdf
源码大小:11.11M
文件格式:.pdf
开发语言:Java
更新时间:2020-10-23
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
本章的开始,我们会给一个Android Things的概览,包括什么是Android Things,它与Android的不同。你将会学到如何把你的Android知识重复利用到Android Things项目上。然后,你还要学习如何安装Android Things在不同的主板,如Raspberry Pi 3和配有无所不能的Arduino的Intel Edison。当我们建立自己的开发环境有助于我们熟悉开发板。一旦你适应了它,我们将转到创建第一个Android Things 项目上来,你会学习如何使用简单的外围设备,如LED和按钮(或开关)。更详细的,我们将探索如何把一个Android 项目转换为Android Things项目。更进一步,还要概览最重要的Android Things API,以及如何在真实的IoT项目使用它
本章的开始,我们会给一个Android Things的概览,包括什么是Android Things,它与Android的不同。你将会学到如何把你的Android知识重复利用到Android Things项目上。然后,你还要学习如何安装Android Things在不同的主板,如Raspberry Pi 3和配有无所不能的Arduino的Intel Edison。当我们建立自己的开发环境有助于我们熟悉开发板。一旦你适应了它,我们将转到创建第一个Android Things 项目上来,你会学习如何使用简单的外围设备,如LED和按钮(或开关)。更详细的,我们将探索如何把一个Android 项目转换为Android Things项目。更进一步,还要概览最重要的Android Things API,以及如何在真实的IoT项目使用它
Table of Contents Preface 1 Chapter 1: Getting Started with Android Things 6 Internet of Things overview 7 IoT components 8 Android Things overview 9 Things support library 11 Android Things board compatibility 12 How to install Android Things on Raspberry 13 How to install Android Things using Windows 14 How to install Android Things using OS X 14 Testing the installation 17 How to install Android Things on Intel Edison 18 Configuring the WiFi 23 Creating the first Android Things project 23 Cloning the template project 24 Create the project manually 24 Differences between Android and Android Things 25 Create your first Android Things app 26 Summary 34 Chapter 2: Creating an Alarm System Using Android Things 35 Alarm system project description 36 PIR sensor 37 Project schematic 38 How to use GPIO pins 41 Reading from the GPIO pin 43 How to add a listener to GPIO 44 Declare the event to listen to 44 Implementing the callback class 45 How to close the connection with a GPIO pin 46 Handle different boards in Android Things 47 Android Things board pinout 48 How to identify the board 49 How to implement the notification system 51 Configuring firebase 51 [ ii ] Add the notification feature to the Android Things app 56 Android companion app 58 Summary 60 Chapter 3: How to Make an Environmental Monitoring System 61 Environmental monitoring system project overview 62 Project components 63 Project schematic 64 How to read data from sensors 68 Handling sensors using the Android sensor framework 70 Implementing the sensor callback 71 How to handle dynamic sensors 72 Putting it all together - acquiring data 74 How to close the sensor connection 75 How to control GPIO pins 76 Initialize the GPIO pin 77 Diving into I2C protocol 80 I2C protocol overview 80 How to implement a custom sensor driver 82 Low-level sensor driver 84 Summary 88 Chapter 4: Integrate Android Things with IoT Cloud Platforms 89 IoT cloud architecture 89 An IoT cloud platform overview 90 IoT cloud architecture overview 92 Streaming data to the IoT cloud platform 93 How to configure Artik Cloud 94 Artik client description 100 How to implement the Android Things Artik client 102 Implement a StringRequest with Volley 104 Implement a custom HTTP header 105 Send the data using a custom body request 105 Sending data from the Android Things app 106 Creating a dashboard 108 Data logging 110 Adding voice capabilities to Android Things 111 Configure Temboo choreo 112 Integrate Temboo in the Android Things app 115 Summary 117 Chapter 5: Create a Smart System to Control Ambient Light 118 [ iii ] Ambient light control system description 118 Project components 120 Project architecture 121 Building the Arduino project 122 How Arduino exposes the services 125 Implementing the Android Things app 127 How to develop an Android Things app UI 128 Attaching the layout to the Activity 131 Handling UI events 132 Invoking the Arduino services 134 How to implement a web interface 136 Implementing a simple HTTP web server 137 Creating the HTML page with the UI 138 Embedding the HTTP Server into the Android Things app 139 Summary 141 Chapter 6: Remote Weather Station 142 Remote weather station project description 142 Project components 144 The M2M architecture and the MQTT protocol 146 MQTT protocol overview 147 MQTT message details 148 Security and QoS 150 Using MQTT in our remote weather station 150 Implementing the MQTT publisher 151 Connecting to MQTT and sending data 154 Implementing the MQTT subscriber using Android Things 155 Implementing the Android Things Activity 159 Displaying the information using OLED display 162 Connect the OLED display to Android Things board 164 Installing the MQTT server 168 Installing the MQTT broker 168 Configuring the MQTT broker 170 Summary 170 Chapter 7: Build a Spying Eye 171 Spying eye Android Things project overview 171 Project components 173 Pulse Width Modulation overview 174 How to use PWM with Android Things 175 Implementing the spying eye project in Android Things 177 [ iv ] Controlling a servomotor in Android Things 178 Using a camera in Android Things 181 Getting ready to use the camera 182 Assembling the app 186 Summary 188 Chapter 8: Android with Android Things 189 Architecture to connect Android and Android Things 190 How to control a LED strip using an Android app 192 Connecting the Android app to Android Things 199 How to develop an Android app that retrieves data from Android Things 201 How to implement a Bluetooth connection 201 Creating the Android app 202 Implementing the Bluetooth server in Android Things 207 Summary 209 Index 210