在好例子网,分享、交流、成长!
您当前所在位置:首页Java 开发实例Android平台开发 → Android Things Projects.pdf

Android Things Projects.pdf

Android平台开发

下载此实例
  • 开发语言:Java
  • 实例大小:11.11M
  • 下载次数:1
  • 浏览次数:18
  • 发布时间:2020-10-23
  • 实例类别:Android平台开发
  • 发 布 人:galilee2021
  • 所需积分:2
 相关标签: Android project and TS Pr

实例介绍

【实例简介】本章的开始,我们会给一个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


标签: Android project and TS Pr

实例下载地址

Android Things Projects.pdf

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
;
报警