Controlling RPZ media center using IR remote

It wouldn't be very useful to need a keyboard and mouse to watch television; we are used to having remote controls manage the functions available on a TV, stereo, or media center. Fortunately, we already know how to integrate an infrared sensor with our Raspberry Pi Zero; now let's make it work with Kodi!

Getting ready

The previous recipe went through setting up the OpenELEC distribution on the Raspberry Pi. You'll also need the parts from the previous chapter's Interfacing the Infrared Receiver recipe, with the data port located on GPIO 18, as shown here:

Getting ready

Adding the infrared receiver to your Kodi setup ...

Get Raspberry Pi Zero Cookbook 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.