Infrared Remote Control Converter (Arduino Uno)

1. Description

This project shows how to build an infrared remote control (IR RC) converter that allows emulating an IR remote control (emulated IR RC) using a different one (physical IR RC). The basic principle is the following: IR codes sent by the physical IR RC are intercepted by an IR receiver, translated into the physical IR RC corresponding codes and sent through an IR transmitter. The translation table that maps the physical to emulated IR RC codes is permanently stored in the microcontroller’s internal EEPROM; it can be easily (re)initialized by putting the system in setup mode (hardware interrupt generated by a button press).

Difficulty level: advanced.

2. Parts

– 1 x Arduino Uno R3;
– 1 x Keyes Infrared Receiver module;
– 1 x Keyes Infrared Transmitter module;
– 1 x BC547 transistor;
– 1 x 220 ohm resistor;
– Breadboard + wires.

3. Schematics

(click to enlarge)

4. Assembly (breadboard)

(click to enlarge)



5. Code

Notes
1. The code below has been tested for IR RC conversions between NEC, JVC and Samsung IR RCs. Other conversions might be possible by uncommenting the corresponding lines in the switch instruction (loop function).
2. The translation table that maps the physical to emulated IR RC codes is permanently stored in the microcontroller’s internal EEPROM; it can be easily (re)initialized by putting the system in setup mode (hardware interrupt generated by a button press). During the normal operation it is loaded into the SRAM memory for faster access.

ir_remote_control_converter.ino:

6. Demo

7. Additional resources

Libraries:
– Arduino-IRremote: https://github.com/z3t0/Arduino-IRremote
– EEPROM library (included with the Arduino IDE)

References:
– Keyes Infrared Transmitter Module datasheet:
http://tinkbox.ph/sites/tinkbox.ph/files/downloads/Keyes%20-%20Infrared%20Transmitter%20Module.pdf
– Keyes Infrared Receiver Module datasheet:
http://tinkbox.ph/sites/tinkbox.ph/files/downloads/Keyes%20-%20Infrared%20Receiver%20Module%20.pdf



Leave a Reply