Voice Control Using Arduino(Genuino Outside US)

About: My name Is Kallol Kranti Kalarav. I'm a dumb kid trying new things.

Intro: Voice Control Using Arduino(Genuino Outside US)

Hello!

This is a voice recognition model built using Arduino uno. The idea behind it is very simple. When we speak something in the android app , the voice is sent as a string in the the HC-05 bluetooth module then the Arduino(Genuino outside US) recieves that string and powers the components according to our commands which are in the program that we uploaded to the board. This could be a very cool project for your science fair...Hope you will like it :)

Step 1: Parts Needed....

1. Arduino(Genuino outside US) UNO x1

2. HC-05 bluetooth module x1

3. 9v battery x1

4. Jumper cables x15

5. Breadboard x1

Link To the app -- ARDUINO VOICE CONTROLLER

Step 2: The Circuit...

The circuit is fairly simple. The Arduino is powered by a 9v battery. Connect the jumpers as shown in the circuit diagram. If you face any problem, feel free to contact me.

Step 3: The Code...

String myCommand;

void setup() { Serial.begin(9600); pinMode(3, OUTPUT);// the pins 3,4,5,6 are set to output mode pinMode(4, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT);

} //-----------------------------------------------------------------------// void loop() { while (Serial.available()){ //Checks if any byte is there to read delay(10); //it delays the serial by 10 millisecond char c = Serial.read(); //Conduct a serial read myCommand += c; //it builds the string with our commands } if (myCommand.length() > 0) { Serial.println(readvoice);

if(rmyCommand == "a") // pin 3 will be high if command is a { digitalWrite(3,HIGH); digitalWrite(4,LOW); digitalWrite(5,LOW); digitalWrite(6,LOW); delay(100); } else if(myCommand == "b") //pin 4 will be high if command is b { digitalWrite(3,LOW); digitalWrite(4,HIGH); digitalWrite(5,LOW); digitalWrite(6,LOW); delay(100); } else if (myCommand == "c")//pin 5 will be high if command is c { digitalWrite(3,LOW); digitalWrite(4,LOW); digitalWrite(5,HIGH); digitalWrite(6,LOW); delay (100); } else if ( myCommand == "fan")//pin 6 will be high if command is fan { digitalWrite(3,LOW); digitalWrite(4,LOW); digitalWrite(5,LOW); digitalWrite(6,HIGH); delay (100); }

else if( myCommand == "d")//pin 6 will be high if command is d since the fan command may be unreadable by google voice sometimes { digitalWrite(3,LOW); digitalWrite(4,LOW); digitalWrite(5,LOW); digitalWrite(6,HIGH); delay (100); }

else if ( myCommand == "all")//all pins will be high if command is all { digitalWrite(3,HIGH); digitalWrite(4,HIGH); digitalWrite(5,HIGH); digitalWrite(6,HIGH); delay (100); }

else if ( myCommand == "off")//all pins will be low if command is b { digitalWrite(3,LOW); digitalWrite(4,LOW); digitalWrite(5,LOW); digitalWrite(6,LOW); delay (100); } myCommand="";}} // this resets the variable myCommand

//CODED BY KALLOL

Upload the code to the board....

Step 4: Get Creative....

Give it any shape you want...amaze your friends , your teachers... :D

thank you all

Share

    Recommendations

    • Electronics Tips & Tricks Challenge

      Electronics Tips & Tricks Challenge
    • Audio Contest 2018

      Audio Contest 2018
    • Optics Contest

      Optics Contest

    8 Discussions

    0
    None
    code_n_mathmagazovski

    Reply 2 years ago

    Arduino is called genuino outside the US...why they call it idk...you can ask them my sending mail!!

    0
    None
    navaneetha s

    2 years ago

    I saw a android app in this project

    May I know which android app is used

    please reply fast

    1 reply