Voice Control Using Arduino(Genuino Outside US)

Introduction: Voice Control Using Arduino(Genuino Outside US)

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

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

Arduino All The Things! Contest

Participated in the
Arduino All The Things! Contest

Make It Glow! Contest

Participated in the
Make It Glow! Contest

Be the First to Share

    Recommendations

    • Make it Glow Contest

      Make it Glow Contest
    • First Time Author Contest

      First Time Author Contest
    • PCB Challenge

      PCB Challenge

    8 Discussions

    0
    magazovski
    magazovski

    4 years ago

    Why do call it "Genuino outside US" ?

    0
    code_n_math
    code_n_math

    Reply 4 years ago

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

    0
    navaneetha s
    navaneetha s

    4 years ago

    I saw a android app in this project

    May I know which android app is used

    please reply fast

    0
    code_n_math
    code_n_math

    Reply 4 years ago

    Our very own app...you can download the apk file...

    0
    cyborg_e3
    cyborg_e3

    5 years ago

    Good job

    0
    code_n_math
    code_n_math

    Reply 5 years ago

    Tysm?

    0
    tomatoskins
    tomatoskins

    5 years ago

    Really cool arduino project!

    0
    code_n_math
    code_n_math

    Reply 5 years ago

    Thank you