The image below is a link. Try to click on it.

Rapid Infrared Remote Control App development with Irdroid

In this blog post I will share my experience on how to rapidly develop custom infrared remote controls for Android using the Irdroid Hardware modules, and in particular the Irdroid WiFi to Infrared adapter module and the Irdroid USB Infrared Transceiver module.

You will learn how to:

  • Rapidly develop Infrared remote control Apps for Android
  • Design custom remote control screens / templates.

The winter is coming and i have decided to purchase additional heater unit for our living room.After i made a short investigation on the Internet I found that there are plenty of home heating units, with ability to be controlled  via small infrared remote controls like this one. In my particular case the heating unit is Tesy (Bulgarian brand) MC 2014. The unit comes with a small infrared remote control, that allows the user to set the heater temperature, to turn on/off the unit, to set a on/off timer as well as to set the unit to work @ 1000W or 2000W.

Immediatly after i purchased I have decided to make a simple App for Android, showing the same small remote control interface on the Android Smartphone screen, and to allow the user to control the unit via the APP over WIFI, using the Irdroid WiFi to infrared adapter module.

So far so good , but how to transmit the same codes that the remote transmits to the Tesy MC 2014 unit ?

Well, the Irdroid WiFi to Infrared adapter consist of two modules – the main wifi unit and the USB Infrared Transceiver unit. The Irdroid USB Infrared Transceiver unit can be used to transmit and receive infrared signals. So I used the Irdroid USB Infrared transceiver to scan the remote codes, using Winlirc / LIRC . In my particular case I have used Winlirc and the built in irrecord command line tool to record the infrared remote control codes and to generate a file with that codes.

To be able to scan infrared remote codes under Windows you need to  install the Irdroid USB IR transceiver ACM driver for Windows by downloading it from here https://irdroid.com/downloads/?category=5 , you will also need to download and configure WinLirc (Which is described here : https://irdroid.com/downloads/?did=17)

After I have scanned the Infrared remote control buttons of Tesy MC 2014, I ended up with the following file:

 # Please make this file available to others
 # by sending it to <lirc@bartelmus.de>
 #
 # this config file was automatically generated
 # using lirc-0.9.0(IRdroid USB IR Transceiver) 
 #
 # contributed by
 #
 # brand:                       Tesy MC2014
 # model no. of remote control:
 # devices being controlled by this remote:
 #
 begin remote
 name  Tesy
 bits           16
 flags SPACE_ENC
 eps            30
 aeps          100
 header       8969  4395
 one           599  1607
 zero          599   489
 ptrail        604
 repeat       8981  2156
 pre_data_bits   16
 pre_data       0xFF
 gap          39670
 repeat_gap   95433
 toggle_bit_mask 0x0
 begin codes
 power                    0x50AF
 plus                     0x20DF
 minus                    0xE01F
 timer                    0xF807
 temp                     0x08F7
 end codes
 end remote

The above file is used by LIRC to regenerate the Infrared Signals transmitted by the TESY MC 2014 remote. This file is to be downloaded to the Irdroid WiFi to infrared adapter. The procedure for adding new lirc conf files to the Irdroid / LIRC database include sending an email with the file to info@irdroid.com and adding the file in the Irdroid WIFI database. After that I have added the Tesy lirc conf file to the Irdroid WiFi to infrared adapter by visiting the link https://irdroid.com/db/database/index.php?dir=Tesy%2F and clicking on the file Tesy.conf (make sure that you are connected to the Irdroid WiFI to infrared adapter and the adapter itself is connected via ethernet cable to your home router)

So finally the Tesy.conf file is in the Irdroid WiFi to infrared adapter unit and I can now connect to the adapter using the Amote app for android and control the Tesy MC 2014 from the Amote App.

That is OK but i want to have the same UI design as the original remote, so what to do ?

I have decided to take a picture of the remote, I have used GIMP to edit that picture in order to use it directly as a base for my Tesy remote UI. So now I have the same picture of the Tesy MC 2014 remote , but how to make the buttons on the picure clickable / tapable. I decided to use a second picture loaded the same way as the main ui picture but not visible defining color regions at the places where the buttons are on the original Tesy Remote picture. The user sees the remote control picture and after he tap on the relevant button it is recognized by color from the reference picture and a particular action is assigned for every button.

