Août 302013

A quick article around my adventures with the Arduino.

This time, lets play with infrared.

More precisely lets catch IR signals and send them back.

The IR sensor can be found here.
The IR emitter can be found here.

You can use 2 arduino or built it all on one arduino (if so, add a object.enableIRIn() after each send or you wont be able to receive after the 1st send).

Here below the wiring and a quick and dirty sketch for sending.

Now go and place with your remotes !



Sketch to send signals with your IR emitter.

* IR LED must be connected to Arduino PWM pin 3.


IRsend irsend;

void setup()

void send(int code)
for (int i = 0; i < 3; i++) {
irsend.sendNEC(code, 32); // code, length

void loop() {

  3 Responses to “Arduino : use it as an infrared remote”

  1. On va peut-être enfin avoir notre télécommande universelle 😉 bisoux.

  2. Please provide a link to the library used

    Fix the link « The IR emitter can be found here » should be

    Great website !

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.