-
·
[TUT] How to use another power supply with your IoT device
When creating IoT systems, you’ll often want to use devices that run off another voltage of power supply than the normal 3.3v or 5v that your Raspberry Pi or other development board can give out. In this instance you need to use a relay. This post will walk through the use relay circuit boards and…
-
·
[TUT] Android Things – Using the ADS1015 analog to digital converter driver library
This post is going to explain how to use the ADS1015 Analog to Digital converter with Android Things. The board can convert analog sensor signals to digital input for the android things board, as well as acting as a programmable gain amplifier up to 16x. It has 12-bit precision at 3300 samples/second over I2C. What…
-
·
[TUT] Android Things – APA102 7 LED Array, SPI on the Rainbow Hat
This blog post will explain how you can use the SPI protocol to shine an LED rainbow from your AndroidThings application. We’ll discuss the Raspberry Pi Rainbow hat and its actuators, in this case the seven rgb pixels which we’ll use to make a lovely kids style rainbow colored pattern. Hardware Prerequisite: We have the…
-
·
[TUT] Android Things – Alphanumeric Segment Display, I2C on the Rainbow Hat
This post will explain how you can use the I2C protocol to output from your AndroidThings application. We’ll discuss the Raspberry Pi Rainbow hat and its actuators, in this case the 4-digit Alphanumeric Character Display which we’ll use to count down from 1000. Hardware Prerequisite: We have the Rainbow Hat connected to the top of…
-
·
[TUT] Android Things – Temperature Sensor, I2C on the Rainbow Hat
This post will explain how to use the I2C protocol to get input into your Android Things application. We’ll discuss the Raspberry Pi Rainbow Hat temperature sensor which we’ll use to measure air temperature surrounding your pi. Hardware Prerequisite: We have the Rainbow Hat connected to the top of our raspberry pi. Software Prerequisite: An…
-
·
[TUT] Google Cloud IoT Core – MQTT on Android
I just started playing with Google Cloud IoT Core with AndroidThings, and the communication is done via MQTT. However I couldn’t find a decent, simple example of how to do it. Not for long! This blog explains how to setup communication between an Android app and Cloud IoT Core. You will need your credentials so…
-
·
[TUT] Android Things – Capacitive Touch Buttons, GPIO on the Rainbow Hat
This blog will show you how to use the capacitive touch buttons of the Rainbow hat peripheral. In learning about the capacitive buttons we will use the GPIO protocol which can come in handy for numerous other sensors and peripherals. Hardware Prerequisite: We have the Rainbow Hat connected to the top of our raspberry pi.…
-
·
[TUT] Android Things – LEDs, GPIO on the Rainbow Hat
This blog will show you how to use the LEDs of the Rainbow hat peripheral. In learning about how to make the LEDs blink, we will use the GPIO protocol which can come in handy for numerous other sensors and peripherals. Hardware Prerequisite: We have the Rainbow Hat connected to the top of our raspberry…
-
·
[TUT] Your First Android Things Application
This blog is going to show you how to write your first Android Things application. We’ll discuss the hardware details you need to know to get started and then dive into the code of the android app. Prerequisite, I assume you have a Raspberry Pi (or other AndroidThings compatible board) and you have flashed it…
-
·
Android Architecture Components meets AndroidThings
Android Architecture Components are a new set of opinionated guidelines written up by Google on how to structure your code when writing an Android application. From the official documentation: The most important thing you should focus on is the separation of concerns in your app. It is a common mistake to write all your code…
-
·
Threading best practices : 3 ways on Android Things
Working with Android Things means connecting to peripheral sensors & actuators to communicate sending or receiving commands and data. As with all Android development, you should be evaluating the impact of this and consider offloading the effort onto another thread wherever possible. So what is best practice for threading on Android Things? Like with all…
-
·
[TUT] Android Things – Writing a PIR Motion Sensor Driver
This blog will show you how to write an Android Things driver for the HC-SR501 PIR Sensor Module. This module can detect movement and uses a GPIO pin on your Android Things board for communication. What are we going to do: – Understand how HC-SR501 PIR Sensor Module works – Write a MotionSensor interface for…
-
·
The Making of an Android Auto Demo Unit
Android Auto is a protocol developed by Google to allow mobile devices to be controlled by a car head unit. This means you can use Google Maps navigation, play music, get notifications of important happenings, all from your car dashboard. The official page has more [android.com/auto](https://www.android.com/auto/). Here we are going to show you how we…
-
·
Five reasons why Android developers should start developing for the internet of things
The “internet of things” (IoT) is simple: everyday objects that have internet connectivity and sensors that can gather, transmit and receive information. But why does this ubiquitous functionality affect you as an Android developer?  Just as smartphones are being built with more and more sensors – for everything like movement, sound, temperature and touch…