Table of Contents

Play Video

SMART MAP

A smart map utilizing a Bluetooth module (HC-05), LEDs, and Arduino Mega operates through voice commands to provide interactive navigation and information display. Users can issue voice commands via a paired device, such as a smartphone or tablet, which are received by the Arduino Mega through the Bluetooth module. The Arduino processes these commands to activate LEDs that highlight specific locations or routes on the map, aiding in visual navigation. This system enhances user interaction and accessibility, offering a hands-free approach to accessing map data and directions in various applications, from indoor navigation in large venues to interactive educational displays.
The Smart Map is an innovative system utilizing an Arduino Mega, Bluetooth module (HC-05), and LEDs, designed to provide interactive, voice-command-based navigation and information display. The system offers a hands-free, intuitive approach to map interaction, making it useful for indoor navigation in large venues, museums, or educational environments.
Components:
Arduino Mega: Central microcontroller for processing commands and controlling LEDs.
HC-05 Bluetooth Module: Enables wireless communication between a smartphone or tablet and the Arduino Mega.
LEDs: Positioned on the map to highlight specific locations or routes.
Smartphone/Tablet: Paired with the HC-05 to send voice commands.
Power Supply: Provides power to the Arduino and LEDs.
Working:
The system starts when the user pairs their device (smartphone or tablet) with the HC-05 Bluetooth module. Using a voice command app, the user issues instructions such as “Show the exit route” or “Highlight the cafeteria.” The Bluetooth module receives the voice commands and sends them to the Arduino Mega, which processes the input. Based on the command, the Arduino activates the corresponding LEDs to visually highlight specific locations or routes on the map.
This system offers an accessible, hands-free approach to navigation, making it especially valuable for large venues or interactive educational displays. It enhances user engagement by integrating technology and voice interaction in real-time.
 String voice;
int delhi=3;
int Rajasthan =4;
int UP= 9;
int MP= 8;
 int Maharashtra =6;
int Gujarat =5;
int panjab= 2;
int Karnatak=26;
int Haryana=28;
int Odisha=14;
int Kolkata=13;
int Telangana =12;
int sikkim=10; 
int mizoram=11;
int BWSL=7; //Badra world sea linK
int LOCM= 17; // LOCATION OF CHAR MINAR
int LOS=15; // LOCATION OF SUNTEMPLE
int LOHM=18;//LOCATION OF HAWA MAHAL
int LOVP=16;//LOCATION OF VICTORIA MEMORIAL
int LOSOU=19;// LOCATION OF STATUE OF UNITY
int LOIG=20;//LOCATION OF INDIA GATE
int LOGT=22;//LOCATION OR GOLDEN TEMPLE
int LOT=21;// LOCATION OF  TAJMAHAR
int LOGOI=24;// LOCATION OF GATWAY OF INDIA
void setup() 
{                                            // put your setup code here, to run once:
 Serial.begin(9600);
   pinMode(delhi, OUTPUT);
   pinMode(Rajasthan, OUTPUT);
   pinMode(UP, OUTPUT);
   pinMode(Kolkata, OUTPUT);
   pinMode(MP, OUTPUT);
    pinMode(Telangana, OUTPUT);
   pinMode(Odisha, OUTPUT);
   pinMode(Maharashtra, OUTPUT);
   pinMode(Gujarat, OUTPUT);
   pinMode(Karnatak, OUTPUT);
   pinMode(panjab, OUTPUT);
   pinMode(Haryana, OUTPUT);
   pinMode(sikkim, OUTPUT);
   pinMode(mizoram, OUTPUT);
   pinMode(BWSL, OUTPUT);
   pinMode(LOCM, OUTPUT);
   pinMode(LOS, OUTPUT);
   pinMode(LOHM, OUTPUT);
   pinMode(LOVP, OUTPUT);
   pinMode(LOSOU, OUTPUT);
   pinMode(LOIG, OUTPUT);
   pinMode(LOGT, OUTPUT);
   pinMode(LOT, OUTPUT);
   pinMode(LOGOI, OUTPUT);
}

  int redVal;
  int greenVal;
void loop() {
 
  while (Serial.available())   //Check if there is an available byte to read
  {                            
  delay(10);                   //Delay added to make thing stable
  char c = Serial.read();      //Conduct a serial read
  if (c == '#') {break;}       //Exit the loop when the # is detected after the word
  voice += c;                  //Shorthand for voice = voice + c
  } 

  if (voice.length() > 0) {
    Serial.println(voice);
  //----------Control Multiple Pins/ LEDs----------// 

         if(voice == "location of Charminar")//                                FOR RED COLOUR OF THE LED 
     {
         digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,HIGH);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);

            }  
  else if(voice == "location of Taj Mahal")//                              FOR GREEN COLOUR OF THE LED !
     {
               digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,HIGH);
