Using an Infra-Red Remote Control with your Raspberry Pi
It is often useful to control robots remotely. An easy way to add additional input is to make use of an IR (infra-red) receiver and a standard remote control. Fortunately, the receiver is well supported.
We will use a module called LIRC to capture and decode IR signals from a standard remote control.
Getting Ready
LIRC supports many types of IR detectors, such as Energenie's PiMote IR board; however, since we only need to receive IR signals, we can use a simple (TSOP38238) IR detector.
Install the following ...
Get Raspberry Pi for Python Programmers Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.