Things used in this project

Hardware components:
A000066 iso both
Arduino UNO & Genuino UNO
×1
IR receiver (generic)
×1
IR Remote
Anyone or the one which you want to use in your project.
×1
Software apps and online services:
Ide web
Arduino IDE

Schematics

capture_CQhcYyINfc.PNG
Capture cqhcyyinfc

Code

Code for finding the IR codesC/C++
Remember to install the IRremote library.
#include <IRremote.h>      //including infrared remote header file

int RECV_PIN = 11;        // the pin where you connect the output pin of IR sensor 
IRrecv irrecv(RECV_PIN);
decode_results results;
 
void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn();
}
 
void loop() 
{
  if (irrecv.decode(&results)) 
  	{
    int value = results.value;
    Serial.println(" ");
    Serial.print("Code: ");
    Serial.println(results.value); //prints the value a a button press
    Serial.println(" ");
    irrecv.resume();       				// Receive the next value
    Serial.println("*****************");
  		}
}

Credits

2017 22 08 00 15 50 ija7bdjo2o
Techduino
5 projects • 54 followers
Pursuing B.Tech. in CSE from SRM Institute of Science and Technology. A tech enthusiast and Arduino lover! 'Techduino' is my pen name.
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog