Record Infrared Codes of Any Remote Control Unit for Usage with Linux Infrared Remote Control (LIRC) on Raspberry Pi

Introduction

The remote controls that are orphaned when the device they control stopped working are reusable on your Raspberry Pi. After completing this instructable, you may be interested in trying out the following instructables:

Reuse Unwanted Remote Control to Shutdown and Reboot Raspberry Pi

Reuse Unwanted Remote to Launch Graphical Application in Raspberry Pi

Scope

This instructable will show how to use program irrecord to:

  1. Capture infrared codes of any remote control
  2. Map the infrared codes with Linux Infrared Remote Control (LIRC) events

    Record Infrared Codes of Any Remote Control Unit for Usage with Linux Infrared Remote Control (LIRC) on Raspberry Pi

Target Readers

Anyone with Raspberry Pi that has infrared (IR) interface)

Any remote control

Step 1: Add Infrared Interface to Your Raspberry Pi

Complete the steps in my instructable of the above.

Step 2: Install Linux Infrared Remote Control (LIRC) package

The program irrecord is provided by the LIRC package.

Complete the steps in my instructable of the above.

Step 3: Test whether the remote control unit is transmitting any IR signal

Complete the steps in my instructable “Use Raspberry Pi To Test Your Remote Control”Record Infrared Codes of Any Remote Control Unit for Usage with Linux Infrared Remote Control (LIRC) on Raspberry Pi schematic

Step 4: Record infrared (IR) codes of the remote control and map it to LIRC events

Get your remote control unit ready

Open terminal emulator of Raspberry Pi.

Stop the LIRC daemon

Run the program irrecord

When the irrecord program wizard ask you to map key names, open another terminal emulator and list all the possible key names available in LIRC so that you can choose the best one that fits your requirement. The output of the command below is shown in the screenshot

 

Source: Record Infrared Codes of Any Remote Control Unit for Usage with Linux Infrared Remote Control (LIRC) on Raspberry Pi


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top