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
1
86
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
2
83
Застосування ML в реальних проектах - Андрій Дерень
gdgternopil
2
110
Android Architecture Components by Ihor Dzikovskyy
gdgternopil
0
160
First look at Room Persistence by Oleksiy Sazhko
gdgternopil
0
110
Mobile Applications Architecture by Constantine Mars
gdgternopil
1
87
Tuning your SQLite with SQLDelight & SQLBrite - Mkhytar Mkhoian
gdgternopil
0
270
Speeding up development with AutoValue - Andrii Rakhimov
gdgternopil
1
88
The Mistery of Gradle Plugins - Dmytro Zaitsev
gdgternopil
1
76
Xamarin Build native Android & iOS apps with C# - Vitalii Smal
gdgternopil
1
110
Other Decks in Programming
See All in Programming
iOSでSVG画像を扱う
kishikawakatsumi
0
160
スマホから Youtube Shortsを見られないようにする
lemolatoon
27
34k
CSC509 Lecture 06
javiergs
PRO
0
270
マンガアプリViewerの大画面対応を考える
kk__777
0
150
ソフトウェア設計の実践的な考え方
masuda220
PRO
4
640
Catch Up: Go Style Guide Update
andpad
0
250
NixOS + Kubernetesで構築する自宅サーバーのすべて
ichi_h3
0
1.2k
タスクの特性や不確実性に応じた最適な作業スタイルの選択(ペアプロ・モブプロ・ソロプロ)と実践 / Optimal Work Style Selection: Pair, Mob, or Solo Programming.
honyanya
3
190
Foundation Modelsを実装日本語学習アプリを作ってみた!
hypebeans
1
120
kiroとCodexで最高のSpec駆動開発を!!数時間で web3ネイティブなミニゲームを作ってみたよ!
mashharuki
0
890
理論と実務のギャップを超える
eycjur
0
180
Server Side Kotlin Meetup vol.16: 内部動作を理解して ハイパフォーマンスなサーバサイド Kotlin アプリケーションを書こう
ternbusty
3
240
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
How to Think Like a Performance Engineer
csswizardry
27
2.1k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Music & Morning Musume
bryan
46
6.9k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
34
2.3k
What's in a price? How to price your products and services
michaelherold
246
12k
Six Lessons from altMBA
skipperchong
29
4k
A designer walks into a library…
pauljervisheath
209
24k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
127
54k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.7k
How GitHub (no longer) Works
holman
315
140k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
22k
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