Official website

Tuesday, July 8, 2014

Arduino IR remote control

After this tutorial we're coming back to make another kind of remote control. This time we will use infrared modules to receive and transmit codes to devices such as TVs, Hi-Fi systems, Projectors, etc. Thus will give as a universal remote control.

What we need:
First wire the modules and then install the library. To do so navigate to Sketch/Import Library/Add Library


After installation is complete it will appear in library list.

Upload the sketch using codebender
Alternatively download the sketch and upload it to arduino.

Open the serial monitor point the IR receiver module and press a key of a remote control. It should return back the readings (code type, code value and code length).

To transmit back we have a simple implementation within loop that translates a specific form of data.
i.e. <codeType:><codeValue>&<codeLength>
For example, son:2704&12 which will cause the transmission.

Jubito as a virtual remote control
First make sure you have properly configure arduino serial port and then enable it.

From Instruction Sets menu press Add New Launcher. Enter a name (handler) and type the following command...

judo serial send son:2704&12

Then visualize it. Again on Instruction Sets menu press Add New Instruction Set and fill the mandatory fields (name, action, category, header) and some optional if you desire, e.g. Thumbnail URL.

As you might already know from previous tutorials, we point the 'sonypower' launcher with an asterisk in front of that.
After that final step you'll see a 'Media' category to your dashboard with the action we've just created.

Scan and enjoy your virtual universal remote control.


  1. You've done a fantastic job here. Thanks!! You've already revolutionized my whole media center. Now I only have ATT Uverse holding me back. I can't seem to get that remote properly decoded. I believe there is an updated Remote library called IRLib by cyborg5. Sadly I haven't been able to get that library working with your sketch, and with all my noobiness I don't expect to get far. Would you please consider updating your sketch to accommodate the IRLib library? Again, thanks for all your hard work.

  2. Thank you, I'm glad you are using Jubito.
    There is no much time to work on your request. I will take care of it some time in the future, but I can't give you a promise. Sorry about that, I hope you understand.

  3. Setup Guide -
    Additional Guide -

    That's alright, I've fortunately gone ahead and figured out exactly how to get the IRLib to work with RCMM (ATT Uverse). The good news is that the functionality with Jubito is flawless. Because of your efforts here, I felt I should contribute something also. I've gone and created a noob guide which describes in detail exactly how I got this working. The guide also details the process of managing codes and protocols. I hope it meets with everyone's approval. Enjoy

  4. Thank you very much for your contribution. Please post your work also to Jubito's social (facebook, twitter, etc) and not only. Contributor's support and spread is extremely valuable to the community.

  5. I've posted the Guide links to the Jubito FB page. Unfortunately, the URL for the setup guide has now changed. Here is the updated link.

    Setup Guide -
    Additional Guide -

  6. @Corinez: Excellent, thanks for sharing!

  7. Impressive stuff thanks for sharing


Note: Only a member of this blog may post a comment.