Infrared Remote control as you know were introduce much earlier in the seventies. These day must electric/electronics device comes with inbuild infrared control system. Various devices like T.V., fan, AC or even a lighting bulb came with the features like remote control.
But every IR receiver circuit responds only to assigned frequency i.e. it works only on fixed assigned frequency. Thus, every IR remote controlled appliance have their own remote. In order to solve this problem today we came with an idea of universal remote receiver i.e. we can control any electrical or electronic appliance with single remote. We can control electrical bulb, AC or Fan using TV remote. So, in this universal arduino IR receiver you are going to learn how to get HEX code of different IR frequency and use it to control appliance.
- Arduino UNO Board
- Two Different Color LEDs
- IR Receiver 1838T
- Two 220 Resistors
- A remote (Any)
- Ten Male to Male Connector
IR Sensor 1838T: We had chosen IR Receiver 1838T due to following reason.
- It is compact design with built-in dedicated IC.
- Long range and wide-angle reception.
- Resist to ambient light and anti-stem design.
- Low voltage and low power operation.
Circuit Description of Universal Arduino IR Receiver:
The circuit diagram of “Universal Arduino IR Receiver” is shown in figure 1 below. The entire circuit is build around arduino uno board or you can say that arduino uno is the brain of entire circuit because it takes input, process it and produce output as input is given. IR receiver is a transducer which detect infrared ray and change it into electrical signal which is detected by arduino uno board. Here in this circuit we had used two different color LEDs for output because the remote controller we are going to used here have only two switches.
Working of the circuit Universal Arduino IR Receiver
Different frequency is assigned to different button of IF remote. Every button has unique frequency thus at first, we have detected the frequency of button used to control the appliance. Let say the remote we are using here have two buttons ON and OFF. ON buttons have different frequency then OFF buttons which is detected by the circuit and operate appliance according to assigned value.
So before control the LED using remote let first configure the circuit according to remote. The procedure to find the frequency of different key is shown below.
- Gather all the components as shown above and assemble as shown in circuit diagram.
- Download the code from below and Add library file IR-Remote to your IDE
- Upload IF_Hex.ino in arduino board using arduino IDE.
- Open the serial monito and press any remote button in front of IR receiver you will see a HEX code of IR rays.
- Note these HEX code and use in main.ino program.
- Now your universal remote is ready to use.
Software: The software code of universal arduino IR Receiver is written in arduino programming language and is burn in arduino uno board using arduino IDE. You can download the software code from below. The software code folder contains main.ino, IF_HEX.ino and IR remote library file.