Android Things IR Remote Hacker

Mehmet Burak Akgün
4 min readAug 20, 2019

--

This Android Things project integrates Nearby Communication , Serial Communication and Voice Recognition together to build a connected IR remote that explores the relationships between surfaces and content.

This repo contains all the app code that powers IR Remote Controled Android Things powered Raspberry Pi.

The project is split into three modules:

  • /things - the Android Things app
  • /mobile - the companion mobile app
  • /arduino - the Arduino code

Pre-requisites

  • Android Things compatible board
  • Android Studio 3.2+
  • Arduino and the following individual components:
  • 1 IR Receiver
  • 1 IR Transmitter
  • Jumper wires
  • (optional) 1 MI-305 — USB Microphone

How it works

The IR Remote Hacker imagines that you can control all remote controled electronic devices by voice and also with a Mobile Application. The Companion Mobile application allows you to configure the embedded software. Capture and record the Signal with the mobile app. You can now hack as many remote controls as you want. Controlling IR Remote signals over network is planned for next releases.

Android Things device and its components is set-up and controlled using the companion app for Android. They communicate using Nearby Connections, a protocol developed by Google to facilitate local peer-to-peer communication with nearby devices.

This application is built around the Voice controlled Raspberry Pi that capable of talking with the Arduino (which can process the data of IR Remote sensors) and control over the companion mobile application. Once your Android phone and Android Things are connected, you can take control of all the remote controls around you. In fact, the whole story consists of user interfaces that control the ability to capture and repeat infrared signals.

While accomplishing this creative idea, many features has been developed to show different connection methods and technologies with other IOT devices. Both the Android Things code and the companion app are written in Kotlin using Jetpack components and industrial best practises , which has been a joy to work with.

Technical overview

There are two main components to the IR Remote Hacker software — the ‘Things’ app (/things), which runs on Android Things on a Raspberry Pi, and the Companion app (/mobile) which runs on an Android phone.

The hardware is built as an voice controlled remote device, with an Arduino Uno, a Raspberry Pi, a USB Microphone, an IR Receiver & Transmitter and a few off-the-shelf wires and connectors.

Schematics

  • If you have the Arduino, just plug it onto your Raspberry Pi 3.

Companion Android Application

Mobile application is easy to use with simple steps.

  • Power on Android Things Device with application
  • Install Application to your phone then run
  • Give permission to use Nearby Api
  • Wait for the connection between devices
  • Press Float Action Button (+) to capture a new IR Signal
  • Push any button to send Remote(Radio)-Control signal to Android Things
  • In dialog give a name to recently recorded signal
  • In order to send IR signal select list item

Android Things Application

Embedded App is simple as mentioned before. For optional part of speech recognation you can follow below article. Also you could make your own models.

Okey Things

Thanks Nilhcem for showing us how to add speech recognition to Android Things devices.
Solution #3: The “Open Source” way used in this project. For more information click link

Next steps

  • Remote Control : Over Network communication

Source Code available in link

Check out Hackster.io link for detailed components

Contact me

--

--

Mehmet Burak Akgün
Mehmet Burak Akgün

Written by Mehmet Burak Akgün

Senior Android Developer at Trendyol International @Berlin

No responses yet