Book Image

Banana Pi Cookbook

By : Ryad El-Dajani
Book Image

Banana Pi Cookbook

By: Ryad El-Dajani

Overview of this book

Table of Contents (13 chapters)

Setting up an infrared remote control using LIRC


In the last recipe of this book, we will discover the possibilities of setting up an infrared remote control using the LIRC application.

Getting ready

The following components are needed to set up a remote control on Banana Pi:

  • A Linux system on Banana Pi

  • A remote control sending infrared signals

  • An HDMI connection to your TV

  • A keyboard and mouse connected to your Banana Pi

This recipe is valid for most remote controls. We are using a remote control (shown in the following picture) of a well-known manufacturer:

In most cases, any other remote control should work just fine if it emits infrared signals.

How to do it…

As a first step, we need to set up LIRC to recognize each button pressed on your remote control. Afterwards, we need to configure what should happen when we press buttons on the remote control.

Configuring LIRC to recognize the remote control

The following steps explain how to set up a remote control with LIRC:

  1. Boot your Banana Pi into the desktop...