IR Decoder With Arduino Uno bu Adeeb Raza

You can decode any IR-Remote Controller used for Cable TV Box, TV, AC etc. with the help of IR-Sensor type TOSP 1838 & Arduino Uno Board as given following. Click on the link http://www.areptone.in/download/tops1838.pdf

 1.  Run Arduino IDE software on PC
 2.  Click on Sketch Menu then click on include library
 3.  Click on Top  manage libraries
 4.  It will open manage libraries page
 5.  Type IR Remote and Press Enter
 6.  Here you wi

You can decode any IR-Remote Controller used for Cable TV Box, TV, AC etc. with the help of IR-Sensor type TOSP 1838 & Arduino Uno Board as given following. Click on the link http://www.areptone.in/download/tops1838.pdf

  1. Run Arduino IDE software on PC
     2.  Click on Sketch Menu then click on include library
     3.  Click on Top  manage libraries
     4.  It will open manage libraries page
     5.  Type IR Remote and Press Enter
     6.  Here you will get  IRremote  (By Cristiano Borges)
     7.  Select IRremote  (By Cristiano Borges)
     8.  Click on Install  (this will installed IR Livrary In Arduino IDE  software)
     9.  Now run  programme given here to de-code any remote & watch on Serial Monoitor
     10. more details see attached pic
     11. Press a button of Remote & see the Decode value on Serial monitor

1#include <IRremote.h>

int IRpin = 12;

IRrecv irrecv(IRpin);

decode_results results;

void setup()

{

  Serial.begin(9600);

  irrecv.enableIRIn();                 // Start the receiver 

  pinMode(2,OUTPUT);

  pinMode(3,OUTPUT);

  pinMode(4,OUTPUT);

  pinMode(5,OUTPUT);

  pinMode(6,OUTPUT);

  pinMode(7,OUTPUT);

  pinMode(8,OUTPUT);

  pinMode(9,OUTPUT);

  pinMode(13,OUTPUT);

  void loop()

{

 if (irrecv.decode(&results))

 {

 Serial.println(results.value);       // Print the Serial ‘results.value’

 delay(10); 

 if(results.value==2160019894)   // Key 1 = 2160030094 = ON’

 digitalWrite(2,HIGH);

 if(results.value==2160023974)   // Volome Down = 2160013774 = OFF’

 digitalWrite(2,LOW);

 irrecv.resume();                            // Receive the next value

 }

}

\

Thanks

Adeeb Raza

About adeebraza1236

I am an electronic instrumentation engineer by profession but I am working as a design engineer. I can design electronic hardware interface circuits for computer based security system, Computer based industrial control system for automation and process control Etc. My Interests: Electronics Circuit designing with PCB Designing, Computer software development using VB & C , PC based security system, Designing LED Lights, UPS, Inverter Etc
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s