Code And Circuit Diagram For Home Automation System Using Arduino




** if you want to buy the entire package with a re-programmable Arduino Click Here **




1) Home Automation System

CODE :-

String inputs;
#define relay1 2 //Connect relay1 to pin 9
#define relay2 3 //Connect relay2 to pin 8
#define relay3 4 //Connect relay3 to pin 7
#define relay4 5 //Connect relay4 to pin 6
#define relay5 6 //Connect relay5 to pin 5
#define relay6 7 //Connect relay6 to pin 4
#define relay7 8 //Connect relay7 to pin 3
#define relay8 9 //Connect relay8 to pin 2
void setup()
{
Serial.begin(9600); //Set rate for communicating with phone
pinMode(relay1, OUTPUT); //Set relay1 as an output
pinMode(relay2, OUTPUT); //Set relay2 as an output
pinMode(relay3, OUTPUT); //Set relay1 as an output
pinMode(relay4, OUTPUT); //Set relay2 as an output
pinMode(relay5, OUTPUT); //Set relay1 as an output
pinMode(relay6, OUTPUT); //Set relay2 as an output
pinMode(relay7, OUTPUT); //Set relay1 as an output
pinMode(relay8, OUTPUT); //Set relay2 as an output
digitalWrite(relay1, LOW); //Switch relay1 off
digitalWrite(relay2, LOW); //Swtich relay2 off
digitalWrite(relay3, LOW); //Switch relay1 off
digitalWrite(relay4, LOW); //Swtich relay2 off
digitalWrite(relay5, LOW); //Switch relay1 off
digitalWrite(relay6, LOW); //Swtich relay2 off
digitalWrite(relay7, LOW); //Switch relay1 off
digitalWrite(relay8, LOW); //Swtich relay2 off
}
void loop()
{
while(Serial.available()) //Check if there are available bytes to read
{
delay(10); //Delay to make it stable
char c = Serial.read(); //Conduct a serial read
if (c == '#'){
break; //Stop the loop once # is detected after a word
}
inputs += c; //Means inputs = inputs + c
}
if (inputs.length() >0)
{
Serial.println(inputs);

if(inputs == "A")
{
digitalWrite(relay1, LOW);
}
else if(inputs == "a")
{
digitalWrite(relay1, HIGH);
}
else if(inputs == "B")
{
digitalWrite(relay2, LOW);
}
else if(inputs == "b")
{
digitalWrite(relay2, HIGH);
}
else if(inputs == "C")
{
digitalWrite(relay3, LOW);
}
else if(inputs == "c")
{
digitalWrite(relay3, HIGH);
}
else if(inputs == "D")
{
digitalWrite(relay4, LOW);
}
else if(inputs == "d")
{
digitalWrite(relay4, HIGH);
}
else if(inputs == "E")
{
digitalWrite(relay5, LOW);
}
else if(inputs == "e")
{
digitalWrite(relay5, HIGH);
}
else if(inputs == "F")
{
digitalWrite(relay6, LOW);
}
else if(inputs == "f")
{
digitalWrite(relay6, HIGH);
}
else if(inputs == "G")
{
digitalWrite(relay7, LOW);
}
else if(inputs == "g")
{
digitalWrite(relay7, HIGH);
}
else if(inputs == "H")
{
digitalWrite(relay8, LOW);
}
else if(inputs == "h")
{
digitalWrite(relay8, HIGH);
}
inputs="";
}
}




*** IF YOU ARE GETTING A STRAY ERROR DOWNLOAD THE CODE FROM HERE ***

To Download The Bluetooth Application For Your Android CLICK HERE

 

