Use Raspberry Pi to Test Your Infrared Remote Control

Introduction: Use Raspberry Pi to Test Your Infrared Remote Control

About: Systems Administrator and Software Programmer.


My Air Conditioner (AC) machine didn't work even after replacing the batteries of the remote control. I wanted to know whether the remote control is sending out any Infrared (IR) signal.


This instructable will show the following:

Make Raspberry Pi receive infrared signal from the remote control


Raspberry Pi users


The remote control being tested work in the 38KHz frequency.

Step 1: Install and Configure LIRC Daemon

Complete the steps in "Install and configure LIRC Daemon" instructable.

Step 2: Test the Remote Control

First test a remote control that you know to be working (example TV remote) to ensure that IR interface of the Raspberry Pi is working as expected.

On the terminal emulator

$mode2 -d /dev/lirc0

Point the working remote control at the Raspberry Pi

Press any button while looking at the terminal emulator

You should see messages being printed on the screen as shown in the screenshot. This is a confirmation that the IR hardware and software interface of the Raspberry Pi is working.

Now point the remote control you suspect to be faulty at the Raspberry Pi

If there are no messages being printed on the screen, then there is a high chance that it is faulty.

Be the First to Share


    • Mason Jar Speed Challenge

      Mason Jar Speed Challenge
    • Bikes Challenge

      Bikes Challenge
    • Remix Contest

      Remix Contest

    2 Discussions


    5 years ago on Introduction

    There is an even easier way to check if an IR remote is working: Just point it on your digital camera or smartphone camera. These cameras are sensitive for IR and you will see the IR LED blinking or lighting up on the camera live preview.

    mirza irwan osman
    mirza irwan osman

    Reply 5 years ago

    Hi. I tried with a camera and I saw the light from the camera. Thanks for sharing.