SlideShare a Scribd company logo
Rebecca Franks
riggaroo.co.za
@riggaroo
The	IoT	platform	for	everyone
Hello
Rebecca Franks
Android Engineering Lead at
Dynamic Visual Technologies
Google Developer Expert for Android
riggaroo.co.za
@riggaroo
Expectation vs Reality
Android Things - The IoT platform for everyone.
Android Things - The IoT platform for everyone.
What is Android Things?
Android Things is an extension of the Android
platform for IoT and embedded devices.
Cameras
Gateways
HVAC Control
Smart Meters
Point of Sale
Inventory Control
Interactive Ads
Vending Machines
Security Systems
Smart Doorbells
Routers
Energy Monitors
Asset Tracking
Fleet Management
Driver Assist
Predictive Service
Ideal for powerful, intelligent devices that need to
be secure.
How is Android Things different?
Android
Studio
Android SDKs
& Developer
Tools
Firebase
Libraries
Google Cloud
Platform SDKs
Any other
compatible
Android/Java
libraries...
IoT Developer
Console
Automatic
Security Updates
Signed Images Verified Boot
Easy and Secure Deployment
SoM
Architecture
Google Managed
BSP
Scaling to Production
Android Things for Developers
Android Things - The IoT platform for everyone.
Android Things - The IoT platform for everyone.
Displays are Optional
Consider Alternate UI
Cons
● Only Dev Preview
● Weave not yet available for Android Things
● Very new - Not many examples online - mostly Python
● Some APIs not supported - ie hardwareAcceleration
● Closed Source
Electronics Basics
Components
Breadboard - Construction base for
prototyping electronics
Jumper Wire - Used to interconnect the
components of a breadboard
LEDs - Emits visible light when an
electric current passes through it
Push Switches - Allows electricity
to flow between its two contacts
Components
Resistor -Used to reduce current flow
Source: http://www.electronicshub.or g/resistor-color-code/
Components
and many more...
Ohm’s Law
The current through a conductor
between two points is directly
proportional to the voltage across
the two points.
V = I * R
V is Voltage (volts)
I is Current (amps)
R is Resistance (ohms)
I = 0.023A
V = 5V
R = 5V / 0.023A
R = ± 217 ohms
Building an Android Things app
Pinout Diagram
Fritzing Diagrams
Integrating with Hardware
GPIO
PWM
I2C
SPI
UART
Input
Sensors
GPS
Peripheral
Driver
Library
Peripheral I/O
User Drivers
Let’s try live coding..
In case of emergency
● A Raspberry Pi 3 or alternative - Running Android Things
● Create standard project in Android Studio
● Add to app level build.gradle:
provided 'com.google.android.things:androidthings:...'
Getting Started
<application ...>
<uses-library android:name="com.google.android.things"/>
<activity ...>
...
<!-- Launch activity automatically on boot -->
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.IOT_LAUNCHER"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
</application>
AndroidManifest.xml
Button button = new Button("BCM6",Button.LogicState.PRESSED_WHEN_LOW);
button.setOnButtonEventListener(new Button.OnButtonEventListener() {
@Override
public void onButtonEvent(final Button button,final boolean pressed) {
//...
Log.i(TAG, "Button value changed:" + pressed);
ledGpio.setValue(pressed);
}
});
Button Press
compile 'com.google.android.things.contrib:driver-button:0.2'
//get access to the pin
PeripheralManagerService service = new PeripheralManagerService();
ledGpio = service.openGpio("BCM6");
ledGpio.setDirection(Gpio.DIRECTION_OUT_INITIALLY_LOW);
ledGpio.setValue(true);
//remember to close the peripheral
ledGpio.close();
Turn on an LED
Turn it on or off using Firebase Realtime DB
FirebaseDatabase.getInstance().getReference("ledKitchen")
.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(final DataSnapshot dataSnapshot) {
Boolean value = (Boolean) dataSnapshot.getValue();
ledGpio.setValue(value);
//.. handle exceptions
}
//..
});
Demo
Other Examples
https://github.com/riggaroo/android-things-distributed-piano
Distributed Piano
https://github.com/riggaroo/android-things-electricity-monitor
Firebase Realtime
Database
Electricity Monitor
final DatabaseReference onlineRef = firebaseDatabase.child(".info/connected");
final DatabaseReference isPowerOnRef = firebaseDatabase.child("/online");
onlineRef.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(final DataSnapshot dataSnapshot) {
if (dataSnapshot.getValue(Boolean.class)) {
isPowerOnRef.setValue(true);
isPowerOnRef.onDisconnect().setValue(false);
}
}
//..
});
Electricity Monitor - Firebase
https://github.com/androidthings/sample-tensorflow-imageclassifier
Image Classifier
Android Things - The IoT platform for everyone.
Android Things - The IoT platform for everyone.
Android Things - The IoT platform for everyone.
Android Things - The IoT platform for everyone.
Android Things - The IoT platform for everyone.
Image Classifier
Rebecca Franks
riggaroo.co.za
@riggaroo
Google's IoT Developers Community
https://g.co/iotdev
Google's IoT Solutions
https://iot.google.com
Android Things SDK
https://developer.android.com/things
Rebecca Franks
riggaroo.co.za
@riggaroo
www.devconf.co.za/rate
● https://www.myelectronicslab.com/tutorial/raspberry-pi-3-gpio-model-b-
block-pinout/
● https://developers.google.com/weave/
● https://techcrunch.com/2015/10/24/why-iot-security-is-so-critical/
● https://github.com/androidthings/sample-simplepio/
● https://developer.android.com/things/index.html
● https://github.com/riggaroo/android-things-electricity-monitor
● https://github.com/riggaroo/android-things-distributed-piano
● https://github.com/riggaroo/android-things-button-examples
Links & References

