ENERGEN
Published

IR Receiver & Remote with Arduino UNO

How to use IR Receiver with IR Remote

IntermediateFull instructions provided5,744
IR Receiver & Remote with Arduino UNO

Things used in this project

Story

Read more

Schematics

Project schematics

Code

Arduino ide code

Arduino
you can use this and learn about ir receiver control.
#include <IRremote.h>;

IRrecv energen(11);
decode_results results;



void setup() {
  // put your setup code here, to run once:
 pinMode(5,OUTPUT);
 pinMode(6,OUTPUT);
 pinMode(7,OUTPUT);
 Serial.begin(9600);
energen.enableIRIn();
}

void loop() {
  // put your main code here, to run repeatedly:
if(energen.decode(&results)){
  Serial.println(results.value,DEC);
  energen.resume();
}
delay(100);
long val = results.value
if(val==16236607){
  digitalWrite(5,HIGH);
  digitalWrite(6,HIGH);
  digitalWrite(7,HIGH);
}

}

Credits

ENERGEN

ENERGEN

17 projects • 9 followers
Youtube creator

Comments