You are currently viewing Remote Control Home Appliances System

Remote Control Home Appliances System

  • Post author:
  • Reading time:2 mins read

Remote Controlled for Home Appliances can be connect to any home appliances (lamp, fan, radio, etc) to make the appliance turn on/off from a TV, VCD or DVD remote control. The circuit can be activated from up to 8 meters. In the kit Remote Controlled for Home Appliance the 38 kHz infrared (IR) rays generated by the remote control are received by IR receiver module TSOP1738 of the circuit.

Pin 1 of TSOP1738 is connected to ground, pin 2 is connected to the power supply through resistor and the output is taken from pin 3. The signal output is fed to the relay driver which in turn drives the relay unit. The appliance to be controlled is connected between the pole of the relay and neutral terminal of mains .It gets connected to live terminal of AC mains via normally opened (N/O) contact when the relay energizes.

Components

  • Arduino Uno,
  • Leds,
  • IR Receiver,
  • MP3 Player IR Remote,
  • 5v Relay Module,
  • Wires,
  • Bulb Holder x 3,
  • 220v LED Bulb X 2,
  • 5v 2Amp Power Adapter

Diagram

 

Codes

#include <IRremote.h>
int RECV_PIN = 3; //Signal Pin
int output1 = 8;
int output2 = 9;
int output3 = 10;
int output4 = 11;
int output5 = 12;

int itsONled[] = {0,0,0,0,0};
#define Code1 20655  //Hex code from remote
#define Code2 55335
#define Code3 63495
#define Code4 12495
#define Code5 45135





IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9600); // 
irrecv.enableIRIn(); // 
pinMode(output1, OUTPUT);
pinMode(output2, OUTPUT);
pinMode(output3, OUTPUT);
pinMode(output4, OUTPUT);
pinMode(output5, OUTPUT);

}
void loop() {
if (irrecv.decode(&results)) {
unsigned int value = results.value;
switch(value) {
case Code1:
if(itsONled[1] == 1) { // 
digitalWrite(output1, LOW); // 
itsONled[1] = 0; // 
} else { // 
digitalWrite(output1, HIGH); // 
itsONled[1] = 1; // 
}
break; 
case Code2:
if(itsONled[2] == 1) {
digitalWrite(output2, LOW);
itsONled[2] = 0;
} else {
digitalWrite(output2, HIGH);
itsONled[2] = 1;
}
break;
case Code3:
if(itsONled[3] == 1) {
digitalWrite(output3, LOW);
itsONled[3] = 0;
} else {
digitalWrite(output3, HIGH);
itsONled[3] = 1;
}
break;
case Code4:
if(itsONled[4] == 1) {
digitalWrite(output4, LOW);
itsONled[4] = 0;
} else {
digitalWrite(output4, HIGH);
itsONled[4] = 1;
}
break;

case Code5:
if(itsONled[5] == 1) {
digitalWrite(output5, LOW);
itsONled[5] = 0;
} else {
digitalWrite(output5, HIGH);
itsONled[5] = 1;
}
break;
}
Serial.println(value); // you can comment this line
irrecv.resume(); // Receive the next value
}
}