It's really easy and quick to add voice control to your arduino project. Whether it is home automation or door lock, or robots, voice control could be one eye catching feature in an arduino project. In this tutorial I"ll show you how to voice control arduino projects without voice recognition shield. We"ll be using a HC-05 Bluetooth module. We"ll connect a Android device with HC-05 Bluetooth. Android Phone will convert voice into string of data using Google voice recognition software. This string of data will be sent to HC-05 Bluetooth module and then to arduino uno. After that, Arduino decodes and process it.

Step 1: Connections

The circuit is very simple. Since the Tx and Rx pin on HC-05 bluetooth module are 3.3v pins you have use voltage dividers to step down 5 volt signal from arduino to 3.3 volt signal.

Arduino--------------- HC-05 Bluetooth





Step 2: Coding

On the Android device we use an Application called as AMR_Voice to convert voice into string of data and send it over bluetooth. You can download this app from Google Playstore by clicking here.

We use the software serial library for this project. You can download the code, it is attached with this instructable.

<p>//Coded By: Angelo Casimiro (4/27/14) <br>//Voice Activated Arduino (Bluetooth + Android) <br>//Feel free to modify it but remember to give credit <br>#include <br> <br>SoftwareSerial BT(11, 10); //TX, RX respetively <br>String voice; <br> <br>void setup() { <br> BT.begin(9600); <br> Serial.begin(9600); <br> pinMode(13, OUTPUT); <br> <br>} <br>//-----------------------------------------------------------------------// <br>void loop() { <br> while (BT.available()){ //Check if there is an available byte to read <br> delay(10); //Delay added to make thing stable <br> char c = BT.read(); //Conduct a serial read <br> if (c == '#') {break;} //Exit the loop when the # is detected after the word <br> voice += c; //Shorthand for voice = voice + c <br> } <br> if (voice.length() &gt; 0) { <br> Serial.println(voice); <br> <br> if(voice == &quot;*start&quot;) <br> { <br> digitalWrite(13, HIGH); <br> } <br> <br> else if(voice == &quot;*stop&quot;) <br> { <br> digitalWrite(13, LOW); <br> } <br> <br> <br>voice=&quot;&quot;;}} //Reset the variable after initiating</p><p><br></p>
<p>this is not working !!!!</p>
<p>We built a circuit in our project. As a result, we showed the LCD on the screen. How can I send this text to the android mobile phone? And how can I read this text that I sent out by voice? I used genuino 101.</p>
Can u plz send me d code <br>And my email id is gaganmanjunathar@gmail.com<br>Tq
<p>So this device will recognize any language?</p>
<p>how do i use two commands to do the same thing?, i have tried this but the system confused and any randome commands was accepted. PLZ help </p><p> else if(voice == &quot;*fan on&quot; || &quot;*stop&quot;) </p><p> {</p><p> digitalWrite(led2, HIGH);</p><p> digitalWrite(led1, LOW);</p>
<p>arduino ide code for servo instead led.</p><p>email=mhaital81@gmail.com</p>
<p>plzzz upload arduino ide code if i use servo.</p>
<p>kindly send me the code for bluetooth module for voice control robot</p><p>my email: adigoppula.shashi143@gmail.com</p>
<p>someone could please help me out for getting the component list</p>
components are<br>1.aruduino uno<br>2.Bluetooth module HC05<br>3.Breadboard<br>4.LEDs (for testing wheather voice command working properly or not)<br>5.jumper wire (male and female)<br>That's it...
<p>thnx I made this</p>
<p>Let's say I wanted to output audio using a bluetooth headset, would that just be something that I'd have to add through coding or is there something else I would have to do?</p>
Can i use with servos?
<p>Of course you can.</p><p>You have to read from the second character(exclude the initial &quot;*&quot;) , convert the value to INT, and then you can use it.</p><p>Here it is just an example:</p><p>Value= voice.substring(1).toInt();</p><p>myservo.write(value);</p>
<p>Very nice!!</p><p>I've attached a servo and a temperature sensor, and i can turn on/off leds, move servo, and read temperature values, just with my voice commands.</p><p>everything works perfectly, apart that i get an error everytime i exit the app on my Galaxy S1 mobile.</p><p>I hope this will be fixed soon.</p><p>Until now, great work! thank you! :)</p>
<p>There is an error in the installation of poles, where Bluetooth RX....................... pin10 and TX ........................ pin11</p>
<p>Thanks for sharing!</p>
<p>Very nice project! definetelly useful! ^^</p>
<p>Short and sweet instructable. Thanks for sharing!</p>

About This Instructable




Bio: I am an Undergraduate student majoring in physics from IISc, Bangalore. I am just a guy who love to build tech stuff and make them ... More »
More by gagan8619:Processing: Instructables logo animation Six wheeled All Terrain Vehicle (6WD) Arduino Voice recognition Via Bluetooth HC-05 
Add instructable to: