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

Receiver
Transmitter


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.

11 comments:

  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.

    ReplyDelete
  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.

    ReplyDelete
  3. Setup Guide - https://forum.arduino.cc/index.php?topic=358778.0
    Additional Guide - https://forum.arduino.cc/index.php?topic=358788.0

    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

    ReplyDelete
  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.

    ReplyDelete
  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 - https://forum.arduino.cc/index.php?topic=359216.new
    Additional Guide - https://forum.arduino.cc/index.php?topic=358788.0

    ReplyDelete
  6. @Corinez: Excellent, thanks for sharing!

    ReplyDelete
  7. This comment has been removed by a blog administrator.

    ReplyDelete
    Replies
    1. Sorry kj, but no Jubito reference is provided.

      Delete
  8. Impressive stuff thanks for sharing

    ReplyDelete
  9. I enjoyed reading your article :) PLease continue publishing helpful topics like this. Regards, from Let's get gadget, a company whose into selling
    remote extender

    ReplyDelete