Android Things are IoT Platform for Android Developer.Use Development tools and ecosystem the same Android App. So you can use Android Studio to develop Android Things.
and without previous knowledge of embedded system design.
Google has partnered with a number of hardware manufacturers to offer solutions based on Intel Edison, NXP Pico and the Raspberry Pi 3.
Android Things ignites development of connected embedded devices by providing the same Android development tools, best-in-class Android framework, and Google APIs making developers successful on mobile.
Understand the Android Things Platform
Android Things has a few key differences compared to the core Android OS, read the Overview to understand key concepts that you'll need to understand.
Raspberry Pi Android Things TensorFlow Machine Learning
Image Classifier Example Code Demo
This example source code are from https://github.com/androidthings . In the details of example code use external GPIO button.but we don't use it. So,we use computer keyboard instead.
This project is based on the TensorFlow Android Camera Demo TF_Classify app. The TensorFlow training was done using Google inception model and the trained data set is used to run inference and generate classification labels via TensorFlow Android Inference APIs.
First Flash Android Things image onto your Raspberry Pi SD card.
Connect Raspberry Pi to your network using the TCP/IP (LAN) Cable and use adb tool.
use this command to connect Raspberry Pi
use this command to check connection and found android thing device.
Now you can run code on Android Studio.
If you have everything work correctly.
Press ENTER button on keyboard.The current image is captured from attached camera.
The captured image is shown on the screen.Also the result is spoken out on speaker.if any.
MQTT (aka MQ Telemetry Transport) is a machine-to-machine or “Internet of Things” connectivity protocol on top of TCP/IP. It allows extremely lightweight publish/subscribe messaging transport.
Broker , Publisher , Subscriber
CloudMQTT are managed Mosquitto servers in the cloud. Mosquitto implements the MQ Telemetry Transport protocol, MQTT, which provides lightweight methods of carrying out messaging using a publish/subscribe message queueing model.
So , you must sign up CloudMQTT
System Diagram
Hardware
Raspberry Pi Board ( we use Raspberry Pi3 board ) + SD card (8GB or more) we use 16 GB
DHT11 Temperature and Humidity Sensor with Resistor 4.7 K Ohm
Last Article we connect raspberry pi with OLED already. ( Raspberry pi OLED )
Now we want to connect some sensor and show on OLED.So we use famous one .It is DHTxx Sensor .it can measure temperature and humidity in one time ( air only ).
Wiring Diagram
Hardware
Raspberry Pi Board ( we use Raspberry Pi3 board )
DHT11 Temperature and Humidity Sensor with Resistor 4.7 K Ohm
Raspberry Pi Smart Home Automation with Home Assistant
In the last article we know about OpenHAB Raspberry Pi Open Source smart home. In this blog we will know about Home Assistant Open Source smart home.
What is Home Assistant?
Home Assistant is Open Source Software for smart home or home automation systems.
Home Assistant is an open-source home automation platform running on Python 3.
Track and control all devices at home and automate control.
Home Assistant can install on many platforms such as Windows, Linux ,Mac OSX and embedded platforms such as Raspberry Pi , BeagleBone Black , UDOO , Cubietruck so you can install in to Raspberry Pi. ( Raspberry pi is popular and low cost then we us Raspberry pi3 board)
Current Version: 0.33.4
Released: November 23, 2016
System Diagram
Hardware
You will need :
Raspberry Pi3 Board
SD card (8GB or more) we use 16 GB
Power supply
Ethernet or WiFi Connection
Software
Raspberry Pi OS
Raspbian Jessie – at the time of writing I have used version Sep 2016 which can be download from here – Raspbian Jessie
RASPBIAN JESSIE WITH PIXEL
Image with PIXEL desktop based on Debian Jessie
Version:September 2016
Release date:2016-09-23
Kernel version:4.4
Raspberry Pi Tools
For Windows User
PuTTY is SSH tools for Remote Command line. Download moreinfo
WinSCP for remote edit and transfer files. Download moreinfo
for Linux or MAC os
use terminal for remote command line. ( without installing additional software )
fugu ssh or Filezilla
How to Install Home Assistant on Raspberry Pi
There’s three options to install Home Assistant on a Raspberry Pi.
Manual installation.
Following this guide doing each step manually. This is highly recommended as a first installation since you get a good overview of the installation.
Hassbian image.
Basic installation with the same settings as following the manual installation guide. Some additional software is preinstalled to make installation quicker and easier. Installation uses homeassistant user.
All-in-One Installer.
Fabric based installation script that installs and compiles many of the things an advanced Home Assistant install is likely to need. Installation uses hass user.
We use All-In-One Installer method to install.
Because there is including support for MQTT with websockets, Z-Wave, and the Open-Zwave Control Panel.
The only requirement is that you have a Raspberry Pi with a fresh installation of Raspbian Jessie connected to your network.