anshulpareek
Published © GPL3+

Control Home Appliances Through Web Or Mobile

Now Control Home Appliances using Web and Mobile from anywhere.

BeginnerFull instructions provided18,904

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Jumper wires (generic)
Jumper wires (generic)
×4
Relay (generic)
×1

Software apps and online services

gadgetProgrammers web api services
Using web services and web portal to on off switch
Processing Direct Exe file
Please run Exe file for windows only for now

Story

Read more

Custom parts and enclosures

circuitdiagram_tRPxERkCY3.tiff

Schematics

Pin Diagram

Pin connections with Arduino to Relay

Ciruit Diagram of Lamp With Relay

Code

Arduino Code

Arduino
Please paste this code in arduino editor
#define RELAY1  7    
char readSerial;                    
void setup()
{
  Serial.begin(9600);
  pinMode(RELAY1, OUTPUT);
}
void loop(){
  char readSerial;
 // delay(1000);
  if(Serial.available()>0){
      readSerial = Serial.read();
      delay(100);
      Serial.println(readSerial);
      if(readSerial == '1'){
        //Serial.println("ASDF");
        digitalWrite(RELAY1,HIGH);
      }
      if(readSerial == '0'){
        digitalWrite(RELAY1,LOW);;
      }
  }
   
}

Credits

anshulpareek

anshulpareek

14 projects • 93 followers
Working as a IOT And Sr. Software Engineer having interest in developing gadgets for general purpose.

Comments