Once started the application main activity uses the JAVA LIRC client library to connect to the Irdroid WiFi to infrared adapter and to establish a connection with the listening LIRC server Establishing a socket connection the the Irdroid WiFi to infrared adapter is very easy. You need to add the following in your onCreate() method:

client = new LircClient(“192.168.2.1”,8765, true, 3000);

After a connection is estavlished you may start sending commands to the listening LIRC server by issuing:

client.sendIr1Command(“Remote_NAME”,    “Remote_Command”, 1);

For the five buttons that we have on the Tesy MC 2014 we assign the following lirc commands as per the LIRC conf file that we previously made:

client.sendIr1Command(“Tesy”,    “timer”, 1);    // Set unit timer
client.sendIr1Command(“Tesy”,    “temp”, 1);     // Set unit Temperature
client.sendIr1Command(“Tesy”,   “power”, 1);    // Power On / Off
client.sendIr1Command(“Tesy”,    “minus”, 1);    // minus
client.sendIr1Command(“Tesy”,    “plus”, 1);     // plus

Every command has an assigned color from the mask image loaded in parallel with the main UI image, once the user tap in that color region the relevant command is fired up to the
Irdroid WiFi to infrared adapter and the relevant Infared code is transmitted.

So, voila we have a custom remote control, developed in 2 hours and a nice heater for the cold winter nights 🙂

Video

Downloads:

Tesy.conf – LIRC remote control conf file
Tesy App – APK file (Signed)
Tesy App  – Source Code

You dont have a Irdroid WiFi to Infrared adapter?

Purchase one from the links below.

[print_thumbnail_slider]

The image below is a link. Try to click on it.

Irdroid WiFi to Infrared adapter firmware source

We have published the firmware source code of the Irdroid WiFi to infrared adapter. The unit is based on RT5350F MIPS SoC and it runs OpenWRT and Linux Kernel 3.10 . Feel free to modify the code:

The image below is a link. Try to click on it.

Windows 8 Drivers workaround for Irdroid USB Transceiver

Windows 8 requires that all drivers need to be signed, The USB Infrared Transceiver can work with Windows 8 but the workaround is that you need to turn off the signed driver requirement.

You can deactivate the forcing of signed drivers by using following Settings.

Open a Command Prompt (cmd) as Administrator and type in following two commands.

bcdedit -set loadoptions DISABLE_INTEGRITY_CHECKS
bcdedit -set TESTSIGNING ON

With bcdedit you´re configurating the bootmenu of windows, so be careful. If something goes wrong you´ll need a windows dvd to repair the bootmanager.

After a restart you can install the driver normally. You just have to confirm to install the unsigned driver, just like in older versions of Windows.

The image below is a link. Try to click on it.

Irdroid WiRF433 – IoT Development Computer

Irdroid WiRF433 is open source software and open source hardware, low cost starting from USD 38 Linux Industrial grade single board computer with GPIOs capable to operate -25 – +85C

The Irdroid WiRF433 SBC is designed with the Ralink RT5350 SoC, 32Mbytes of RAM and 4 Mbytes of Flash. The Irdroid WiRF433 board is designed with 2 ethernet ports, therefore the board can be used for routing.

All the GPIOs of the RT5350 Soc are available on the WiRF433 board pin headers. The Irdroid WiRF433 comes also with a RF433MHZ RF module which allows for controlling IoT Remote control switches, light bulbs and sockets operating at 433.9Mhz.

Irdroid WiRF433 is completely open source – including hardware and software, this means you have access to all CAD files and sources and you can reuse them for your own personal or commercial project. There are NO restrictions to manufacture and sell these board for your own use or resale.

Main Features:

  • Mips Architecture CPU @360Mhz
  • 32 Mbytes of SDRAM
  • 4 Mbyets of FLASH memory
  • 1 USB 2.0 HOST Port
  • 1-SPI, 1-I2C , and on I2S (AUDIO)
  • WiFi 802.11b/g/n interface
  • 2 Ethernet interfaces 1WAN and 1LAN
  • RF433 RF Remote control interface with onboard Antenna

The Irdroid WiRF433 SBC comes with preinstalled uboot bootloader and OpenWRT Linux distribution, which includes also IoT remote control applications and software like RCSwitch for controlling RC 433.9Mhz remote control switches and a Mobile HTML5 web application , configured for work with the RC switches, which gives the possibility to add unlimited number of RCSwitches

