Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Getting started with Android Things - Pavlo Zin`
Search
GDG Ternopil
January 21, 2017
Programming
0
82
Getting started with Android Things - Pavlo Zin`
Getting started with Android Things - Pavlo Zin`
GDG Ternopil
January 21, 2017
Tweet
Share
More Decks by GDG Ternopil
See All by GDG Ternopil
Semi supervised learning with Autoencoders by Ілля Горев
gdgternopil
1
73
Застосування ML в реальних проектах - Андрій Дерень
gdgternopil
1
100
Android Architecture Components by Ihor Dzikovskyy
gdgternopil
1
150
First look at Room Persistence by Oleksiy Sazhko
gdgternopil
1
97
Mobile Applications Architecture by Constantine Mars
gdgternopil
2
71
Tuning your SQLite with SQLDelight & SQLBrite - Mkhytar Mkhoian
gdgternopil
0
260
Speeding up development with AutoValue - Andrii Rakhimov
gdgternopil
0
73
The Mistery of Gradle Plugins - Dmytro Zaitsev
gdgternopil
0
62
Xamarin Build native Android & iOS apps with C# - Vitalii Smal
gdgternopil
0
91
Other Decks in Programming
See All in Programming
第3回 Snowflake 中部ユーザ会- dbt × Snowflake ハンズオン
hoto17296
4
360
SwiftUI Viewの責務分離
elmetal
PRO
0
140
なぜイベント駆動が必要なのか - CQRS/ESで解く複雑系システムの課題 -
j5ik2o
7
2.5k
DROBEの生成AI活用事例 with AWS
ippey
0
130
CloudNativePGがCNCF Sandboxプロジェクトになったぞ! 〜CloudNativePGの仕組みの紹介〜
nnaka2992
0
220
Honoとフロントエンドの 型安全性について
yodaka
4
250
『GO』アプリ バックエンドサーバのコスト削減
mot_techtalk
0
130
Honoをフロントエンドで使う 3つのやり方
yusukebe
4
2.1k
社内フレームワークとその依存性解決 / in-house framework and its dependency management
vvakame
1
550
バックエンドのためのアプリ内課金入門 (サブスク編)
qnighy
8
1.7k
動作確認やテストで漏れがちな観点3選
starfish719
6
1k
Flutter × Firebase Genkit で加速する生成 AI アプリ開発
coborinai
0
150
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
79
8.8k
Raft: Consensus for Rubyists
vanstee
137
6.8k
The Cost Of JavaScript in 2023
addyosmani
47
7.3k
BBQ
matthewcrist
86
9.5k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.2k
Done Done
chrislema
182
16k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.4k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
175
51k
Measuring & Analyzing Core Web Vitals
bluesmoon
6
240
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
31
2.1k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
99
18k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.7k
Transcript
Getting started with Android Things
Google’s new OS for IoT devices
Internet of Things — network of devices that collect and
exchange data
• Lightning • Locks • Security cameras • Voice assistants
• Self-driving cars • Thermostats • “Smart-everything” IoT applications
IoT at Google: recent history
Brillo and Weave introduced at I/O 2015
Weave — communication language between device and cloud
Brillo — simplified version of Android for IoT devices
None
None
Android Things is the new Brillo
Android Things is the new Brillo ¯\_(ツ)_/¯
Android Things • Available for everyone for free • Android
Studio and Android SDK • Firebase and Google Play Services • Regular updates from Google • Community • The ease and power of Android
If you can build an app, you can build a
device - Google
Project idea “Smart house” solution for simple electronic devices
Raspberry Pi 3 Model B • A 1.2GHz 64-bit quad-core
ARMv8 CPU • 802.11n Wireless LAN • Bluetooth 4.1 • 1GB RAM • 4 USB ports • 40 GPIO pins • Full HDMI port • Ethernet port • Costs ~$50
Before Andorid Things...
... there were no Android, which meant running on a
traditional Linux or Windows based OS PROS • You are in control of everything CONS • With great power comes great responsibility • You do all the hard work • You reinvent a wheel
Android Things to the rescue!
SmartHouse project Two apps For mobile and Android Things devices
SmartHouse mobile • You have list of devices • You
can turn them on or off • You can add new device • Many users can add to the same device and control it • You see when other users toggle your devices
SmartHouse for Android Things • Initialize hardware • Read events
via Firebase Realtime DB • Change the state of hardware • Listen to device state change and post events (not implemented yet)
How to create Android Things project? 1. Open Android Studio
2. Create New Project for phones/tablets 3. Setup Android Things dependencies 4. Done
Hardware side gpio = manager.openGpio(“BCM26”) gpio.setDirection(Gpio.DIRECTION_OUT_INITIALLY_HIGH) gpio.setActiveType(Gpio.ACTIVE_LOW) GPIO initialization Change
GPIO value gpio.value = newValue
Firebase DB design
None
Android Things: bad things • Setup is very inconvenient •
Developer preview has lots of bugs and some features are not available • No sign in support
Demo
None