Infrared Cloning.

Introduction: Infrared Cloning.

About: I am a programmer and I will be presenting my work in a form of chapters related to DOMOTICS.

Chapter 1:

We will be using Arduino and IR technology to clone the signal from every remote. Easy, simple, and using just two devices (one Arduino and one ir receiver). As you might know infra red communication consists of a lights on, lights off sequence from a ir led. Finally that sequence will represent 0 and 1 to define an action in the logic of the controlled device. So lets get started.

Step 1: Getting the Stuff

We will be needing an arduino uno and a ir receiver (integrated). Usually you can buy the receptor in a combo with cables and and a remote. Is cheap and you will always find use for the remote, if you are into arduinos.

I have been testing this mostly with arduino uno but it also works with nano. And it should work with all arduinos.

Step 2: Connections

IR Receiver (pins) -> Arduino (pins)

V+ -> +5v


Signal -> Digital Pin 2

As you can see above, the positive pin of the receiver connects to the 5 volt slot of the Arduino, Ground from the receiver goes to ground Arduino. And finally signal pin from receiver goes to digital pin 2 of the Arduino board. In the images you can see the connection with an Arduino Uno and with Arduino Nano.

Step 3: The Sketch

Download the sketch compile and upload to the Arduino board. Once is installed open the serial monitor.

The result:

The program will ask in a loop to press once the ir-signal you want to clone.

Press the button on the remote now - once only
Press the button on the remote now - once only

Once you press the button of the ir remote. The signal will be printed in an array form also misplaying the array count -> Raw: (x).

Notice that when you press any ir remote in front of the receiver, a led in the little board of the receiver will blink.


Raw: (71) 860, 820, 860, 824, 1716, 828, 860, 820, 860, 820, 864, 820, 860, 824, 860, 1644, 1716, 824, 864, 820, 860, 820, 864, 19968, 864, 820, 860, 820, 1720, 824, 864, 820, 860, 824, 860, 820, 864, 820, 860, 1644, 1720, 824, 860, 820, 864, 820, 860, 19984, 860, 820, 864, 820, 1716, 828, 860, 820, 864, 820, 860, 824, 860, 820, 864, 1668, 1692, 824, 864, 820, 864, 820, 860,

Once you have this information in a form of an array. You cloned the information necessary to send a signal and perform the same task as the button you pressed.

In the next chapter I will show you how to process this information to send an ir signal with an Arduino and a simple ir led !!!

Please bare in mind that baud rate is set for 115200, so to see the out put in the serial monitor you will have to set the serial monitor as well.

Be the First to Share


    • Science Fair Challenge

      Science Fair Challenge
    • Chocolate Challenge

      Chocolate Challenge
    • Digital Fabrication Student Design Challenge

      Digital Fabrication Student Design Challenge