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

Target Readers

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

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

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 schmatic

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

Finally, the irrecord program will process your input and create a configuration file ~/my_remote_control.conf as shown in the third screenshot.

 

For more detail: Record Infrared Codes of Any Remote Control Unit for Usage with Linux

Infrared Remote Control (LIRC) on Raspberry Pi




Leave a Comment

*
= 5 + 4

Read previous post:
Apollo2 MCU Paves The Way For New Generation IoT Devices
Apollo2 MCU Paves The Way For New Generation IoT Devices

Ambiq Micro, the leader in ultra-low power solutions, launched  the Apollo 2 Wearables and IoT Platform. The Platform offers breakthrough...

Close
Scroll to top