I want to receive and generate IR signals with my PI. What is the best way to reliably do this? Would it be with something like this?
2 Answers
You should look at LIRC. I bought a cheap IR sensor (Philips OVU412000) from ebay and set up LIRC to receive signals from a TV remote in order to control a program I wrote. Works great on my Pi. I haven't looked into generating signals, but I think LIRC is capable of this.
-
How did you interface the IR sensor to the PI? RS232 or USB? Can you post the specifics? Thanks! Oct 16, 2012 at 16:41
-
The IR receiver is USB and it's connected to the Pi via a USB hub (powered, as I have other stuff connected also.) Do you need any other info?– MunkehOct 16, 2012 at 18:39
-
Can you provide details of how you interfaced the IR sensor to USB? Also part number would be great too! Thanks Oct 16, 2012 at 19:46
-
The receiver is a Philips OVU412000. You don't need to do any interfacing as it's all handled by LIRC/kernel stuff; just plug and go.– MunkehOct 17, 2012 at 20:14
Here's a project on how to use LIRC to interface the PI to a home made receiver and transmitter. There is also a third schematic for a transceiver.
The receiver looks to be pretty simple, just a TSOP1238 directly connected to GPIO pins 1, 6 & 12 on the Pi.
-
I defininetly could be wrong, but I don't think the PI has the ability to accurately generate or decode the 38k signals. Oct 16, 2012 at 23:19
-
@shaun5 It should be ok given it is implemented as a kernel module. Oct 17, 2012 at 6:59