digitalWrite(LOGOI,LOW);

     }
  else if(voice == "location of Hawa Mahal")//                              FOR GREEN COLOUR OF THE LED !
     {
                 digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,HIGH);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
     }
  else if(voice == "location of India Gate")//                              FOR GREEN COLOUR OF THE LED !
     {
           digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,HIGH);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
     }
 else if(voice == "location of Statue of Unity")//                              FOR GREEN COLOUR OF THE LED !
     {
                  digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,HIGH);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
     }
  else if(voice == "location of Golden Temple")//                              FOR GREEN COLOUR OF THE LED !
     {
                 digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,HIGH);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
     }
  else if(voice == "location of Sun Temple")//                              FOR GREEN COLOUR OF THE LED !
     {
                 digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,HIGH);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
     }
  else if(voice == "location of Gateway of India")//                              FOR GREEN COLOUR OF THE LED !
     {
                digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,HIGH);
     }
  else if(voice == "visiting place of Mumbai")//                              FOR GREEN COLOUR OF THE LED !
     {
                 digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,HIGH);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,HIGH);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
            }
       else if(voice == "location of Victoria Palace")//                              FOR GREEN COLOUR OF THE LED !
     {
                  digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,HIGH);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
     }
       else if(voice == "visiting place of Delhi")//                              FOR GREEN COLOUR OF THE LED !
     {
                  digitalWrite(delhi,HIGH);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
     }
       else if(voice == "visiting place of Punjab")//                              FOR GREEN COLOUR OF THE LED !
     {
                 digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,HIGH);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
     }
        else if(voice == "visiting place of Rajasthan")//                              FOR GREEN COLOUR OF THE LED !
     {
                 digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,HIGH);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
     }
        else if(voice == "visiting place of Gujarat")//                              FOR GREEN COLOUR OF THE LED !
     {
                 digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,HIGH);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
     }
        else if(voice == "visiting place of Madhya Pradesh")//                              FOR GREEN COLOUR OF THE LED !
     {
                 digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,HIGH);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
     }
        else if(voice == "visiting place of Uttar Pradesh")//                              FOR GREEN COLOUR OF THE LED !
     {
                 digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,HIGH);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
     }
        else if(voice == "visiting place of Telangana")//                              FOR GREEN COLOUR OF THE LED !
     {
                 digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,HIGH);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
     }
        else if(voice == "visiting place of Kolkata")//                              FOR GREEN COLOUR OF THE LED !
     {
                 digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,HIGH);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
     }
     else if(voice == "visiting place of Odisha")//                              FOR GREEN COLOUR OF THE LED !
     {
                 digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,HIGH);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
     }
      else if(voice == "turn on all LED")//                              FOR GREEN COLOUR OF THE LED !
     {
                 digitalWrite(delhi,HIGH);
       digitalWrite(Rajasthan,HIGH);
       digitalWrite(UP,HIGH);
       digitalWrite(MP,HIGH);
       digitalWrite(Maharashtra ,HIGH);
       digitalWrite(Gujarat ,HIGH);
       digitalWrite(Karnatak,HIGH);
       digitalWrite(panjab,HIGH);
       digitalWrite(Haryana,HIGH);
       digitalWrite(Odisha,HIGH);
       digitalWrite(Kolkata,HIGH);
       digitalWrite(Telangana,HIGH);
       digitalWrite(mizoram,HIGH);
digitalWrite(BWSL,HIGH);
digitalWrite(LOCM,HIGH);
digitalWrite(LOS,HIGH);
digitalWrite(LOVP,HIGH);
digitalWrite(LOHM,HIGH);
digitalWrite(LOSOU,HIGH);
digitalWrite(LOIG,HIGH);
digitalWrite(LOGT,HIGH);
digitalWrite(LOT,HIGH);
digitalWrite(LOGOI,HIGH);
digitalWrite(sikkim,HIGH);
     }
     else if(voice == "turn off")//                              FOR GREEN COLOUR OF THE LED !
     {
                 digitalWrite(delhi,LOW);
       digitalWrite(Rajasthan,LOW);
       digitalWrite(UP,LOW);
       digitalWrite(MP,LOW);
       digitalWrite(Maharashtra ,LOW);
       digitalWrite(Gujarat ,LOW);
       digitalWrite(Karnatak,LOW);
       digitalWrite(panjab,LOW);
       digitalWrite(Haryana,LOW);
       digitalWrite(Odisha,LOW);
       digitalWrite(Kolkata,LOW);
       digitalWrite(Telangana,LOW);
       digitalWrite(mizoram,LOW);
digitalWrite(BWSL,LOW);
digitalWrite(LOCM,LOW);
digitalWrite(LOS,LOW);
digitalWrite(LOVP,LOW);
digitalWrite(LOHM,LOW);
digitalWrite(LOSOU,LOW);
digitalWrite(LOIG,LOW);
digitalWrite(LOGT,LOW);
digitalWrite(LOT,LOW);
digitalWrite(LOGOI,LOW);
digitalWrite(sikkim,LOW);
     }
voice="";                                                       //Reset the variable after initiating
}
}
Scroll to Top