Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Sensor Series
      • Engineering Deep Dives
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Universal IR Remote Control

By Deepesh Verma August 13, 2014

With technological advancements in consumer electronics, nowadays almost every appliance in our home is remote controlled.You can also build IR remote control for Home appliances. 
 
Managing a different Remote (average figure) for TV, AC, Fan, DVD, DTH, etc., is quite difficult. What if we could have only one remote capable of working as a dedicated remote for any appliance any  time?

Prototype of Arduino and TSOP1738 based Universal IR Remote Control Receiver

Fig. 1: Prototype of Arduino and TSOP1738 based Universal IR Remote Control Receiver

 
Presented here is such a device based on Arduino that can act as Remote control for any appliance when needed.For this project reader need the knowledge of how to start with arduino .

Overview of Arduino based Universal IR Remote Control

Fig. 2: Overview of Arduino based Universal IR Remote Control

The remote controls for electronic appliances use IR (Infra-Red) communication technique. A specific code is assigned to  each key of the remote , based on a standard protocol.

There are various protocols designed by manufacturers, such as NEC, Sony SIRC, Philips RC5, Philips RC6;  each carrying a different coding scheme.  For example, in NEC protocol based remote, 32-bit code is transmitted, whereas in SONY, 12-bit code is transmitted.
 
Basically, these codes are nothing but pulses with two levels viz. High and Low. The duration of each pulse is in milliseconds,  which is decided by the manufacturer.
 
The frequency at which the signal is modulated is standardized to 38 kHz. To prevent interference from IR sources such as sunlight or lights, the LED is not turned on steadily, but is turned on and off at a modulation frequency (typically 36 or 38KHz). Thus every receiver must be capable of receiving a 38 kHz signal effectively. A very simple and reliable device for IR signal reception is TSOP17XX, where XX denotes the frequency to which it responds. TSOP1738 is commonly used in IR receiver applications.
 

TSOP 1738

The TSOP is a miniaturized receiver for infrared remote control systems. PIN diode and preamplifier are assembled on lead frame, while the epoxy package is designed as IR filter. The demodulated output signal can be directly decoded by a microprocessor. TSOP is the standard IR remote control receiver series, supporting all major transmission codes. Its output is Active Low.

Pin Diagram of TSOP1738 IR Receiver

Fig. 3: Pin Diagram of TSOP1738 IR Receiver

How to Decode a Remote?

To know what signal is transmitted when a key on remote is pressed, we need to decode it. This can be done with the help of Oscilloscope. Although it seems quite difficult, finding an oscilloscope at home is not possible. Well, an affordable solution to this problem lies in Arduino Library. “IRremote” library provides a ready code to decode the IR remote and display it on the serial monitor.
 
In Arduino IDE 1.0.5 and later, this comes pre-loaded, whereas for older version you can get the library from Arduino’s official website.
 
‘IRrecvDemo’ is a program to decode the IR signals. Get an Arduino and make connections with TSOP1738 as shown below:

Circuit Diagram of Arduino based IR Remote Receiver

Fig. 4: Circuit Diagram of Arduino based IR Remote Receiver

Now upload the code ‘IRrecvDemo’ to the board.
 
After being done with uploading, open serial monitor window and point the remote you want to decode towards the TSOP sensor.
 
Press any key and a code (Hexadecimal) will appear on window. Note down the code for further reference.
 
If you do not know about the type of protocol of your remote, use the program ‘IRrecord’ in the Examples. Upload the program and repeat the above procedure. On the serial monitor, you’ll find Protocol type along with the HEX code.
 
Similarly, record the codes for all keys and remotes that you want to replicate into one. These HEX codes will be inserted in the program of universal remote.

Making Up the Universal Remote

In the remote we have made 6 keys viz., Channel UP; Channel DOWN; Volume UP; Volume DOWN; Power ON/OFF and MUTE.
 
These 6 keys are connected in a 2×3 Matrix, which is easy to interface with Arduino.
 
Also, to select which appliance is to be operated, (since appliances have different protocols) we provide Select buttons. The number of select buttons depends on the number of remotes to be replicated.
 
For the sake of simplicity we have taken 3 select buttons, 1 each for TV, DVD and DTH (You can choose any appliance depending on your requirement).
Thus the Remote control will have  a total of 9 Keys, (3 select and 6 operational keys)
 
The IR LED is connected between Digital pin 3 of Arduino and Ground through a 330E resistor.
 
Select Switches are connected to Digital pins 9, 10 and 11,  whereas the operational keys are interfaced in the form of a 2×3 matrix with digital pins 4,5,6,7 and 8.

Image showing different circuit sections of Arduino based Universal IR Remote Control Receiver

Fig. 5: Image showing different circuit sections of Arduino based Universal IR Remote Control Receiver

Operation

The operation of the remote is quite simple and straight forward. The select buttons help to decide, which appliance will be controlled by the remote. Say, if Switch1 is pressed, Applliance1 (here, T.V.) will be controlled. Now, on pressing operational keys, corresponding code will be transmitted.
 
After pressing operation, all work is done by the heart of the remote i.e. Arduino and finally IR LED plays like cherry on the cake.

Image showing Arduino based Universal IR Remote Receiver in action

Fig. 6: Image showing Arduino based Universal IR Remote Receiver in action

 

 

Project Source Code

###



#include <IRremote.h>    // Include IR remote Library
IRsend irsend;
#define select1        // Select Buttons
#define select2
#define select3
#define row1 4         // Operational Keypad Matrix (2x3)
#define row2 5
#define col1 6
#define col2 7
#define col3 8
void setup()
{
  pinMode(row1,OUTPUT);
  pinMode(row2,OUTPUT);
  pinMode(col1,INPUT);
  pinMode(col2,INPUT);
  pinMode(col3,INPUT);
  pinMode(select1,INPUT);
  pinMode(select2,INPUT);
  pinMode(select3,INPUT);
}
void loop()                                      
{
if(digitalRead(select1)==HIGH)                  // Remote 1 (TV)
{
    digitalWrite(row1,HIGH);
    digitalWrite(row2,LOW);
      if(digitalRead(col1)==HIGH)       // key1 pressed
       {
         irsend.sendNEC(0x1CE338C7,32);      //power
       }  
      else if(digitalRead(col2)==HIGH)   // key2 pressed
       {
         irsend.sendNEC(0x1CE3A857,32);      //mute
       }
       else if(digitalRead(col3)==HIGH)  // key3 pressed
       {
         irsend.sendNEC(0x1CE36897,32);      //Channel Up
       }
       else
       {
         digitalWrite(3,LOW);
       }
    delay(10);
    digitalWrite(row2,HIGH);
    digitalWrite(row1,LOW);
      if(digitalRead(col1)==HIGH)         // key4 pressed
       {
         irsend.sendNEC(0x1CE3E817,32);      //Channel Down
       }  
      else if(digitalRead(col2)==HIGH)    // key5 pressed
       {
         irsend.sendNEC(0x1CE330CF,32);      //Volume Up
       }
       else if(digitalRead(col3)==HIGH)   // key6 pressed
       {
        irsend.sendNEC(0x1CE3B04F,32);      //Volume Down
       }
       else
       {
         digitalWrite(3,LOW);
       }
    delay(10);
}
else if (digitalRead(select2)==HIGH)          // --> Remote 2 (DVD/DTH/etc)
{
 // Similar to 'if(){}' block above; copy your own remote codes;
}
else if (digitalRead(select2)==HIGH)          // --> Remote 3 (other appliances like AC)
{
  // Similar to 'if(){}' block above; copy your own remote codes;
}
else
{
  // if multiple select switches ON simultaneously --> NO operation
}
}

###

 


Circuit Diagrams

Circuit-Diagram-Arduino-Based-Universal-IR-Remote-Control-Receiver

Project Video


Filed Under: Electronic Projects
Tagged With: Arduino, ir remote, remote
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

Log in to leave a comment:

Lost your password?

Don't have an account? Register here

Submit a Guest Post

submit a guest post

EE TECH TOOLBOX

“ee
Tech Toolbox: Sensors
In this Tech Toolbox, we cover some of those technologies driving the next generation of connected systems, including ultra-low-power sensing strategies that extend node battery life, and 60 GHz CMOS radar for contactless health and presence detection.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions.

  • USB LED Night lamps
  • H-bridge power supply capacitor - heating and selection
  • Analyses and design of LDO
  • what is missing from this circuit?
  • What is the best way to do 10Mhz to 50Mhz generation?

RSS Electro-Tech-Online.com Discussions

  • What is the most suitable light source for making a book light like this?
  • USBASP Programming problems
  • My Advanced Realistic Humanoid Robots Project
  • Transistor K2 X T5
  • PIC Assembler - New IDE

Featured Tutorials

Learn - VHDL Tutorials (22 Part)

  • VHDL Tutorial – 11: Designing half and full-subtractor circuits
    VHDL Tutorial – 11: Designing half and full-subtractor circuits
  • VHDL Tutorial – 12: Design a 8-bit parity generator and circuit checker
    VHDL Tutorial – 12: Design a 8-bit parity generator and circuit checker
  • VHDL tutorial 13: Design 3×8 decoder and 8×3 encoder using VHDL
    VHDL tutorial 13: Design 3×8 decoder and 8×3 encoder using VHDL
  • VHDL Tutorial 14: Design 1×8  demultiplexer and 8×1 multiplexer using VHDL
    VHDL Tutorial 14: Design 1×8  demultiplexer and 8×1 multiplexer using VHDL
  • VHDL Tutorial 17: Design a JK flip-flop (with preset and clear) using VHDL
    VHDL Tutorial 17: Design a JK flip-flop (with preset and clear) using VHDL
  • VHDL Tutorial 18: Design a T flip-flop (with enable and an active high reset input) using VHDL
    VHDL Tutorial 18: Design a T flip-flop (with enable and an active high reset input) using VHDL
More Tutorials >

Recent Articles

  • EPC launches 3-phase GaN motor-drive boards
  • TDK launches 30 nH DC-link capacitors
  • Amphenol RF launches 40 GHz solderless connectors
  • STMicroelectronics adds 200g vibration sensor for factories
  • Smarter HVAC Climate Solutions by TE

EE ENGINEERING TRAINING DAYS

engineering
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Sensor Series
      • Engineering Deep Dives
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
  • Guest Post Guidelines
  • Advertise
  • Subscribe