Control Your PC With A Remote

Because his computer is gradually turning into an all-inclusive media display device, [Shawn] figured a remote to control the volume and a video playlist would be a reasonable addition. TV remotes for computers have been around for years, but [Shawn] decided to go the DIY route and build his own computer remote.

For the build, [Shawn] used a Teensy dev board with an IR receiver module and the requisite infrared remote library. To translate infrared signals to keyboard commands,[Shawn] decided to base his project off a previous build that used a small program called AutoHotKey.

Right now the build can cycle through a pre-defined YouTube and Shoutcast playlist and change the volume of the currently playing track. There’s also support for moving the mouse with directional buttons on the remote, but we’re wondering if a better implementation would be using the Windows multimedia keyboard scan codes that should be supported by [Shawn]’s laptop.

Still, [Shawn] managed a very nice build that would fit into our computer battlestations quite nicely. Check out the demo of the remote in action after the break.

[youtube=http://www.youtube.com/watch?v=3O6VygUv7Qg&w=470]

16 thoughts on “Control Your PC With A Remote

  1. Word of advice re AutoHotKey: If your hotkeys often stop working when the system is heavily loaded, and keep not working until their scripts are reloaded, and you’re running AHK on something newer than XP, you probably need to extend the low-level hook timeout (google it for theory & practice).

    I use AHK to, among other things, remap Caps Lock to Control — the recurring hotkey failure drove me up a wall until I finally found out how to solve it. HTH!

  2. Cool hack nice to see someone going into all the info and decoding the or stuff

    For us that don’t want to dig deep I’ve been using an old iPod touch and an app to do the same thing

    Good job on the hack!! Keep it up

  3. for this usage i would buy an irtoy, receive the remote codes with WinLIRC, and convert them to keyboard actions using EventGhost.

    building the ir receiver is probably more fun but less expedient.

    i have this software setup working great with my ghetto htpc and an ancient serial ir receiver

  4. Don’t invest in IR technology, it is outdated. Grab a PS3 remote on sale ~$16 and a bluetooth dongle ~$5.

    One day it kids will laugh when their parents instinctively point a remote at the TV to change channels.

  5. I’ve been using the FLIRC (www.flirc.tv) device to control my XBMC box for a while now. The benefit is that it will learn any button on any remote, so you can use existing remotes to do cool stuff. Programming is done either with a cross-platform GUI or with a CLI. I just SSH into my XBMC box and run commands like:

    $ flirc record space

    Then press a button on the remote. Plus, it stores all the config inside the dongle, so you can use it with multiple computers.

    Nope, I don’t sell them or profit in any way. Just a cool device!

  6. This is a hack? Most everyone has been doing this for well over 10 years now.

    In fact I had a brand new windows 98 PC that I did this with. And most laptops that had IRDA you could use that way.

  7. Nice! I like the small arduinos.

    That said, for the wanted functionality here I’d go for retail devices for pure price reasons.

    This remote @ 9$ is compact and has built in mouse functionality It has just enough buttons to do complex things. I’ve programmed a few buttons to toggle different modes for the rest of the buttons.

    http://www.dealextreme.com/p/wireless-multimedia-infrared-ir-remote-controller-with-usb-receiver-for-pc-1-cr2025-44186

  8. I did something similar to control VLC using python script. VLC has a built in Http remote control interface that can be used to control most standard aspects of VLC – Play, pause, stop, volume up and down etc. Used the same IR library to output hex codes to a serial interface and then used a python script to monitor the serial data and use urllib libraries to control media play.

Leave a Reply to lollotekCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.