95 thoughts on “Code And Circuit Diagram For Home Automation System Using Arduino

  • February 2, 2018 at 6:02 am
    Permalink

    “exit status 1
    error stray 342 ”
    ye error aa rha hai.kaise sahi hoga bhai ye.

    Reply
    • February 2, 2018 at 7:07 am
      Permalink

      Remove Bluetooth and try again

      Reply
      • February 3, 2018 at 6:55 am
        Permalink

        same error is occuring

        Reply
        • February 3, 2018 at 7:08 am
          Permalink

          Bro check below the code I’ve inserted a link

          Reply
          • February 3, 2018 at 7:15 am
            Permalink

            this code is running bro
            thanks 🙂

      • March 23, 2018 at 1:49 pm
        Permalink

        how to remove a bluetooth? same error

        Reply
        • March 23, 2018 at 2:01 pm
          Permalink

          oooooooo the code was working 🙂

          Reply
          • March 26, 2018 at 2:04 am
            Permalink

            What is the error ?

          • March 26, 2018 at 2:05 am
            Permalink

            Ohhh sorry didn’t read your messege . Oooos

          • April 4, 2018 at 5:38 pm
            Permalink

            how

      • March 28, 2018 at 5:43 am
        Permalink

        “exit status 1
        error stray 342 ”
        ye error aa rha hai.kaise sahi hoga bhai ye.

        Reply
        • April 3, 2018 at 2:15 am
          Permalink

          Check below the code there’s is a separate link for this error

          Reply
  • February 5, 2018 at 7:07 pm
    Permalink

    stray’/342′ in program
    Error

    Reply
    • February 5, 2018 at 11:43 pm
      Permalink

      Visit the link below the code brother

      Reply
  • February 10, 2018 at 6:03 am
    Permalink

    coming erorr message like that
    Sketch uses 3932 bytes (12%) of program storage space. Maximum is 32256 bytes.
    Global variables use 236 bytes (11%) of dynamic memory, leaving 1812 bytes for local variables. Maximum is 2048 bytes.

    Reply
    • February 10, 2018 at 6:16 am
      Permalink

      Remove Bluetooth module and try

      Reply
      • February 10, 2018 at 9:23 am
        Permalink

        Sir… how to protect it by password so that no unauthorised person can control it…

        Reply
        • February 10, 2018 at 3:13 pm
          Permalink

          Wow ! Need to check , great question buddy

          Reply
        • February 10, 2018 at 3:21 pm
          Permalink

          You need to change it using at commands

          Reply
      • March 27, 2018 at 10:36 am
        Permalink

        BRO EK NAYA PROJECT KE BARE ME VIDEO TAYAR KARO
        SUB :- PLAY MUSIC VIA ONLINE USING AURDUINO WITH VOICE CONTROLL

        Reply
    • April 13, 2018 at 9:56 am
      Permalink

      bro ye error kase remove kiya

      Reply
  • February 10, 2018 at 11:54 am
    Permalink

    Bro the programme is saying can’t upload to board plzzzzzzz help me plzzzzzzz and one more thing is that I am using 8 channel relay board of 8 channel but it is having pins like in1, in2 and so on I the relay board correct
    Love ur videos

    Reply
    • February 10, 2018 at 3:12 pm
      Permalink

      What is the error?

      Reply
    • April 7, 2018 at 1:52 am
      Permalink

      Hey shree is ur problem resolved becoz I am facing the same problem “can’t be upload to the bord” plzz can you help me out plzz its urgent

      Reply
      • April 7, 2018 at 2:02 am
        Permalink

        Try selecting the right com

        Reply
  • February 11, 2018 at 4:30 am
    Permalink

    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xf2
    avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
    Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

    I am facing this error plzzzz hepl me out harsh and I want to know that i am using a relay board which is having inputs like in1,in2 etc Does the board correct.
    plzzzzz reply me

    Reply
    • February 11, 2018 at 4:52 am
      Permalink

      Try removing the Bluetooth and try again

      Reply
      • April 30, 2018 at 8:54 pm
        Permalink

        Sketch uses 3932 bytes (12%) of program storage space. Maximum is 32256 bytes.
        Global variables use 236 bytes (11%) of dynamic memory, leaving 1812 bytes for local variables. Maximum is 2048 bytes.
        avrdude: stk500_recv(): programmer is not responding
        avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x30
        avrdude: stk500_recv(): programmer is not responding
        avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x30
        avrdude: stk500_recv(): programmer is not responding
        avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x30
        avrdude: stk500_recv(): programmer is not responding
        avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x30
        avrdude: stk500_recv(): programmer is not responding
        avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x30
        avrdude: stk500_recv(): programmer is not responding
        avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x30
        avrdude: stk500_recv(): programmer is not responding
        avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x30
        avrdude: stk500_recv(): programmer is not responding
        avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x30
        avrdude: stk500_recv(): programmer is not responding
        avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x30
        avrdude: stk500_recv(): programmer is not responding
        avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x30
        Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
        THE CODE IS NOT WORKING BROI

        Reply
  • February 14, 2018 at 5:18 am
    Permalink

    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xf2
    avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
    avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
    Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

    This is the error

    Reply
    • February 14, 2018 at 5:21 am
      Permalink

      Did you tried removing the Bluetooth?

      Reply
  • February 20, 2018 at 5:46 am
    Permalink

    bhaeeeeeeeeeeee circuit diagram to sahi se bana len
    its hard to understand.
    ._.

    Reply
  • February 20, 2018 at 6:40 am
    Permalink

    Hello Harsh,

    I am just trying to compile the above code but it throws error, I tried to resolve syntax errors like ” & ‘ and tried to compile it but it throws below error;
    Arduino: 1.8.5 (Windows 10), Board: “Arduino/Genuino Uno”

    C:\Users\y510\AppData\Local\Temp\ccaU67iB.ltrans0.ltrans.o: In function `_GLOBAL__sub_D_inputs’:

    C:\Users\y510\Desktop\Ardiuno\sketch_feb20a/sketch_feb20a.ino:1: undefined reference to `String::~String()’

    C:\Users\y510\AppData\Local\Temp\ccaU67iB.ltrans0.ltrans.o: In function `_GLOBAL__sub_I_inputs’:

    C:\Users\y510\Desktop\Ardiuno\sketch_feb20a/sketch_feb20a.ino:1: undefined reference to `String::String(char const*)’

    c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/lib/avr5/crtatmega328p.o:(.init9+0x0): undefined reference to `main’

    collect2.exe: error: ld returned 1 exit status

    exit status 1
    Error compiling for board Arduino/Genuino Uno.

    This report would have more information with
    “Show verbose output during compilation”
    option enabled in File -> Preferences.

    Could you please look into this and help me out.

    Regards,
    Rahul

    Reply
    • February 20, 2018 at 7:10 am
      Permalink

      The issue has been resolved now and IDE able to compile the program, now I facing issue while upload it throws error;

      avrdude: ser_open(): can’t open device “\\.\COM1”: The system cannot find the file specified.

      Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

      Please help!

      Regards,
      Rahul

      Reply
      • February 20, 2018 at 7:14 am
        Permalink

        Resolved, you need to set Port in Tools–>Port.

        Regards,
        Rahul

        Reply
      • February 20, 2018 at 10:39 am
        Permalink

        Port problem… hehe glad to hear that you solved it yourself

        Reply
  • February 20, 2018 at 2:59 pm
    Permalink

    Hi,

    Good that you noticed my comment! 🙂

    One more question.

    Everything is perfectly setup for me but still unable to switch on and switch off light, could you please tell me what would the cause? And specifically why you used Device 7 button in Arduino Bluetooth Controller, any reason?

    Regards,
    Rahul

    Reply
  • February 21, 2018 at 12:01 pm
    Permalink

    bro uploading error aa raha hai

    Reply
    • February 21, 2018 at 12:02 pm
      Permalink

      Arduino: 1.8.5 (Windows 7), Board: “Arduino/Genuino Uno”

      Sketch uses 3932 bytes (12%) of program storage space. Maximum is 32256 bytes.
      Global variables use 236 bytes (11%) of dynamic memory, leaving 1812 bytes for local variables. Maximum is 2048 bytes.
      avrdude: ser_open(): can’t open device “\\.\COM1”: The system cannot find the file specified.

      Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

      This report would have more information with
      “Show verbose output during compilation”
      option enabled in File -> Preferences.

      Reply
  • March 2, 2018 at 4:55 am
    Permalink

    give me a andriod application

    Reply
  • March 2, 2018 at 2:03 pm
    Permalink

    Bhai agar meko isme kisi ek port pe dc motor lgana ho..and to programme that port to operate dc motor in both direction..to us port pe programming kaise hogi..is it possible to programme that particular port as our requirement(in the same programme)?

    Reply
      • March 4, 2018 at 6:35 am
        Permalink

        Glad to hear that

        Reply
    • March 4, 2018 at 6:35 am
      Permalink

      That’s interesting… need to check idk this rn will let you know

      Reply
      • March 4, 2018 at 5:41 pm
        Permalink

        Nhi ho payea sirf ek side run kregi bcz ek relay pe ek switch hai..we need two differ swlitches..instead of program just apply simpl logic changing the polarity of dc motor changes the direction of rotation..😉two battries use hogi or ek motor ko dono se connection dena..bas polarity change krna

        Reply
  • March 4, 2018 at 5:06 am
    Permalink

    What if i have to on/off a light both in automatic (using bluetooth) and manual(using switch) switching?

    Reply
    • March 4, 2018 at 6:35 am
      Permalink

      You can turn it off from switch not sure about turning it on..

      Reply
  • March 4, 2018 at 6:56 am
    Permalink

    Sir jab m arduino ko program krny k bad suply k sath cnect krta hun..
    To arduino terminals always onn.. (1)
    So relys b onn e rehti hen… blutooth is also cnect to android… butt never work.. lamps always onn… so help me plzz pllzz…

    Reply
    • March 4, 2018 at 7:33 am
      Permalink

      Contact me on my Facebook Id I’ll help

      Reply
    • March 4, 2018 at 5:33 pm
      Permalink

      Jab relay on ho rha tik tik sound aa rhi hai ya nhi?if not then check ur jumper conection on the end of module u can see 3 pins on board..i have been through same problm

      Reply
      • March 5, 2018 at 4:07 am
        Permalink

        Jab arduino on krta hun to sath hi relays b on ho jati hen.. phr arduino ko bnd krny k bad hi band hoti hen.. otherwise chlti rehti hen.

        Reply
      • March 5, 2018 at 4:08 am
        Permalink

        Jab arduino on krta hun to sath hi relays b on ho jati hen or relys k on hony ki sound b ati h.. phr arduino ko bnd krny k bad hi relays band hoti hen.. otherwise chlti rehti hen.

        Reply
  • March 7, 2018 at 5:36 pm
    Permalink

    i cant able to upload programme showing some error

    Reply
    • March 8, 2018 at 2:50 am
      Permalink

      What is the error ?

      Reply
  • March 11, 2018 at 1:22 pm
    Permalink

    If we turn off the bluetooth from our phone will the bulb still glow ….
    and apart from the work are you a web desighner too i like your work i am also an IT student..

    Reply
    • March 13, 2018 at 1:45 am
      Permalink

      It will remain in the last position…. ohh you tooo it ? That’s nice !

      Reply
  • March 12, 2018 at 1:16 pm
    Permalink

    Bluetooth module asking pairing key

    Reply
    • March 13, 2018 at 1:45 am
      Permalink

      1234 or 0000

      Reply
    • March 13, 2018 at 1:45 am
      Permalink

      Glad to hear that

      Reply
  • March 13, 2018 at 2:35 pm
    Permalink

    hi harsh,
    appreciate your work a lot….i’ll definitely try making it…i had a doubt that whether we could control it using wifi or not?
    thanks for your support.

    Reply
    • March 14, 2018 at 6:50 am
      Permalink

      We can do it via wifi as well but it’ll need different hardwares

      Reply
  • March 15, 2018 at 5:22 am
    Permalink

    application use in this project please?

    Reply
    • March 21, 2018 at 3:54 am
      Permalink

      Can use it at our homes

      Reply
  • March 18, 2018 at 1:20 pm
    Permalink

    Arduino: 1.8.5 (Windows 7), Board: “Arduino/Genuino Uno”

    new:36: error: stray ‘\342’ in program

    if (c == ‘#’){

    ^

    new:36: error: stray ‘\200’ in program

    new:36: error: stray ‘\230’ in program

    new:36: error: stray ‘#’ in program

    if (c == ‘#’){

    ^

    new:36: error: stray ‘\342’ in program

    if (c == ‘#’){

    ^

    new:36: error: stray ‘\200’ in program

    new:36: error: stray ‘\231’ in program

    new:45: error: stray ‘\342’ in program

    if(inputs == “A�)

    ^

    new:45: error: stray ‘\200’ in program

    new:45: error: stray ‘\234’ in program

    new:45: error: stray ‘\342’ in program

    new:45: error: stray ‘\200’ in program

    new:45: error: stray ‘\235’ in program

    new:49: error: stray ‘\342’ in program

    else if(inputs == “a�)

    ^

    new:49: error: stray ‘\200’ in program

    new:49: error: stray ‘\234’ in program

    new:49: error: stray ‘\342’ in program

    new:49: error: stray ‘\200’ in program

    new:49: error: stray ‘\235’ in program

    new:53: error: stray ‘\342’ in program

    else if(inputs == “B�)

    ^

    new:53: error: stray ‘\200’ in program

    new:53: error: stray ‘\234’ in program

    new:53: error: stray ‘\342’ in program

    new:53: error: stray ‘\200’ in program

    new:53: error: stray ‘\235’ in program

    new:57: error: stray ‘\342’ in program

    else if(inputs == “b�)

    ^

    new:57: error: stray ‘\200’ in program

    new:57: error: stray ‘\234’ in program

    new:57: error: stray ‘\342’ in program

    new:57: error: stray ‘\200’ in program

    new:57: error: stray ‘\235’ in program

    new:61: error: stray ‘\342’ in program

    else if(inputs == “C�)

    ^

    new:61: error: stray ‘\200’ in program

    new:61: error: stray ‘\234’ in program

    new:61: error: stray ‘\342’ in program

    new:61: error: stray ‘\200’ in program

    new:61: error: stray ‘\235’ in program

    new:65: error: stray ‘\342’ in program

    else if(inputs == “c�)

    ^

    new:65: error: stray ‘\200’ in program

    new:65: error: stray ‘\234’ in program

    new:65: error: stray ‘\342’ in program

    new:65: error: stray ‘\200’ in program

    new:65: error: stray ‘\235’ in program

    new:69: error: stray ‘\342’ in program

    else if(inputs == “D�)

    ^

    new:69: error: stray ‘\200’ in program

    new:69: error: stray ‘\234’ in program

    new:69: error: stray ‘\342’ in program

    new:69: error: stray ‘\200’ in program

    new:69: error: stray ‘\235’ in program

    new:73: error: stray ‘\342’ in program

    else if(inputs == “d�)

    ^

    new:73: error: stray ‘\200’ in program

    new:73: error: stray ‘\234’ in program

    new:73: error: stray ‘\342’ in program

    new:73: error: stray ‘\200’ in program

    new:73: error: stray ‘\235’ in program

    new:77: error: stray ‘\342’ in program

    else if(inputs == “E�)

    ^

    new:77: error: stray ‘\200’ in program

    new:77: error: stray ‘\234’ in program

    new:77: error: stray ‘\342’ in program

    new:77: error: stray ‘\200’ in program

    new:77: error: stray ‘\235’ in program

    new:81: error: stray ‘\342’ in program

    else if(inputs == “e�)

    ^

    new:81: error: stray ‘\200’ in program

    new:81: error: stray ‘\234’ in program

    new:81: error: stray ‘\342’ in program

    new:81: error: stray ‘\200’ in program

    new:81: error: stray ‘\235’ in program

    new:85: error: stray ‘\342’ in program

    else if(inputs == “F�)

    ^

    new:85: error: stray ‘\200’ in program

    new:85: error: stray ‘\234’ in program

    new:85: error: stray ‘\342’ in program

    new:85: error: stray ‘\200’ in program

    new:85: error: stray ‘\235’ in program

    new:89: error: stray ‘\342’ in program

    else if(inputs == “f�)

    ^

    new:89: error: stray ‘\200’ in program

    new:89: error: stray ‘\234’ in program

    new:89: error: stray ‘\342’ in program

    new:89: error: stray ‘\200’ in program

    new:89: error: stray ‘\235’ in program

    new:93: error: stray ‘\342’ in program

    else if(inputs == “G�)

    ^

    new:93: error: stray ‘\200’ in program

    new:93: error: stray ‘\234’ in program

    new:93: error: stray ‘\342’ in program

    new:93: error: stray ‘\200’ in program

    new:93: error: stray ‘\235’ in program

    new:97: error: stray ‘\342’ in program

    else if(inputs == “g�)

    ^

    new:97: error: stray ‘\200’ in program

    new:97: error: stray ‘\234’ in program

    new:97: error: stray ‘\342’ in program

    new:97: error: stray ‘\200’ in program

    new:97: error: stray ‘\235’ in program

    new:101: error: stray ‘\342’ in program

    else if(inputs == “H�)

    ^

    new:101: error: stray ‘\200’ in program

    new:101: error: stray ‘\234’ in program

    new:101: error: stray ‘\342’ in program

    new:101: error: stray ‘\200’ in program

    new:101: error: stray ‘\235’ in program

    new:105: error: stray ‘\342’ in program

    else if(inputs == “h�)

    ^

    new:105: error: stray ‘\200’ in program

    new:105: error: stray ‘\234’ in program

    new:105: error: stray ‘\342’ in program

    new:105: error: stray ‘\200’ in program

    new:105: error: stray ‘\235’ in program

    new:109: error: stray ‘\342’ in program

    inputs=��;

    ^

    new:109: error: stray ‘\200’ in program

    new:109: error: stray ‘\235’ in program

    new:109: error: stray ‘\342’ in program

    new:109: error: stray ‘\200’ in program

    new:109: error: stray ‘\235’ in program

    C:\Users\Awais\Desktop\new\new.ino: In function ‘void loop()’:

    new:36: error: expected primary-expression before ‘)’ token

    if (c == ‘#’){

    ^

    new:45: error: ‘A’ was not declared in this scope

    if(inputs == “A�)

    ^

    new:49: error: ‘a’ was not declared in this scope

    else if(inputs == “a�)

    ^

    new:53: error: ‘B’ was not declared in this scope

    else if(inputs == “B�)

    ^

    new:57: error: ‘b’ was not declared in this scope

    else if(inputs == “b�)

    ^

    new:61: error: ‘C’ was not declared in this scope

    else if(inputs == “C�)

    ^

    new:65: error: ‘c’ was not declared in this scope

    else if(inputs == “c�)

    ^

    new:69: error: ‘D’ was not declared in this scope

    else if(inputs == “D�)

    ^

    new:73: error: ‘d’ was not declared in this scope

    else if(inputs == “d�)

    ^

    new:77: error: ‘E’ was not declared in this scope

    else if(inputs == “E�)

    ^

    new:81: error: ‘e’ was not declared in this scope

    else if(inputs == “e�)

    ^

    new:85: error: ‘F’ was not declared in this scope

    else if(inputs == “F�)

    ^

    new:89: error: ‘f’ was not declared in this scope

    else if(inputs == “f�)

    ^

    new:93: error: ‘G’ was not declared in this scope

    else if(inputs == “G�)

    ^

    new:97: error: ‘g’ was not declared in this scope

    else if(inputs == “g�)

    ^

    new:101: error: ‘H’ was not declared in this scope

    else if(inputs == “H�)

    ^

    new:105: error: ‘h’ was not declared in this scope

    else if(inputs == “h�)

    ^

    new:109: error: expected primary-expression before ‘;’ token

    inputs=��;

    ^

    exit status 1
    stray ‘\342’ in program

    This report would have more information with
    “Show verbose output during compilation”
    option enabled in File -> Preferences.

    Reply
    • March 21, 2018 at 3:53 am
      Permalink

      Check below the program there is a separate link for stray errors

      Reply
  • March 20, 2018 at 7:48 am
    Permalink

    the relay conections are as shown in the ckt diagram or as shown in the video means nc and com or no and com ?

    Reply
  • March 21, 2018 at 3:46 am
    Permalink

    how to replace CFL with RGB led strip and apply password on it

    Reply
    • March 21, 2018 at 3:52 am
      Permalink

      Simply detach the plug and insert it in relay

      Reply
  • March 25, 2018 at 6:17 pm
    Permalink

    Return code is not 0 ka error aa rha h koe btayega how to resolve it

    Reply
    • March 26, 2018 at 2:03 am
      Permalink

      Send a request on Facebook I’ll help

      Reply
    • April 3, 2018 at 2:14 am
      Permalink

      Remove everything from arduino and upload and select the right com from the tools menu

      Reply
  • March 26, 2018 at 7:39 am
    Permalink

    Arduino: 1.6.0 (Windows 7), Board: “Arduino Uno”

    /arduino-1.6.0/hardware/tools/avr/bin/avr-ar: unable to rename ‘C:\Users\dell\AppData\Local\Temp\build830993635132636886.tmp/core.a’; reason: Permission denied
    Error compiling.

    C:\Users\dell\AppData\Local\Temp\build830993635132636886.tmp/core.a(wiring.c.o): In function `delay’:
    C:\Users\dell\Downloads\Compressed\arduino-1.6.0\hardware\arduino\avr\cores\arduino/wiring.c:114: undefined reference to `yield’
    collect2: error: ld returned 1 exit status
    Error compiling.

    This report would have more information with
    “Show verbose output during compilation”
    enabled in File > Preferences.

    Reply
    • April 3, 2018 at 2:15 am
      Permalink

      Select right com

      Reply
  • March 30, 2018 at 4:54 pm
    Permalink

    hlo sir.these are the following errors i am facing.pls help
    Arduino: 1.8.5 (Windows 7), Board: “Arduino/Genuino Uno”

    Sketch uses 3932 bytes (12%) of program storage space. Maximum is 32256 bytes.
    Global variables use 236 bytes (11%) of dynamic memory, leaving 1812 bytes for local variables. Maximum is 2048 bytes.
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xc0
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xc0
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xc0
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xc0
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xc0
    avrdude: stk500_recv(): programmer is not responding
    Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
    avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xc0
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xc0
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xc0
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xc0
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xc0

    This report would have more information with
    “Show verbose output during compilation”
    option enabled in File -> Preferences.

    Reply
    • April 3, 2018 at 2:15 am
      Permalink

      Select the right com from the tools menu

      Reply
  • March 30, 2018 at 5:12 pm
    Permalink

    sir sorry for inconvenience.the above problem solved by removing the bluetooth.
    but another problem arose.bluetooth module is on but the android app is still not able to scan the device.wht to do?

    Reply
    • April 3, 2018 at 2:14 am
      Permalink

      Is it coming on any other device ?

      Reply
  • March 31, 2018 at 10:56 am
    Permalink

    Would u please help me to convert this code into python

    Reply
  • April 3, 2018 at 12:23 pm
    Permalink

    Bro i done it.Thank you very much <3
    But ab ma es system k sath touchscreen attach krna chata hon. plzzz help me Bro…

    Reply
  • April 4, 2018 at 5:41 pm
    Permalink

    code verify mi ho rha

    Reply
  • April 14, 2018 at 5:20 am
    Permalink

    When i upload code to arduino then all relays are closed.. butt i want all relays open in initial condition.. help.. pllzz

    Reply
  • October 31, 2019 at 9:13 pm
    Permalink

    stray ‘\342’ in program
    ye error khatm kernay ka tariqa bata dain

    Reply
    • November 1, 2019 at 6:52 am
      Permalink

      Check above the circuit diagram ek link hai

      Reply
  • January 23, 2021 at 11:45 pm
    Permalink

    bro,
    my HC05 is not working i.e the light is also not glowing. I bought the entire set from ur website.
    what should I do?

    Reply
    • January 24, 2021 at 7:13 am
      Permalink

      Don’t worry just give me a bit time. As today is Sunday, I’ll get back to you on WhatsApp

      Reply

Leave a Reply to admin Cancel reply

Your email address will not be published. Required fields are marked *