Cloning a Remote

images/ir_sender.png

As soon as you know the protocol and the command codes a remote uses, you can clone it. You need only an infrared LED that doesn’t differ much from the LEDs we’ve used before. The only difference is that it emits “invisible” light. The figure shows how to connect it to pin 3 of an Arduino. (The library we’re using in this section expects the infrared LED to be connected to pin 3.) Note that you can’t use an LED without a resistor. (See Current, Voltage, and Resistance, to learn more about it.)

We could try to generate the infrared signals ourselves, but that’d be tedious and error-prone. It’s better to use the existing implementation ...

Get Arduino: A Quick-Start Guide, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.