Due to the infrared receiver (IR receiver) and remote control, become easy to control any device remotely. So that the device can be turned ON and OFF remotely. It has also become very easy to control the functions of the devices only through the remote control without the need to approach or touch the device.
In this post we will Make arduino project To Control Any Device by Remote Control.
Electronic components needed :
- IR receiver
- Remote Control
- 2 Resistance ( 220 Ohm )
- 2 Led ( green and red )
- Relay
- Electrical wires
- Arduino UNO
- Breadboard
- Any electric device ( work between 1 V – 250 V )
Control Any Device by Remote Control, Arduino Project with code
Schema of the circuit :

Arduino programming code :
#include <IRremote.h> // By www.andprof.com int RECV_PIN = 8; // Connect IR reciever to this pin int relay = 2; // Connect Relay to this pin int ledON = 3; // Connect led green to this pin int ledOF = 4; // Connect led red to this pin int itsONled[] = {0,1,0,0}; #define code1 2295 // Code revieved from your selected button IRrecv irrecv(RECV_PIN); decode_results results; void setup() { Serial.begin(9600); // Start the receiver irrecv.enableIRIn(); pinMode(relay, OUTPUT); pinMode(ledON, OUTPUT); pinMode(ledOF, OUTPUT); } void loop() { if (irrecv.decode(&results)) { unsigned int value = results.value; switch(value) { case code1: if(itsONled[1] == 1) { digitalWrite(relay, LOW); digitalWrite(ledON, LOW); digitalWrite(ledOF, HIGH); itsONled[1] = 0; } else { digitalWrite(relay, HIGH); digitalWrite(ledON, HIGH); digitalWrite(ledOF, LOW); itsONled[1] = 1; } break; } Serial.println(value); // you can ommit this line irrecv.resume(); // Receive the next value } }
Explainer video :
Discover also :
Clap Switch with Arduino and Sound Sensor
How to make fire detector using arduino
How to control LED lights with Arduino
How to use digit 7-Segment LED Display with Arduino