Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

It would be interesting to use the Raspberry Pi as a replacement for a media center; however, as I see it now the Raspberry Pi needs to be controlled by means of a keyboard or over the network. Is it possible to control the Raspberry Pi using an universal remote control or something similar?

I'm planning to use the Raspberry Pi where carrying or connecting a keyboard is not feasible.

share|improve this question
3  
Yes, it is possible. You would probably want to use one of the IR receiver modules that demodulates the 38-40 KHz typical encoding. The question would then be if the pi's operating-system-slowed interrupt latency is reliably low enough to detect all of the pulses in the remote protocol, or if you will need to use a real time operating system patch, or perhaps more simply, put a two dollar microcontroller in there to convert the IR pulse protocol to something the pi will readily accept like logic-level asynchronous serial (UART). –  Chris Stratton Aug 11 '12 at 22:58
    
If you are not into hardware, then look into a network solution. You can get quite far with a simple web server. –  Thorbjørn Ravn Andersen Aug 12 '12 at 8:12
    
My Pi is hosting a simple server that accepts input from a little remote control app on my Android phone. It's pretty simple to set something like this up, or perhaps I'll release it once it's looking a bit better. –  Jivings Aug 12 '12 at 10:59
    
@ThorbjørnRavnAndersen: I'm planning to use this in a small RV, the reason for the replacement would be to have less space. Placing a network would only increase the amount of space. –  Tom Wijsman Aug 12 '12 at 12:14

9 Answers 9

up vote 9 down vote accepted

Have a look at this page: http://aron.ws/projects/lirc_rpi/

It describes how to use an IR receiver component with the GPIO pins.

share|improve this answer

This Multimedia IR Remote Controller with USB Receiver is supposed to appear as a plain USB HID keyboard. It shouldn't need drivers. Alternatively, MythTV users have a lot of experience in getting odd remote controls to work, sometimes with LIRC.

share|improve this answer
    
I'm one of those MythTV users, and if you get a Windows Media Centre USB IR receiver and remote then they are no problem to get working. This is a very PC-ish way of doing it though, and the GPIO pin IR receiver pointed at by Adam M-W is more in the spirit of the RPi, IMO :) –  David Gardner Dec 1 '12 at 13:55

I had the same though, and decided to just try a cheap'n cheerful HID style device.

The item below seems to work perfectly (for all small values of perfect)...

PC Computer Wireless Remote Controller with USB IR Receiver

(It looks to be very similar or the same as the Deal Extreme device above).

Furthermore it works with the similarly cheep'n cheerful Ralink Wireless card on the other USB port, on an unmodified (as in still with the factory fitted fuses) version 1 model B Pi running off the USB connector on my laptop, so no power issues so far.

DMESG shows the following...

    [    3.181011] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
    [    3.308976] usb 1-1.2: New USB device found, idVendor=148f, idProduct=5370
    [    3.318423] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    3.328287] usb 1-1.2: Product: 802.11 n WLAN
    [    3.335089] usb 1-1.2: Manufacturer: Ralink
    [    3.341716] usb 1-1.2: SerialNumber: 1.0
    [    3.431060] usb 1-1.3: new low-speed USB device number 5 using dwc_otg
    [    3.544469] usb 1-1.3: New USB device found, idVendor=1d57, idProduct=ad02
    [    3.553826] usb 1-1.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [    3.575628] input: HID 1d57:ad02 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/input/input0
    [    3.591806] generic-usb 0003:1D57:AD02.0001: input,hiddev0: USB HID v1.10 Keyboard [HID 1d57:ad02] on usb-bcm2708_usb-1.3/input0
    [    3.614598] input: HID 1d57:ad02 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.1/input/input1
    [    3.630092] generic-usb 0003:1D57:AD02.0002: input,hiddev0: USB HID v1.10 Mouse [HID 1d57:ad02] on usb-bcm2708_usb-1.3/input1

... and

lsusb shows.

    ...
    Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter

    Bus 001 Device 005: ID 1d57:ad02 Xenta 
    ...

.. and if I do a startx, I have an IR mouse, media type buttons, and a rather difficult to use keyboard (fine for media center applications, but since you type text style on it, i.e. several clicks for each letter, I wouldn't want to compose a novel).

The whole thing is in a small form factor similar to the Pi, the remote being about 2cm longer and slightly narrower than the Pi.

Not bad for £3.42 shipped (About $5 US).

I suspect most of these HID style devices should work, but I can vouch for the above.

share|improve this answer

Not an IR device, but you can get a Playstation 3 Remote and a Bluetooth adapter. It's a Bluetooth remote, and if I recall correctly, sends keyboard events and is straightforward to configure in Linux. Since it uses radio waves rather than IR, you don't need to be in line with a receiver either. It's pretty cheap, especially second hand.

share|improve this answer

If you have an IR keyboard, you can program a universal remote to talk to the receiver

share|improve this answer

Yes, it is possible to use the RaspberryPi as a remote infrared control. I have been building this exact project myself and have been documenting every step I have taken to accomplish it.

You can install LIRC (Linux Infrared Remote Control) to give the RaspberryPi the ability to send and receive IR commands. Then, you can use some open source software I have written (lirc_node and lirc_web) to create a web interface to control LIRC. This lets you pull up a web page on your mobile phone to act as your universal remote. Much more convenient than having to type in commands manually!

Check out the two blog posts I wrote that describes how to set this up yourself:

http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi/ http://alexba.in/blog/2013/02/23/controlling-lirc-from-the-web/

Hope this helps!

share|improve this answer

If you want a ready-made solution you could look at the RemotePi Board ( http://msl-digital-solutions.myshopify.com/ ), which in addition to letting you control your mediacenter using an infrared remote control with LIRC, lets you as well switch the power of the Raspberry Pi on an off with your remote.

share|improve this answer

I have been using a standard RC6 Media Center Remote with my Raspberry Pi for a few months now. But instead of the USB receiver, I use this HoneyPi brand GPIO IR Receiver. It's a daughter board that mounts directly on the Raspberry Pi motherboards GPIO pins. No soldering - which sold me on it.

Works great and doesn't use up a USB port. RaspBMC and OpenELEC are both supported out of the box. It even works through my opaque case.

share|improve this answer

I have successfully setup USB IR Receiver to control my Raspberry Pi media center running OpenELEC. After setting it up I programmed my Logitech Harmony remote too.

Personally (and like AndyH mentioned above), I think this is the best and cheapest with least amount of work. Tested with Xbian too.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.