IR sensor


#1

I need to read the IR from a TV remote. I have a grove pi board now. Wondering how I can add IR capability. I have seen IR shields for PI but not clear how to integrate with my grove pi board.


#2

Hey,
We have an example on the Github repo for this: https://github.com/DexterInd/GrovePi/tree/master/Software/Python/grove_ir_receiver for this sensor: http://www.seeedstudio.com/depot/Grove-Infrared-Receiver-p-994.html.

This pretty much works out of the box for the Keyes Remote(http://yourduino.com/sunshop2/images/products/large_369_KeyesRobotRemote1.jpg).

If you are using some other remote then you’ll have to set it up manually by follwing step 8 here: http://www.instructables.com/id/How-To-Useemulate-remotes-with-Arduino-and-Raspber/?ALLSTEPS. These might be useful too: http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi/ and http://www.etcwiki.org/wiki/LIRC_-_Raspberry_Pi .

How this works is that we use the RPISER port on the raspberry pi to connect the IR receiver pin directly to the Serial pin on the Raspberry Pi (The pin might be TX or RX depending on the version of the IR receiver). Then we use LIRC to read to signals from the remote and a python library to interpret them.

-Karan


IR on GrovePi + RaspberryPi [Python]