Building a universal remote with an Arduino

md1arduino.jpg
This is a nice DIY universal remote using an Arduino and an IR LED. Hopefully you have an oscilloscope so you can decode your current remote. If not, keep checking craigslist for a really cheap one. That's where I got mine.

It is really easy to build a universal remote using an Arduino. With just an infrared LED, it can impersonate remotes for your TV, fans, lights, etc. and can let you easily incorporate these into your electronics projects. You won't even have to solder anything or void any warranties.

More about Building a universal remote with an Arduino

In the Maker Shed:
Makershedsmall
Arduino Family
Make: Arduino


Recent Entries

Comments

Oldest comments listed first.

Posted by: Ome Joop on November 18, 2008 at 2:41 AM

What about reading other remotes with Arduino itself by connecting an IR receptor?


Posted by: Marc de Vinck on November 18, 2008 at 6:48 AM

Good point. I think the issue would be storing and analyzing the data. It is much easier to see it on a screen. Although, why not map it out in Processing? Hmmm....not fast enough?


Posted by: The Oracle on November 18, 2008 at 9:41 AM

The processor has plenty of power. But IR remotes use different carrier frequencies, if you use a detector that automatically demodulates, it has to be the correct frequency or your range will be horrible and you'll never know what carrier the arduino should be sending with.

And There's 2 common wavelenghts of IR LED used, 940nm is most common but 870nm is also out there.

Once all that is handled (let's say you only accept 38kHz, 940nm), there's all kinds of coding schemes. Some have a bit that toggles every time the same code is sent, some have a short "repeat" code. Some use active-low, some use active-high. On top of that the times aren't very precise. If the remote is sending a 1ms pulse, you might get 0.8ms one time and 1.2ms the next time. So you'll only have a rough approximation of what the timing was supposed to be. Using your scope you can see the ballpark the remote is aiming for.

As you might guess, I've built a learning remote in the past. It certainly is possible and within the capability of an Arduino, but there's a very good reason that almost all universal remotes on the market are pre-programmed.


Posted by: Marc de Vinck on November 18, 2008 at 9:49 AM

@ The Oracle

WOW! Thanks for all the great information....you certainly know your universal remotes!


Posted by: oPossum on November 18, 2008 at 11:01 AM

Some resources for simple IR capture:

Hack a MiniPOV3 for IR capture:
http://ladyada.net/forums/viewtopic.php?f=23&t=4890

The IR Widget:
http://www.compendiumarcana.com/irwidget


Posted by: The Oracle on November 18, 2008 at 12:50 PM

@Marc -- Thanks. See what happens when I stop flaming people? ;)


Posted by: Marc de Vinck on November 18, 2008 at 6:24 PM

@ The Oracle

That's funny! Your comments have been really great. Thanks for contributing!


Posted by: Phillip Torrone on November 18, 2008 at 6:26 PM

The Oracle always has great comments, even if they're not universally celebrated by everyone :) they're always good - thanks for contributing here Oracle, good stuff!


Posted by: farkinga.wordpress.com on January 4, 2009 at 3:15 PM

arduino IR receiver code

I hacked together a simple project for decoding Sony IR remotes, using only an Arduino and an IR receiver. I believe this process would generalize easily, and completely eliminates the need for an osciliscope.

My post is available here: http://www.rtfa.net/2009/01/02/arduino-ir-remote-control-more-advanced


Leave a comment


Subscribe to MAKE!Subscribe to MAKE Magazine!

Subscribe today, save 42% and get web access to MAKE free. MAKE Digital Edition is available only to subscribers.

$34.95 / 1 year
(4 Quarterly Issues)

Subscribe now


Void your warranty, violate a user agreement, fry a circuit, blow a fuse, poke an eye out. Make: The risk-takers, the doers, the makers of things... Welcome to Make: Online!


CRAFT Maker Shed Maker Faire MAKE television
Holiday Gift Guides from MAKE
Gifts for Dads
Science and Chemistry
Gifts Under $20
More guides: Santa Claus Machines, Geek Toys for Grown Up Girls & Boys


Check out all of the episodes of Make: television

Alex Rider Dream Gadget Contest
Make: Science Room

Connect with MAKE

Be a MAKE fan on Facebook MAKE on Facebook
Visit our Facebook page and become a fan of MAKE!
MAKE on Twitter MAKE on Twitter
Follow our MAKE tweets!
MAKE Flickr Pool MAKE on Flickr
Join our MAKE Flickr Pool!
    make_tips on Twitter




    Maker SHED

    Advertise here with FM.

    Why advertise on MAKE?
    Read what folks are saying about us!

    Click here to advertise on MAKE!



    Subscribe to MAKE Magazine!

    Make: Online authors!

    Gareth BranwynGareth Branwyn
    Senior Editor


    Phillip TorronePhillip Torrone
    Senior Editor
    | AIM | Twitter


    Becky SternBecky Stern
    Associate Editor
    | AIM | Twitter


    Marc de VinckMarc de Vinck
    Contributing Writer
    | AIM | Twitter


    John ParkJohn Park
    Contributing Writer
    | Twitter


    Sean RaganSean Ragan
    Contributing Writer
    | Twitter


    Matt MetsMatt Mets
    Contributing Writer
    | AIM | Twitter


    Dale DoughertyDale Dougherty
    Editor & Publisher
    | Twitter


    Shawn ConnallyShawn Connally
    Managing Editor
    | Twitter


    Goli MohammadiGoli Mohammadi
    Associate Managing Editor

    Kip KayKip Kay
    Weekend Projects
    | AIM | Twitter


    Collin CunninghamCollin Cunningham
    Contributing Writer
    | AIM | Twitter

    Adam FlahertyAdam Flaherty
    Contributing Writer
    | AIM | Twitter



    More contributors: Mark Frauenfelder (Editor-in-Chief, MAKE magazine), Kipp Bradford (Technical Consultant/Writer), Chris Connors (Education), Diana Eng (Guest Author), Peter Horvath (Intern), Brian Jepson (O'Reilly Media), Robert Bruce Thompson (Science Room)

    Suggest a Site!

    Current Podcast

    itunesdl.gif Weekend Project: Beetlebot Simple robot from your parts bin that avoids obstacles. Thanks go to Jerome Demers for the original article in MAKE, Volume 12. To download the Beetlebot video, click here or subscribe in iTunes. Check out the complete Beetlebot article... More...

    Get the Make: Online sent via email
    Enter your email to receive Make: Online each day:



    MAKE Fascination video series brought to you by Dow

    Make: Education
    MAKE: en EspaƱol MAKE: Japan
    Important please read


    Subscribe to MAKE Magazine!

    Recent Posts from the Craft: Blog