APPLICATIONS:

  • Home Automation Development Computer. The Open Source apps like LIRC,RCSwitch and serial web proxy will allow you to rapidly and easyly build Home Automation Systems
  • IoT Development Computer. With its available interfaces, you can turn Irdroid WiRF433 into a IoT main unit, and you will be able to control RC Switches, RC Lights and RC Sockets
  • Internet Router with IoT capabilities – The OpenWRT open source Linux distributions will allow you to easyly create one
  • Inexpensive PLC with the open source protocols, available on the Internet.

WEB RESOURCES:

HARDWARE

The Hardware project is released under the Creative Commons Attribution-Share Alike 3.0 United States License. You may reproduce it for both your own personal use, and for commertial use. You will have to provide a link to the original creator of the project https://irdroid.com on any documentation or website. You may also modify the files, but you must then release them as well under the same terms.Credit can be attributed through a link to the creator website: https://irdroid.com

SOFTWARE

The Irdroid WiRF433 Development board comes with preinstalled uboot bootloader and the OpenWRT Linux distribution. The board also comes with the following preinstalled applications:

  • RCSwitch for controlling RF433Mhz remote control sockets, lights and switches
  • Web Based HTML5 Interface for RCSwitch

The software is released under GPL.

The image below is a link. Try to click on it.

15% OFF for March on Irdroid USB & WiFi

Irdroid USB Infrared Transceiver

Irdroid USB Infrared Transceiver

We offer our Irdroid USB Infrared Transceiver module for just $32 or the Irdroid WiFi to Infrared module for $55 . The Discount is valid for March 2015 only!  Grab your’s from the links below:

The image below is a link. Try to click on it.

New version of the Irdroid USB App

The USB Infrared Transceiver for Android

The USB Infrared Transceiver for Android

 

Our Friend Martin Todorov has proposed a new beta version of the USB Infrared Transceiver App for Android , that can visualize the received Infrared signals. Martin has contacted us to contribute to the Irdroid USB Project. The new version of the IrdroidUSB Application can be downloaded from the links below:

Downloads:

You dont have a USB Infrared Transceiver?
Purchase one from the links below.

[print_thumbnail_slider]

 

The image below is a link. Try to click on it.

USB infrared transceiver App for Android™

Irdroid USB is another port of LIRC for Android. The difference here is that it supports the USB Infrared Transceiver. The Irdroid USB Infrared Transceiver can be directly connected to the target Android Smartphone / Tablet  via an micro USB OTG cable. The application is again open source and it is perfect for Android Developers.

Irdroid USB App Features:

  • Compatible with Android 4.0 +
  • Supports Irdroid USB Infrared Transceiver
  • Supports Irdroid USB Infrared Transmitter
  • Custom Log for monitoring the communication with the module
  • Automatically generate buttons from LIRC conf file.
  • Show / Hide the custom event LOG
  • Open Source Application

Downloads:

You dont have a USB Infrared Transceiver?
Purchase one from the links below.

[print_thumbnail_slider]

 

 

The image below is a link. Try to click on it.

Controlling air conditioner with Irdroid

Controlling Amcor sf10000e with Irdroid

Controlling Amcor sf10000e with Irdroid

Many people has asked me weather it is possible to control Air Conditioners via
Irdroid / LIRC . The Answer is yes, it is and there are people out there who are
already controlling AC’s with Irdroid. Our Friend Ben Mitchell controls his
mobile air conditioner Amcor sf10000e with the Irdroid WIFI to infrared adapter and the Amote app for Android.

The Current Irdroid / Lirc Database contains many , but not all the remotes on
the market so Ben, has used the USB Infrared Transceiver to record the sf10000e
remote control keys, then he has uploaded the created file to his Irdroid wifi
unit. Now he is able to control not only his TV’s and STB’s but also his Air Con
ditioner unit. He was so kind to provide us with the scanned remote codes , now
the codes for this AC unit is included in Irdroid database. We will also send the file to
the admins of the LIRC/Winlirc projects so that other people can also benefit.

Downloads:

Here is what Ben says about Irdroid / Irdroid Wifi to infrared adapter:

Great stuff, thanks hopefully it will help someone else out. Will let u know how I get on with wireless configuration

The image below is a link. Try to click on it.

