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 :)

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    8 Discussions

    None
    code_n_mathmagazovski

    Reply 3 years ago

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

    None
    navaneetha s

    3 years ago

    I saw a android app in this project

    May I know which android app is used

    please reply fast

    1 reply