IR REMOTE DECODER USING ARDUINO.

30,927

40

18

Introduction: IR REMOTE DECODER USING ARDUINO.

About: I am a Programmer, Hacker, Maker and Technology enthusiast.

This is another user friendly tutorial for making a very simple IR Remote decoder using an Arduino and IR receiver. This tutorial will cover everything from setting up the software to using the IR Receiver and decoding the signals . These signals can be used later for multiple projects including IR Remote control Robot , Home automation and similar IR controlled projects.

If you are into robotics and want to learn everything from beginning check out this E-Course.

Step 1: Gathering Materials.

Step 2: Making Connections.

First check the PinOut diagram of the IR receiver you have. IR receivers have 3 pins, +ve , GND and Out. Before using any receive make sure you know these pins. If connected improperly the setup won't work and you will find it difficult to figure it out.

Make the following connections :-

1. Connect +ve pin of receiver to 3.3v of Arduino.

2. GND pin of receiver to GND of Arduino.

3. Out pin of receiver to Digital pin 2 of Arduino.

connect the arduino board to computer as we need to upload the code and monitor the IR pulses.

Step 3: Setting Up the IDE.

For using IR applications first you need to add an IR library to your IDE or our program won't work.

Download IR Library.

Extract the downloaded file.

Copy the extracted folder.

Goto >> C drive >> Programs Files (x86) >> Arduino >> Libraries.

Paste the folder in Libraries.

That's it IDE is ready to work with our code.

Step 4: Uploading Code & Testing.

Download the Code I have provided and upload it to Arduino Board.

Once the code is uploaded, Goto tools and select serial monitor.

The ardunio should restart/rest and you are ready to collect the codes of your remote. Just point the remote towards the IR receiver and press the button you have to decode the signal of. A hexadecimal value will appear on the screen , these are the IR codes you need to note which will be needed for future IR remote operated projects.

Check out this tutorial to learn how to use the IR codes to control LEDs.

If you find anything difficult or come across any problem, Feel free to comment.

3 People Made This Project!

Recommendations

  • STEM Contest

    STEM Contest
  • Role Playing Game Challenge

    Role Playing Game Challenge
  • CNC Contest

    CNC Contest

18 Comments

0
saadland
saadland

1 year ago

Hello, I only got arduino Nano, can I use it to decode code of a TV remote??
Thx

0
TheMaker09
TheMaker09

Reply 6 days ago

Yes. You definitely can.

0
yassuu.2001
yassuu.2001

Question 2 months ago

I've done the same steps but I get "0" in the serial monitor for every button, I've also tried other remote controls but still the same. Please help me out

0
Harsh Dethe
Harsh Dethe

Reply 2 months ago

Maybe your remote is encoded differently.

0
veeradinesh3
veeradinesh3

7 months ago

help me in this error

Screenshot (326).png
0
Harsh Dethe
Harsh Dethe

Reply 7 months ago

This tutorial is clearly for Arduino and you are tyring to uplaod it to ESP8266 Board.

0
veeradinesh3
veeradinesh3

Reply 5 months ago

yup sloved it , due to some issue it change automatically to ESP8266

Thanks

0
veeradinesh3
veeradinesh3

7 months ago

can you help me in the code

0
Abdullah-94
Abdullah-94

2 years ago

Hi WolfxPac,
my project is to control the tv via Arduino so I did register the remote button and program it to Arduino, some button works well when I send it from Arduino but the problem is the other button for example (source button) when I send it from Arduino it turns off the tv, and the (Vup button) shows the source window on the tv.

0
Harsh Dethe
Harsh Dethe

Reply 2 years ago

Recheck if you are sending the correct values, any miss print can give such errors

1
bik25
bik25

2 years ago

hi,
I built it and I get the readings.
But!
What I did was changing the temperature only between 21 and 22 degrees (so every pair should be the same).
Yet I get the following values:
BD89909B
640935FA
80A7AC15
E421EC39
9954A5EF
42882DBA
712FAF2F
656A2AC6
967F9864

Could it be that my IR reader is not good? ( IR Receiver Module 38 kHz TSOP4838 DIP-3)

thanks

0
Harsh Dethe
Harsh Dethe

Reply 2 years ago

I don't understand what you mean by changing Temperature.
This is not a Temp sensor. Its IR receiver.

0
bik25
bik25

Reply 2 years ago

Hi,

you are right in that this is an IR receiver.

Yet, as far as I know when I change the settings, all the information is sent to the AC. I only changed the temperature setting (by 1 degree up or down) so when I use only two temperatures without changing anything else according to my understanding I should have two kinds of signals, one for each temperature. I did not change any other settings because I first wanted to check the reproducibility of my results.

0
Harsh Dethe
Harsh Dethe

Reply 2 years ago

You won't get different values by this. You will get different values when the temperatures goes to either high than the value you set or low. It will not give two results. Its either this or that

0
Harsh Dethe
Harsh Dethe

Reply 2 years ago

Very nice. I voted for you.

0
Syed RafayH
Syed RafayH

2 years ago on Step 4

how can we transfer these HEX codes to arduino digital i/o pins

0
Harsh Dethe
Harsh Dethe

Reply 2 years ago

Switch cases or if else ladder. There are tutorials available on this very site. I will write a tutorial related to it.