IR remote as PC input

As a learning experience [GeriBoss] put together an IR remote control receiver board for his PC. His want of volume control from across the room was reason enough to undertake the project, and he got to work with a 38 kHz receiver module and Manchester encoding in the process.

The decoder portion of the project is built around an ATtiny2313 chip. The external interrupt pin (INT0) is connected to a TSOP31238. When it decodes a valid remote code it pushes a character to the RS232 chip connecting to the computer’s serial port.

We think this is a wonderful accomplishment for [GeriBoss], but we encourage him to refine the design further. You’ll notice in the image there’s a USB port on the board which is only used to provide regulated power. We know it’s possible to use V-USB with the ATtiny2313 to add USB functionality and this would be a great way to learn about it. We’d also like to mention the resistor and capacitor suggested for filtering the IR receiver module signal. We’ve included the recommended application schematic for that part after the break.

Comments

  1. Jose says:

    Wow. Isn’t this “hack”-a-day? Who are you guys, his mom?

    It’s kind of ridiculous (and insulting) to show off someone else’s project and then “finish” it for him.

    • Akoi Meexx says:

      But it’s ok for commentators to make suggestions? Seems like a double-sided standard. I for one would welcome any constructive input for improvement of projects I publish.

      But back to the post itself: definitely slick, though I’d want to see USB functionality as well. I suspect the phrase “If it ain’t broke, don’t fix it” is going to apply here. Still, it’d be nice to see it implemented.

    • SWHarden says:

      I agree. Stop being moms.

      If it were elegant, it wouldn’t be a HACK.

      It’s hacked, and it works – mission accomplished.

  2. Tarantulas says:

    FLIRC… yeah.

  3. dave says:

    Um, LIRC.

    • Gorloth says:

      I’ve been using LIRC (Linux IR remote control) for years on my laptop works great, ironically I’ve found the windows port of LIRC to work much better for setting a system up, it would figure out the encoding and present the codes as a binary string, as opposed to leaving it as a bunch of high/low timmings

  4. gaigelama says:

    Interesting enough I was wanting to embed an IR remote into my computer so I can have control of my stereo and tv. I was planning to make shortcuts of each script to load (e.g. vol up) and macro it to my G510. I was just hoping to find a usb ir transmitter, but all there is a usb ir transceiver for around $50. So I’m using my old psphat atm.

  5. Hephaix says:

    I did something close with an arduino, an IR receiver and an ethernet shield. The received IR signal is send via UDP on a specifed port on my PC. It is then received by a client writen in C. The client perform actions accordingly to a xml configuration file. Actions available are any combination of the folowings:
    send a key press event to the system keyboard buffer,
    send a key release to the same buffer,
    launch a program with any argument
    wait for XXX ms (to wait for the complet start of a program)

    PS: I am aware that this is a huge security hole…

  6. jc says:

    AFAIK pc serial ports either already have irda modems that can be enabled in bios (and then you can just use emitter/detector diodes) or you can just stick one of those irda modulators/demodulators in there.

  7. GeriBoss says:

    Of course I gave up on V-USB, I tried for weeks without success. Windows (7, x64) detected it but I couldn’t establish a data link… So the problem was on the PC side, not the firmware.

    In my opinion building this from scratch was much more satisfying than using (Win)LIRC or similar.

    I’ll probably use an FTDI chip next time, less hassle.

    Anyway, thanks for the feedback and suggestions everyone!

  8. g says:

    We’d also like to mention the resistor and capacitor suggested for filtering the IR receiver module signal. We’ve included the recommended application schematic for that part after the break.

    You could as well have looked at it then, you know. Or read the text.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 96,345 other followers