loading
Picture of Voice Activated Arduino (Bluetooth + Android)

Control your Arduino with voice commands using an Android smartphone! Before we make a voice activated home automation system, we must first learn the basic principles of the experiment. This guide will let you command the Arduino using your Android smartphone and a HC-05 Bluetooth module.

The designer of the app did not include a sample code. I looked for alternatives in Google's PlayStore but none was as good as the app that I've found. Luckily, I was able to figure it out although it took me a while to program it. Sorry IOS users, this app isn't available in Apple's app store :/

How Does It Work?
Have you ever encountered Android's speech recognition? Yes android has one and you can use it to control your Arduino, via Bluetooth. The App works by pressing the mic button, then the it will wait for you to say a command. The app will then display the word's that you've stated and will send data strings for the Arduino to process.

Home Automation System (on July 4, 2014):
A month from now/ I'll be releasing a highly sophisticated home automation + security system. It's my biggest project ever! Our current agenda is to program a better smartphone app that work's like Siri (talks back) and sends strings (data types) to the Arduino via bluetooth. If you want to take a sneak peek of the project and it's concept, kindly skip to the last step. The prototype that I'm working on now is composed of a network of wireless switch boxes that connects to a main control panel via WiFi/ Bluetooth.

Here's A Quick Video Demo:

Step 1: Parts & Materials

Picture of Parts & Materials
DSC_0081.JPG
collagef.jpg
bluetooth-HC05-02.jpg
If your having trouble in finding them, I'm sure RadioShack has all of them. If you want to buy online try searching on Amazon or DealExtreme.

Thing that you'll need:
- 5 LED Indicators (the color of your choice)
- Arduino UNO (a clone works fine)
- HC-05 Serial Bluetooth Module
- Solderless Breadboard
- Jumper Cables

 
1-40 of 192Next »
BrunoA142 days ago
hi guys , I made the code with blueT module ( HC -6 ) and it worked , but the comparison of the voice with the word in the code is not working. I am using a Sansung s4mini may be the problem. He's getting the word but does not compare to the word of code.

I am using :
if ( voice.length () > 0) {

Serial.println ( voice ) ;
digitalWrite ( LED1 , HIGH) ;

Firing up and test . Any news let me know . Thank you.
klmmpineda7 days ago
We encounter a problem where we cannot turn off the ligts when the lights are turned on. How can we fix this? ASAP

have I connect to internet for android phone?

would it work if, instead of using an Arduino Uno and HC-05, I use a Blend Micro?
ahmedH22 made it!26 days ago

Real thanks! Can you please give a link or post the intractable for coding voice commands in android. :)

WIN_20150802_22_57_09_Pro.jpg
WilliamW24 made it!1 month ago
Works perfectly.
Any idea how I can send voice commands without having to press the button on my phone first.

i.e "computer, TV off"
temp_-807391870.jpg
gogoguy1 month ago

My android phone isn't working right now.

Is there any way I can run it on my computer?

Thanks

you make the app for phone?

Rahmata12 months ago

how the input mode of AMR_Voice output to the speakers , so the sound is sent to a microcontroller via AMR_Voice remove it again to the speaker ?

NateC52 months ago

Is it possible to set this up so you don't have to click the mic button first? It' be great if it was always listening for hands free control

Great one!! Keep it up!!!

diozoli3 months ago

It is a very nice project and really great idea, brilliant.