Voice Remote Control for Android

Thomas Jetzinger, a student at University of Applied Science in Hagenberg, Austria has Developed an application for Android which is Voice Remote Control for TVs,radios, STBs etc. The Application will allow physically disabled people to easily control their home TVs , STBs and other IR controlled home appliances with simple voice commands.

Thomas has used Irdroid WIFI version 3.0 module as a wifi to Infrared interface which allows his application to “talk” infrared via wifi.

Currently Thomas is a participant in a contest called “Clash of the apps”. If you Like Thomas idea and if you want to support him , please vote for “Voice Remote Control” by clicking on the link below (you can login with Google+ or Facebook):

http://crowdranking.com/crowdrankings/t9587g0–clash-of-the-apps-voting-2014

 

The image below is a link. Try to click on it.

Irdroid NFC Remote

The Irdroid NFC Remote app is a infrared remote control client (LIRC Client) for Android, that will allow you to control your home

Irdroid NFC Remote

Irdroid NFC Remote

infrared equipment TV’s STB’s etc, create infrared macro sequences or group infrared commands, which can be written to any standard NFC Tag. Then you can start your predefined infrared macro by simply tapping the NFC Tag to your device.The application is perfect for automating infrared remote control tasks such as turning on the lights via infrared, executing a sequence of IR commands in a click of a button, or by tapping your NFC Tag to your device. With this app you can automate your TV, STB, DVB Audio and many other infrared controlled equipment. The application requires a fully setup and operational LIRC daemon (for Linux) or Winlirc (for Windows). The application is specially designed to work with the Irdroid WIFI infrared remote control modules. If you want to access the full benefits that the app provides, you may consider purchasing a Irdroid WIFI module from https://irdroid.com

App features:

– Create Infrared Remote control macro sequences
– Write your custom IR macros to NFC tags
– Start your custom IR macros by tapping a NFC tag
– Unlimited number of Macros / NFC Tags
– Standard support for LIRC and Winlirc
– A database with more than 2000 supported remotes (via LIRC)
– Add macro shortcuts to home screen for ease of access
– Infrared Home Automation via infrared macro sequences
– Infrared Home Automation via infrared macro sequences and NFC
– Execute a macro directly from the list of macros by tapping on the macro
– Execute a macro via tapping on its home screen shortcut
– Execute a macro by tapping a NFC tag to your device.
– Configure custom timeout (ms) between each command

Sample usage:

– Adjust the picture settings automatically on your TV via infrared macro sequence
– Set the sleep timeout of your TV
– Turn on all your TV’s and set the STB to your favourite channel
– Turn on your STB, switch to your favourite channel and select equalizer preset
– Turn on/off LED IR controlled lighting, adjust LED colors etc.

Application usage:

The application allows you to setup custom Infrared remote control sequences/macros, from the app main screen tap on Add in order to add new Macro. Enter the name of your new macro and tap on SAVE. In order to add command sequences to your new macro long click on the newly created macro and select “Edit Macro” a new screen will pop up and you can use the Add button to add custom commands to your newly created macro. To execute a macro just tap on the macro name. After you create your new macro you may create a custom shortcut to the macro by long tapping on the macro name from the list of macros. Tap on Shortcut and a new shortcut to your macro will be added to the home screen. Executing a macro from a shortcut is a matter of just tapping on the shortcut.

The application is open source, licensed under GNU GPL v2.0 . You are free to distribute, modify and use for commercial purposes. You can read more about this application by visiting https://irdroid.com .

Before rating this app please make sure that you have a fully operational LIRC server running, the app will not work (will not show a list of remotes if there is no server to connect to)

App requirements:
—————–

– NFC enabled Smartphone or Tablet
– Android 4.0 (Api level 14)
– Configured Lirc / Winlirc server or Irdroid wifi module
– NFC Tag (if you want to use the app NFC functionality)

Information for Android Developers:
———————————–
The application is open source and you can use it in your own project either for personal use or for Commercial purposes. The app source code would give you a very detailed examples for the following Android functionalities:

– Creating and adding custom home screen shortcuts with app icon / custom icon
– Passing extra data to Android application via home screen shortcuts
– Reading, Writing, Formatting NFC tags

Read more about Irdroid Wifi and Irdroid USB Tranceiver :

Downloads:

Check out our online store proposals: