Universal Remote Control

The transmitter in the remote control handset sends out a stream of pulses of infrared light when the user presses a button on the handset. A transmitter is often a light emitting diode (LED) which is built into the pointing end of the remote control handset. The infrared light pulses form a pattern unique to that button. The receiver in the device recognizes the pattern and causes the device to respond accordingly (Wikipedia).

Universal Remote Control

So we have to know that unique pattern of each button.

Simply, you have to download the IR library for Arduino.

https://github.com/shirriff/Arduino-IRremote

In the examples of that library, you can find IRrecvDump example. This code used to encode data from remote control.

You have to wire the IR receiver. As shown in its figure:

  • 1- Ground
  • 2- 5V
  • 3- Pin 11

After uploading this code to the Arduino open the serial monitor and press any button on your TV remote.

As shown in the image below, you can find the hex code that refer to each button of the remote control. Write down these hex numbers corresponding to its function (e.g. 20DFC03F ,32 refers to power button).

Note, If you get “unknown encoding”, press the button again.

Now, we have to upload the code that is used to transmit the commands to our devices. You can find the code here but you will make a small change depends on your remote.

https://codebender.cc/sketch:55268

All you have to do here is to replace by hex values as 0x20DF10EF by the values you have got from the power button, volume up/down buttons and any other button you want.

Since 1Sheeld mobile application doesn’t have a remote control interface, I used the Keypad shield as the remote controller, you can choose the Keyboard shield as well for much more devices.

Read More:  Universal Remote Control

 


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top