I just have one comment, here you are not using the RX path of the bluetoth modul, so is not needed to connect, but if you want to connect it then you should use a level conertor. Never connect this pin directly to Arduino pins. These modules DO NOT like anything except 3.3 volts on the VCC line. We should use a level converter to 3.3V on the RXD line. Use two resistors, as a simple voltage divider to make the TTL level conversion. One 2.2k ohm resistor to ground, connected to a 1k ohm resistor, to the TXD line on the MCU. Connect the RXD pin in between the two resistors for an output of approx 3.4 volts. (http://www.engineersgarage.com/contribution/led-blink-using-arduino-over-bluetooth)

jmaag1 year ago

I tried it and it did not work. I have a galaxy S4 and it takes 7 secs after I say the command for it to appear at the bottom of what I said. And then nothing from the HC-05. No leds light. So what do I do to fix this. I dont mind the lag, but there is no response.

ASCAS (author)  jmaag1 year ago

I'm using my Nexus 7, the KitKat update made things run faster, I'm not sure with the S4 though. You'll need to say the exact words written in the code's conditions. Did you unplug the HC-05 from the project before uploading the sketch? It needs to be done, otherwise the Arduino wouldn't receive the codes. Tell me if it still doesn't work, I'll help you figure it out.

I AM USING GINGERBREAD A PHONE....I ALSO TRIED WITH KITKAT..

I UPLOADED SKETCH WITHOUT THE BLUETOOTH CONNECTED

THE LED'S ARE NOT TURNING ON ...

COMMANDS ARE DISPLAYED ON THE ANDROID APP...

HELP ME OUT...

jmaag ASCAS1 year ago
Hi ASCAS,
I have version 4.4.2. I do say the exact words because it is displayed below on my screen but 7 seconds later. Yes I programmed the uno before setting up the circuit. Thanks for helping me try to figure it out.
ShadowByte3 months ago

This is sort of off topic but can you provide the code for the Android Application. Of course the whole thing would be very complex but at least the functions where the voice input is taken and the Bluetooth part of it please. I've built a custom app for a home automation project im working on but i cant figure out the bluetooth part.

Luc Volders3 months ago

Ok guys if anybody is interested: I finally got it working on an Attiny85.

There was a serious bug in the Attiny85 compiler (provided by the MIT) that made it impossible to compile programs larger as 4k. So now this bug has been fixed this works on an Attinty85 which greatly reduces costs. You can use a 1 dollar processor instead of an Arduino.

For more info look at my web-log:

http://lucstechpage.weebly.com/blog

There is a link to the mit pages with great instructions on how to program an Attiny85 with the Arduino IDE.

Luc

OsamaM made it!3 months ago

THANKS!

IMAGW22.jpg
cristinef5 months ago

I tried to do this for my laboratory but unfortunately it didn't work. I used the Bluetooth shield v1.1 and gizduino atmega 168.

Can you give me some advice. Please reply,

THANK YOU IN ADVANCE.

try using the ATMEGA328 instead. it comes standard on all arduinos now.
braytonlarson3 months ago
what ever happened to the home automation project? Did you never follow through with it? I'm working on one myself and I'd like to see how your central control panel would work.
DaveT133 months ago

Great work! You can remove the asterisk (*) at the start of each string by using "StringRemove". The middle line of this example is the additional code, so people know where to put it in your code:

if (voice.length() > 0) {
voice.remove(0,1);
Serial.println(voice);

Shakil145 months ago

if i execute the "allon" instruction, next time when i say "alloff" it doesnt work.. infact i can only execute one instruction.. sir, plzzz tell me why is this happening..??

Shakil145 months ago

if i execute the "allon" instruction, next time when i say "alloff" it doesnt work.. infact i can only execute one instruction.. sir, plzzz tell me why is this happening..??

Shakil145 months ago
acap1235 months ago

Great!!!!!Sir I require the source code for the android application. Please mail me as early as possible on my id amirulacap92@gmail.com

sajeer1235 months ago

Hi am sajeer am note getting the out put please help me in this ..

hoply ur friend

caferd11 months ago

Hi , I will do the project. You use the Android phone but i have got a i phone .Can i use the i phone ? how can i control it ?

Try searching (build on) which send data through bluetooth, but as far as I know, bluetooth in IPhone is complicated to only send voice data

ASCAS (author)  caferd9 months ago

Sorry, I don't think the app has an apple counterpart.

Deepak_Dulal6 months ago

can we test it with only one LED?

Yes

ASCAS (author)  Deepak_Dulal6 months ago

Yes! Just remove all the "else if" before the "if statement" and you're good to go.

wildan.mai6 months ago

does the project needs Wi-Fi connection ?

Android Software connects to Bluetooth device. You have find the software which send Serial on Wifi instead of Bluetooth

Hi i am trying to make a mobile robotic arm.i want my robot to move 10 cm when i say robot go front 10 cm.so can you help me with code. I cannot understand how to take in the distance as a value of a variable from the voice string

try using this command. Instead of "Tv on" use this "front ten" then try speaking same. Use English words instead of numbers

I think there is one way. You can use time delay. once you say front 10 cm, your robot will move for time delay that is assigned for 10cm, maybe 2 secs or so.

daooda5 months ago

hi friend ,thank you for sharing this project >>> I just need to ask >>>can i use bluetooth module (HC-6)

because i made the project but it unable to connect with my phone

please reply soon

thanks so much

٢٠١٥٠٣٢١_١٨٤٨٤١.jpg٢٠١٥٠٣٢١_١٨٤٩٣١.jpg
1-40 of 192Next »