More Related Content

PPTX
Zero to one with Android Things - Hieu Hua
PPTX
Build your first android things application
PDF
Android things introduction - Development for IoT
PDF
Android Things
PDF
Android Things Latest News / Aug 25, 2017
PPTX
Android Things - The IoT platform from Google
PPTX
Android Things, Alexey Rybakov, Technical Evangelist, DataArt
PDF
Android Things Linux Day 2017
Zero to one with Android Things - Hieu Hua
Build your first android things application
Android things introduction - Development for IoT
Android Things
Android Things Latest News / Aug 25, 2017
Android Things - The IoT platform from Google
Android Things, Alexey Rybakov, Technical Evangelist, DataArt
Android Things Linux Day 2017

What's hot (20)

PPTX
Decrease build time and application size
PDF
Android Things, from mobile apps to physical world by Giovanni Di Gialluca an...
PDF
Android Things, from mobile apps to physical world
PDF
Myths of Angular 2: What Angular Really Is
PDF
Windows 10 IoT Core, a real sample
PDF
Hack the Real World with ANDROID THINGS
PDF
Android Things Robocar with TensorFlow for object recognition
PDF
Intel ndk - a few Benchmarks
PDF
Android Things: Android for IoT
PDF
Project Ara
PDF
Hacking with the Raspberry Pi and Windows 10 IoT Core
PDF
Embedded Android Workshop with Oreo
PDF
Embedded Android Workshop with Nougat
PDF
Go Green - Save Power
PDF
Project Ara
PDF
Brillo / Weave Internals
PDF
Embedded Android Workshop with Lollipop
PDF
Embedded Android Workshop with Marshmallow
PPTX
Android Open Accessory APIs
PDF
Is Android the New Embedded Linux? at AnDevCon VI
Decrease build time and application size
Android Things, from mobile apps to physical world by Giovanni Di Gialluca an...
Android Things, from mobile apps to physical world
Myths of Angular 2: What Angular Really Is
Windows 10 IoT Core, a real sample
Hack the Real World with ANDROID THINGS
Android Things Robocar with TensorFlow for object recognition
Intel ndk - a few Benchmarks
Android Things: Android for IoT
Project Ara
Hacking with the Raspberry Pi and Windows 10 IoT Core
Embedded Android Workshop with Oreo
Embedded Android Workshop with Nougat
Go Green - Save Power
Project Ara
Brillo / Weave Internals
Embedded Android Workshop with Lollipop
Embedded Android Workshop with Marshmallow
Android Open Accessory APIs
Is Android the New Embedded Linux? at AnDevCon VI
Ad

Similar to Android Things - The IoT platform for everyone. (20)

PDF
Android Things, from mobile apps to physical world - Stefano Sanna - Giovanni...
PDF
Connecting your phone and home with firebase and android things - James Cogga...
PDF
Android Things in action
PPTX
KSS Session and Tech Talk-2019 on IOT.pptx
PPTX
Android Things: Quickly Developing for the Internet of Things
PDF
Home Automation with Android Things and the Google Assistant
PDF
IoT support for .NET Core
PDF
IoT support for .NET Core - IoT Saturday 2020
PDF
Android Things : Building Embedded Devices
PPT
Android Things Getting Started
PPTX
Android Things - Solid Foundations
PDF
Android Things Introduction
PDF
Android things intro
PPTX
Engineering Presentation for final years
PDF
MPU-6050_RF24L01
PDF
IoT support for .NET (Core/5/6)
PPTX
IoT Labs
PDF
Better With Friends: Android+NFC+Arduino
PPTX
IoT from java perspective
PDF
Embedded system lab work
Android Things, from mobile apps to physical world - Stefano Sanna - Giovanni...
Connecting your phone and home with firebase and android things - James Cogga...
Android Things in action
KSS Session and Tech Talk-2019 on IOT.pptx
Android Things: Quickly Developing for the Internet of Things
Home Automation with Android Things and the Google Assistant
IoT support for .NET Core
IoT support for .NET Core - IoT Saturday 2020
Android Things : Building Embedded Devices
Android Things Getting Started
Android Things - Solid Foundations
Android Things Introduction
Android things intro
Engineering Presentation for final years
MPU-6050_RF24L01
IoT support for .NET (Core/5/6)
IoT Labs
Better With Friends: Android+NFC+Arduino
IoT from java perspective
Embedded system lab work
Ad

Recently uploaded (20)

PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
Introduction to Artificial Intelligence
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Digital Strategies for Manufacturing Companies
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
ai tools demonstartion for schools and inter college
PDF
Softaken Excel to vCard Converter Software.pdf
How Creative Agencies Leverage Project Management Software.pdf
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Introduction to Artificial Intelligence
Design an Analysis of Algorithms II-SECS-1021-03
2025 Textile ERP Trends: SAP, Odoo & Oracle
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Operating system designcfffgfgggggggvggggggggg
How to Choose the Right IT Partner for Your Business in Malaysia
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Upgrade and Innovation Strategies for SAP ERP Customers
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Wondershare Filmora 15 Crack With Activation Key [2025
Navsoft: AI-Powered Business Solutions & Custom Software Development
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Odoo POS Development Services by CandidRoot Solutions
Digital Strategies for Manufacturing Companies
Which alternative to Crystal Reports is best for small or large businesses.pdf
ai tools demonstartion for schools and inter college
Softaken Excel to vCard Converter Software.pdf

Android Things - The IoT platform for everyone.