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

 

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


© 2015 Powered By Engineering Projects Team, Raspberry Pi Projects

Scroll to top