Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
First step with Android Things
Search
Wesley Lima
September 07, 2017
Technology
38
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
First step with Android Things
Wesley Lima
September 07, 2017
More Decks by Wesley Lima
See All by Wesley Lima
Conectando Android Things com Mqtt
fioalpha
0
110
Other Decks in Technology
See All in Technology
Metadata - Section 1: HTML Basics
mohab1
0
120
その Valkey 使いこなしていますか?
onk
PRO
5
1.5k
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
1
150
子育てエンジニアの可処分時間が減っても成長を諦めない戦い方
sudoakiy
6
4.6k
Browser Spec: Testing Hotwire with Ruby
takahashim
1
120
SAENM ~Jupyterで残すPoCの試行錯誤、未来の自分と仲間を助ける記録!~
terapyon
0
110
Refining Active Record
shugo
0
150
脆弱性診断って、何をしているの? 〜弱点を見つけて、会社の改善につなげるまで〜
keeg
0
920
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
570
NDIでApple Vision Proにリアルタイム映像送信
jyouryuusui
0
120
Running Kotlin + Quarkus with Lambda
nealle
1
3.7k
会社説明資料
persolserverworks
0
9.8k
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.3k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
430
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
600
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
How STYLIGHT went responsive
nonsquared
100
6.3k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
The Limits of Empathy - UXLibs8
cassininazir
2
720
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
630
Between Models and Reality
mayunak
4
500
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
300
GraphQLとの向き合い方2022年版
quramy
50
15k
Transcript
Primeiros passos com Android Things Wesley Silva Accera
Desenvolvendo automação das “coisas"
None
Android Things Framework
O que muda? • Display Optional • Status bar e
Navigation Button — Removido • Permissões • Notificações
• CalendarContract • ContactsContract • DocumentContract • DownloadManager • MediaStore
• Settings • Telephony • UserDictionary • VoicemailContract O que muda?
• Awareness • Cast • Google Analytics Firebase • FCM
• Firebase Crash Reporting • Firebase Realtime Database • Firebase Remote Config • Firebase Storage • Fit • Instance ID • Location • Maps • Nearby • Places • Mobile Vision Google Service Com suporte
• AdMod • Android Play • Drive • Firebase App
Indexing • Firebase Authentication • Firebase Dynamic Link • Firebase Invites • Firebase Notification • Play Games • Sign-in Google Service Sem suporte
Console • Novo modo de instalação • Atualização - OTA
(over-the-air)
Comunicação com mundo externo • GPIO — I/O de propósito
geral • PWM — Modulação por largura de pulso • Comunicação serial • I2C • SPI • UART
GPIO • +5V/3.3V • Botão • LED
Comunicação com mundo externo • GPIO — I/O de propósito
geral • PWM — Modulação por largura de pulso • Comunicação serial • I2C • SPI • UART
PWM • +5V/3.3V • Motor • Intensidade
Comunicação com mundo externo • GPIO — I/O de propósito
geral • PWM — Modulação por largura de pulso • Comunicação serial • I2C • SPI • UART
I2C • Sensores • Display • 3 fios apenas •
Half duplex • Sincrona
Comunicação com mundo externo • GPIO — I/O de propósito
geral • PWM — Modulação por largura de pulso • Comunicação serial • I2C • SPI • UART
SPI • Sensores • Display • 4 fios e mais
• Full duplex • Sincrona • Velocidade
Comunicação com mundo externo • GPIO — I/O de propósito
geral • PWM — Modulação por largura de pulso • Comunicação serial • I2C • SPI • UART
UART • Sensores • Display • GPS • 3 fios
• Full duplex • Asincrona Things TX RX GND Periférico TX RX GND
Comparação Protocolo Tipo de transferência Fios Periférico Velocidade transferência I2C
Síncrona 3 Acima de 127 Baixa SPI Síncrona 4 Sem limite Alta UART Assíncrona 2/4 1 Media
Gerenciador • PeripheralManagerService private fun initPwmIO() { gpioPwm = gpioManager.openPwm(PWM_0)
} override fun setData(lamp: Lamp) { gpioPwm.apply { setEnabled(lamp.on) setPwmFrequencyHz(lamp.frequency.toDouble()) setPwmDutyCycle(lamp.duty.toDouble()) } }
User-space Drivers
None
Configurações <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.fioalpha.androidthingmobile"> <application> <uses-library android:name="com.google.android.things"
/> <activity android:name="MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> <intent-filter> <action android:name="android.intent.action.MAIN" /> <categoryandroid:name="android.intent.category.IOT_LAUNCHER" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> </application> </manifest> Manifesto.xml
Configurações • Gradle do Android Things implementation fileTree(include: ['*.jar'], dir:
'libs') implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' compileOnly 'com.google.android.things:androidthings:+'
Demo! Wear Android Things Firebase Database Realtime Luminaria
Contatos github.com/fioalpha/lamp-controller linkedin.com/in/wesley-lima-b8b08521